Vscode-spell-checker: Expansion crashes when starting up

Created on 12 Oct 2019  路  7Comments  路  Source: streetsidesoftware/vscode-spell-checker

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:
verVSCode

reinstallation and restarting vs code didn't help.

any ideas?

FAQ

All 7 comments

Sometimes VS Code doesn't correctly install it.

  1. Uninstall the extension.
  2. Quit VS Code.
  3. Delete any directories like: c:\Users\benja\.vscode\extensions\streetsidesoftware.code-spell-checker-*
  4. Start VS Code and re-install the 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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

solidpixel picture solidpixel  路  5Comments

eamodio picture eamodio  路  6Comments

fgarcia picture fgarcia  路  3Comments

ahmadyousefdev picture ahmadyousefdev  路  3Comments

floatingpurr picture floatingpurr  路  5Comments