Installed version [1.7.18] and it crashes when starting up:
Error: Cannot find module 'c:\Users\benja\.vscode\extensions\streetsidesoftware.code-spell-checker-1.7.18\server\server.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:584:15)
at Function.Module._load (internal/modules/cjs/loader.js:510:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:746:12)
at startup (internal/bootstrap/node.js:282:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:759:3)
[Error - 10:44:36] Connection to server got closed. Server will not be restarted.
Visual Studio Code Version:
reinstallation and restarting vs code didn't help.
any ideas?
Sometimes VS Code doesn't correctly install it.
c:\Users\benja\.vscode\extensions\streetsidesoftware.code-spell-checker-*@Jason3S
I have a similar issue, for me the extension is broken on VSCode when using WSL: Ubuntu. I have the version 1.7.20. The error
Error: Cannot find module '/home/my_user/.vscode-server/extensions/streetsidesoftware.code-spell-checker-1.7.20/server/server.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:623:15)
at Function.Module._load (internal/modules/cjs/loader.js:527:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
but, when I check ls /home/my_user/.vscode-server/extensions/streetsidesoftware.code-spell-checker-1.7.20/server/server.js I can see that the file exists. I've tried re-installing it, I've tried deleting the local files, like you mentioned, but none of that worked. Any other ideas?
@pgrm you have to delete that directory and re-install. For some reason it did not download correctly.
Delete the entire: /home/my_user/.vscode-server/extensions/streetsidesoftware.code-spell-checker-1.7.20 and any other streetsidesoftware.code-spell-checker-* directories.
@Jason3S I did that - and I couldn't find any other directories - find . -name "streetsidesoftware.code-spell-checker-*" didn't return anything else except for a folder in .directory_history
This is the full stack trace after it got re-installed, after I removed every trace of it
fs.js:126
throw err;
^
Error: ENOENT: no such file or directory, lstat '/home/my_user/.vscode-server/extensions/streetsidesoftware.code-spell-checker-1.7.20/server/server.js'
at Object.realpathSync (fs.js:1470:7)
at toRealPath (internal/modules/cjs/loader.js:268:13)
at Function.Module._findPath (internal/modules/cjs/loader.js:349:22)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:27)
at Function.Module._load (internal/modules/cjs/loader.js:527:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
at internal/main/run_main_module.js:17:11 {
errno: -2,
syscall: 'lstat',
code: 'ENOENT',
path: '/home/my_user/.vscode-server/extensions/streetsidesoftware.code-spell-checker-1.7.20/server/server.js'
}
[Info - 9:30:54 AM] Connection to server got closed. Server will restart.
internal/modules/cjs/loader.js:626
throw err;
^
Error: Cannot find module '/home/my_user/.vscode-server/extensions/streetsidesoftware.code-spell-checker-1.7.20/server/server.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:623:15)
at Function.Module._load (internal/modules/cjs/loader.js:527:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
[Info - 9:30:54 AM] Connection to server got closed. Server will restart.
internal/modules/cjs/loader.js:626
throw err;
^
Error: Cannot find module '/home/my_user/.vscode-server/extensions/streetsidesoftware.code-spell-checker-1.7.20/server/server.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:623:15)
at Function.Module._load (internal/modules/cjs/loader.js:527:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
[Info - 9:30:55 AM] Connection to server got closed. Server will restart.
internal/modules/cjs/loader.js:626
throw err;
^
Error: Cannot find module '/home/my_user/.vscode-server/extensions/streetsidesoftware.code-spell-checker-1.7.20/server/server.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:623:15)
at Function.Module._load (internal/modules/cjs/loader.js:527:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
[Info - 9:30:56 AM] Connection to server got closed. Server will restart.
internal/modules/cjs/loader.js:626
throw err;
^
Error: Cannot find module '/home/my_user/.vscode-server/extensions/streetsidesoftware.code-spell-checker-1.7.20/server/server.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:623:15)
at Function.Module._load (internal/modules/cjs/loader.js:527:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
[Error - 9:30:56 AM] Connection to server got closed. Server will not be restarted.
That is super frustrating.
This seems to be a VS Code Server issue.
I have never tried it. I'll take a look.
@pgrm,
I published a new version now supports Visual Studio Code Remote Development.
I'm going to close this issue, since it wasn't related to Remote Development, but to the extension not fully installing.