Closed SFX123456 closed 1 month ago
i tried deleting everything build wise of treesitter bash running npm run build and then npm run install. it worked. when switching grammar.js and changing the name of module.exports = grammar({ name: 'bash', to javascript it still compiles but it doesnt give out anything that makes sense. the grammar seems broken
thought the scanner.c file was also auto generated. switched it and it works now when switching names etc wihtin treesitter-bash :)
hello, i cant run npm run build without facing this error. PS E:\hjbsdfh\node_modules\tree-sitter-javascript> npm run build
gyp info it worked if it ends with ok gyp info using node-gyp@9.4.0 gyp info using node@20.9.0 | win32 | x64 gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe gyp info spawn args [ gyp info spawn args 'build/binding.sln', gyp info spawn args '/clp:Verbosity=minimal', gyp info spawn args '/nologo', gyp info spawn args '/p:Configuration=Release;Platform=x64' gyp info spawn args ] Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "-m" hinzufügen. parser.c Bibliothek "E:\hjbsdfh\node_modules\tree-sitter-javascript\build\Release\tree_sitter_javascript_binding.lib" und O bjekt "E:\hjbsdfh\node_modules\tree-sitter-javascript\build\Release\tree_sitter_javascript_binding.exp" werden erstel lt. parser.obj : error LNK2001: Nicht aufgelöstes externes Symbol "tree_sitter_javascript_external_scanner_destroy". [E:\hj bsdfh\node_modules\tree-sitter-javascript\build\tree_sitter_javascript_binding.vcxproj] parser.obj : error LNK2001: Nicht aufgelöstes externes Symbol "tree_sitter_javascript_external_scanner_deserialize". [E :\hjbsdfh\node_modules\tree-sitter-javascript\build\tree_sitter_javascript_binding.vcxproj] parser.obj : error LNK2001: Nicht aufgelöstes externes Symbol "tree_sitter_javascript_external_scanner_create". [E:\hjb sdfh\node_modules\tree-sitter-javascript\build\tree_sitter_javascript_binding.vcxproj] parser.obj : error LNK2001: Nicht aufgelöstes externes Symbol "tree_sitter_javascript_external_scanner_scan". [E:\hjbsd fh\node_modules\tree-sitter-javascript\build\tree_sitter_javascript_binding.vcxproj] parser.obj : error LNK2001: Nicht aufgelöstes externes Symbol "tree_sitter_javascript_external_scanner_serialize". [E:\ hjbsdfh\node_modules\tree-sitter-javascript\build\tree_sitter_javascript_binding.vcxproj] E:\hjbsdfh\node_modules\tree-sitter-javascript\build\Release\tree_sitter_javascript_binding.node : fatal error LNK1120: 5 nicht aufgelöste Externe [E:\hjbsdfh\node_modules\tree-sitter-javascript\build\tree_sitter_javascript_binding.vcxpro j] gyp ERR! build error gyp ERR! stack Error:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\Nico\AppData\Roaming\nvm\v20.9.0\node_modules\npm\node_modules\node-gyp\lib\build.js:203:23) gyp ERR! stack at ChildProcess.emit (node:events:514:28) gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) gyp ERR! System Windows_NT 10.0.19045 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Nico\AppData\Roaming\nvm\v20.9.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" gyp ERR! cwd E:\hjbsdfh\node_modules\tree-sitter-javascript gyp ERR! node -v v20.9.0 gyp ERR! node-gyp -v v9.4.0 gyp ERR! not okits german unfortunately but it basically says there is an unresolved external symbol "tree_sitter_javascript_external_scanner_destroy". [E:\hjbsdfh\node_modules\tree-sitter-javascript\build\tree_sitter_javascript_binding.vcxproj] 5 times
there is my tree_sitter_javascript_binding.vcxproj file. i need to recompile as i get the following error https://github.com/tree-sitter/node-tree-sitter/issues/193
<?xml version="1.0" encoding="utf-8"?>