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

Error building VSCode in Windows #36356

Closed
warpdesign opened this issue Oct 16, 2017 · 5 comments
Closed

Error building VSCode in Windows #36356

warpdesign opened this issue Oct 16, 2017 · 5 comments
Assignees
Labels
vscode-build VS Code build process issues

Comments

@warpdesign
Copy link
Contributor

  • VSCode Version: current master
  • OS Version: Windows 10 64bit

Steps to Reproduce:

  1. checkout vscode git repository
  2. type scripts\npm.bat install
  3. type npm run watch
  4. type .\scripts\code.bat

The following error appears in the console:

E:\Docs\Dev\vscode>.\scripts\code.bat

{ Error: Cannot find module './build/Release/keymapping'
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (E:\Docs\Dev\vscode\.build\electron\resources\electron.asar\common\reset-search-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at NativeBinding._init (E:\Docs\Dev\vscode\node_modules\native-keymap\index.js:15:22)
    at NativeBinding.onDidChangeKeyboardLayout (E:\Docs\Dev\vscode\node_modules\native-keymap\index.js:37:10)
    at Object.exports.onDidChangeKeyboardLayout (E:\Docs\Dev\vscode\node_modules\native-keymap\index.js:61:18)
    at KeyboardLayoutMonitor.onDidChangeKeyboardLayout (E:\Docs\Dev\vscode\out\vs\code\electron-main\keyboard.js:26:30)
    at CodeApplication.registerListeners (E:\Docs\Dev\vscode\out\vs\code\electron-main\app.js:148:55) code: 'MODULE_NOT_FOUND' }
[7192:1016/143148.321:INFO:CONSOLE(224)] "Loading "gc-signals" failed", source: file:///E:/Docs/Dev/vscode/out/vs/loader.js (224)
[7192:1016/143148.321:INFO:CONSOLE(225)] "Detail: ", source: file:///E:/Docs/Dev/vscode/out/vs/loader.js (225)
[7192:1016/143148.322:INFO:CONSOLE(227)] "Error: A dynamic link library (DLL) initialization routine failed.
\\?\E:\Docs\Dev\vscode\node_modules\gc-signals\build\Release\gcsignals.node
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (E:\Docs\Dev\vscode\node_modules\gc-signals\src\index.js:8:18)
    at Object.<anonymous> (E:\Docs\Dev\vscode\node_modules\gc-signals\src\index.js:67:3)", source: file:///E:/Docs/Dev/vscode/out/vs/loader.js (227)
[7192:1016/143148.322:INFO:CONSOLE(229)] "Here are the modules that depend on it:", source: file:///E:/Docs/Dev/vscode/out/vs/loader.js (229)
[7192:1016/143148.322:INFO:CONSOLE(230)] "vs/workbench/api/electron-browser/mainThreadHeapService", source: file:///E:/Docs/Dev/vscode/out/vs/loader.js (230)

E:\Docs\Dev\vscode>
E:\Docs\Dev\vscode>
E:\Docs\Dev\vscode>.\scripts\code.bat

{ Error: Cannot find module './build/Release/keymapping'
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (E:\Docs\Dev\vscode\.build\electron\resources\electron.asar\common\reset-search-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at NativeBinding._init (E:\Docs\Dev\vscode\node_modules\native-keymap\index.js:15:22)
    at NativeBinding.onDidChangeKeyboardLayout (E:\Docs\Dev\vscode\node_modules\native-keymap\index.js:37:10)
    at Object.exports.onDidChangeKeyboardLayout (E:\Docs\Dev\vscode\node_modules\native-keymap\index.js:61:18)
    at KeyboardLayoutMonitor.onDidChangeKeyboardLayout (E:\Docs\Dev\vscode\out\vs\code\electron-main\keyboard.js:26:30)
    at CodeApplication.registerListeners (E:\Docs\Dev\vscode\out\vs\code\electron-main\app.js:148:55) code: 'MODULE_NOT_FOUND' }
[10024:1016/145316.117:INFO:CONSOLE(224)] "Loading "gc-signals" failed", source: file:///E:/Docs/Dev/vscode/out/vs/loader.js (224)
[10024:1016/145316.121:INFO:CONSOLE(225)] "Detail: ", source: file:///E:/Docs/Dev/vscode/out/vs/loader.js (225)
[10024:1016/145316.125:INFO:CONSOLE(227)] "Error: A dynamic link library (DLL) initialization routine failed.
\\?\E:\Docs\Dev\vscode\node_modules\gc-signals\build\Release\gcsignals.node
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (E:\Docs\Dev\vscode\node_modules\gc-signals\src\index.js:8:18)
    at Object.<anonymous> (E:\Docs\Dev\vscode\node_modules\gc-signals\src\index.js:67:3)", source: file:///E:/Docs/Dev/vscode/out/vs/loader.js (227)
[10024:1016/145316.126:INFO:CONSOLE(229)] "Here are the modules that depend on it:", source: file:///E:/Docs/Dev/vscode/out/vs/loader.js (229)
[10024:1016/145316.126:INFO:CONSOLE(230)] "vs/workbench/api/electron-browser/mainThreadHeapService", source: file:///E:/Docs/Dev/vscode/out/vs/loader.js (230)
@vscodebot vscodebot bot added the javascript JavaScript support issues label Oct 16, 2017
@mjbvz mjbvz added vscode-build VS Code build process issues and removed javascript JavaScript support issues labels Oct 16, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Oct 16, 2017

Possibly #34419

Which npm version are you using? We only support npm 4 current.

@warpdesign
Copy link
Contributor Author

warpdesign commented Oct 17, 2017

@mjbvz I was running npm 5.3. I downgraded to npm 4.6.1 typed git clean -xfd and re-ran scripts\npm.bat install and npm install but I still get the same error.

@davidsk
Copy link

davidsk commented Oct 17, 2017

Yeah, I'm seeing this too.

@davidsk
Copy link

davidsk commented Oct 17, 2017

Downgraded to npm 4 and seems to be working

@warpdesign
Copy link
Contributor Author

I installed [email protected], cleaned up using git clean -xfd, also removed any files that were modified by previous build/install process using git reset --hard and after doing the process all over again (it's so slow on Windows) it's now working.

I suggest adding a note about the version in the How-To-Contribute file to indicate that only npm 4 is supported for now.

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
vscode-build VS Code build process issues
Projects
None yet
Development

No branches or pull requests

4 participants