Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LINK 2001 #30

Open
jcs090218 opened this issue Aug 11, 2021 · 1 comment
Open

LINK 2001 #30

jcs090218 opened this issue Aug 11, 2021 · 1 comment

Comments

@jcs090218
Copy link

Hi, I am trying to build this tool with npm install yet I immediately got errors shown below.

Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
  parser.c
  binding.cc
  win_delay_load_hook.cc
     Creating library C:\Users\JenChieh\Downloads\workspace\_history\tree-sitter-lua\build\Release\tree_sitter_lua_bind
  ing.lib and object C:\Users\JenChieh\Downloads\workspace\_history\tree-sitter-lua\build\Release\tree_sitter_lua_bindi
  ng.exp
parser.obj : error LNK2001: unresolved external symbol tree_sitter_lua_external_scanner_create [C:\Users\JenChieh\Downl
oads\workspace\_history\tree-sitter-lua\build\tree_sitter_lua_binding.vcxproj]
parser.obj : error LNK2001: unresolved external symbol tree_sitter_lua_external_scanner_destroy [C:\Users\JenChieh\Down
loads\workspace\_history\tree-sitter-lua\build\tree_sitter_lua_binding.vcxproj]
parser.obj : error LNK2001: unresolved external symbol tree_sitter_lua_external_scanner_scan [C:\Users\JenChieh\Downloa
ds\workspace\_history\tree-sitter-lua\build\tree_sitter_lua_binding.vcxproj]
parser.obj : error LNK2001: unresolved external symbol tree_sitter_lua_external_scanner_serialize [C:\Users\JenChieh\Do
wnloads\workspace\_history\tree-sitter-lua\build\tree_sitter_lua_binding.vcxproj]
parser.obj : error LNK2001: unresolved external symbol tree_sitter_lua_external_scanner_deserialize [C:\Users\JenChieh\
Downloads\workspace\_history\tree-sitter-lua\build\tree_sitter_lua_binding.vcxproj]
C:\Users\JenChieh\Downloads\workspace\_history\tree-sitter-lua\build\Release\tree_sitter_lua_binding.node : fatal error
 LNK1120: 5 unresolved externals [C:\Users\JenChieh\Downloads\workspace\_history\tree-sitter-lua\build\tree_sitter_lua_
binding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\JenChieh\Downloads\workspace\_history\tree-sitter-lua
gyp ERR! node -v v14.15.5
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Sorry I am very new to this, can someone guide me through possible reason that causes this error? 😕

Thanks!

@tjdevries
Copy link
Owner

Does this still happen? Sorry, I never saw this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants