Open simoneruffini opened 1 year ago
tree-sitter generate ~/Documents/repos/tree-sitter-vhdl node:events:491 throw er; // Unhandled 'error' event ^ Error: spawn /home/simone/Documents/repos/tree-sitter-vhdl/node_modules/tree-sitter-cli/tree-sitter ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:478:16) at processTicksAndRejections (node:internal/process/task_queues:83:21) Emitted 'error' event on ChildProcess instance at: at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12) at onErrorNT (node:internal/child_process:478:16) at processTicksAndRejections (node:internal/process/task_queues:83:21) { errno: -2, code: 'ENOENT', syscall: 'spawn /home/simone/Documents/repos/tree-sitter-vhdl/node_modules/tree-sitter-cli/tree-sitter', path: '/home/simone/Documents/repos/tree-sitter-vhdl/node_modules/tree-sitter-cli/tree-sitter', spawnargs: [ 'generate' ] }
This is the error I got by following the documentation on tree-sitter web site.
This is the error I got when trying to run npm install
npm install
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/home/simone/Documents/repos/tree-sitter-vhdl/build' CC(target) Release/obj.target/tree_sitter_vhdl_binding/src/parser.o In file included from ../src/parser.c:1: ../src/parser.c: In function ‘ts_lex_keywords’: ../src/tree_sitter/parser.h:135:8: warning: variable ‘eof’ set but not used [-Wunused-but-set-variable] 135 | bool eof = false; \ | ^~~ ../src/parser.c:8319:3: note: in expansion of macro ‘START_LEXER’ 8319 | START_LEXER(); | ^~~~~~~~~~~ make: *** No rule to make target 'Release/obj.target/tree_sitter_vhdl_binding/bindings/node/binding.o', needed by 'Release/obj.target/tree_sitter_vhdl_binding.node'. Stop. make: Leaving directory '/home/simone/Documents/repos/tree-sitter-vhdl/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/nix/store/knhxbwj2jaw2j3b3vj64j8jzxc0dwvja-nodejs-16.17.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (node:events:513:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) gyp ERR! System Linux 5.15.83 gyp ERR! command "/nix/store/knhxbwj2jaw2j3b3vj64j8jzxc0dwvja-nodejs-16.17.1/bin/node" "/nix/store/knhxbwj2jaw2j3b3vj64j8jzxc0dwvja-nodejs-16.17.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/simone/Documents/repos/tree-sitter-vhdl gyp ERR! node -v v16.17.1 gyp ERR! node-gyp -v v9.0.0 gyp ERR! not ok npm ERR! code 1 npm ERR! path /home/simone/Documents/repos/tree-sitter-vhdl npm ERR! command failed npm ERR! command sh /tmp/install-a9d2c3a1.sh npm ERR! A complete log of this run can be found in: npm ERR! /home/simone/.npm/_logs/2023-01-29T01_08_36_670Z-debug-0.log
This is the error I got by following the documentation on tree-sitter web site.
This is the error I got when trying to run
npm install