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

Couldn't find ms-vsintellicode-typescript #565

Open
jjpepper opened this issue Aug 6, 2024 · 4 comments
Open

Couldn't find ms-vsintellicode-typescript #565

jjpepper opened this issue Aug 6, 2024 · 4 comments

Comments

@jjpepper
Copy link

jjpepper commented Aug 6, 2024

I was told to raise this with you by the vscode team here. This is causing the TypeScript plugin to die and restart constantly.

I'm not actually seeing any logs in the VS IntelliCode output window, I'm getting the following error in the tsserver.log verbose log file:

Info 305  [04:39:20.916] Enabling plugin ms-vsintellicode-typescript from candidate paths: /home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1,/home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1,/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js/../../..
Info 306  [04:39:20.916] Loading ms-vsintellicode-typescript from /home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1 (resolved to /home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1/node_modules)
Info 307  [04:39:20.916] Loading ms-vsintellicode-typescript from /home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1 (resolved to /home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1/node_modules)
Info 308  [04:39:20.916] Loading ms-vsintellicode-typescript from /vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js/../../.. (resolved to /vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/node_modules)
Info 309  [04:39:20.917] Failed to load module 'ms-vsintellicode-typescript' from /home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1/node_modules: Error: Could not resolve JS module 'ms-vsintellicode-typescript' starting at '/home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1/node_modules'. Looked in: /home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1/node_modules/ms-vsintellicode-typescript/package.json, /home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1/node_modules/ms-vsintellicode-typescript.js, /home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1/node_modules/ms-vsintellicode-typescript.jsx, /home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1/node_modules/ms-vsintellicode-typescript/index.js, /home/dev/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.3.1/node_modules/ms-vsintellicode-typescript/index.jsx, /home/dev/.vscode-server/extensions/node_modules/ms-vsintellicode-typescript/package.json, /home/dev/.vscode-server/extensions/node_modules/ms-vsintellicode-typescript.js, /home/dev/.vscode-server/extensions/node_modules/ms-vsintellicode-typescript.jsx, /home/dev/.vscode-server/extensions/node_modules/ms-vsintellicode-typescript/index.js, /home/dev/.vscode-server/extensions/node_modules/ms-vsintellicode-typescript/index.jsx, /home/dev/.vscode-server/node_modules/ms-vsintellicode-typescript/package.json, /home/dev/.vscode-server/node_modules/ms-vsintellicode-typescript.js, /home/dev/.vscode-server/node_modules/ms-vsintellicode-typescript.jsx, /home/dev/.vscode-server/node_modules/ms-vsintellicode-typescript/index.js, /home/dev/.vscode-server/node_modules/ms-vsintellicode-typescript/index.jsx, /home/dev/node_modules/ms-vsintellicode-typescript/package.json, /home/dev/node_modules/ms-vsintellicode-typescript.js, /home/dev/node_modules/ms-vsintellicode-typescript.jsx, /home/dev/node_modules/ms-vsintellicode-typescript/index.js, /home/dev/node_modules/ms-vsintellicode-typescript/index.jsx, /home/node_modules/ms-vsintellicode-typescript/package.json, /home/node_modules/ms-vsintellicode-typescript.js, /home/node_modules/ms-vsintellicode-typescript.jsx, /home/node_modules/ms-vsintellicode-typescript/index.js, /home/node_modules/ms-vsintellicode-typescript/index.jsx, /node_modules/ms-vsintellicode-typescript/package.json, /node_modules/ms-vsintellicode-typescript.js, /node_modules/ms-vsintellicode-typescript.jsx, /node_modules/ms-vsintellicode-typescript/index.js, /node_modules/ms-vsintellicode-typescript/index.jsx
    at resolveJSModule (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:44094:11)
    at Object.require (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:8542:30)
    at _Project.importServicePluginSync (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:182283:27)
    at _ProjectService.requestEnablePlugin (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:187834:16)
    at ConfiguredProject2.enablePlugin (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:183593:25)
    at ConfiguredProject2.enableGlobalPlugins (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:183589:12)
    at ConfiguredProject2.enablePluginsWithOptions (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:184357:17)
    at _ProjectService.loadConfiguredProject (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:186133:13)
    at _ProjectService.reloadConfiguredProject (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:186385:10)
    at ConfiguredProject2.updateGraph (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:184283:29)
    at updateWithTriggerFile (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:184770:11)
    at updateConfiguredProject (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:184778:9)
    at _ProjectService.findCreateOrReloadConfiguredProject (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:187247:44)
    at _ProjectService.tryFindDefaultConfiguredProjectForOpenScriptInfo (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:187271:25)
    at _ProjectService.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:187317:25)
    at _ProjectService.assignProjectToOpenedScriptInfo (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:187202:27)
    at /vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:187575:25
    at Array.forEach (<anonymous>)
    at _ProjectService.applyChangesInOpenFiles (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:187573:56)
    at updateOpen (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:188764:29)
    at /vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:191397:69
    at IpcIOSession.executeWithRequestId (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:191389:14)
    at IpcIOSession.executeCommand (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:191397:29)
    at IpcIOSession.onMessage (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/typescript.js:191439:51)
    at process.<anonymous> (/vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729/extensions/node_modules/typescript/lib/tsserver.js:523:14)
    at process.emit (node:events:518:28)
    at emit (node:internal/child_process:951:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
@jjpepper
Copy link
Author

how long does it typically take for someone to take a look at an issue like this? It's a really frustrating problem that I'd love to get to the bottom of. I have tried boosting memory for typescript server as follows:

"typescript.tsserver.maxTsServerMemory": 3572

@luis-agm
Copy link

I've been dealing with this for a few weeks already, with that same message in the logs, and upping the max memory to 4096 worked a bit. It doesn't crash anymore although some times it takes a long time to load, e.g hovering over a variable stays as 'loading...' for a long time. Still have to reload vscode every now and then when it gets stuck like that, but no useful logs so far. I'll add the logs here if I manage to catch anything useful.

For some context, I do work in a very large monorepo, I only have 16gb of memory and webpack/rspack alone takes 10gb so the macbook is usually swapping around 12gb.

@jjpepper
Copy link
Author

jjpepper commented Aug 21, 2024 via email

@marco-quintella
Copy link

marco-quintella commented Aug 30, 2024

Same here. Had to turn off Intellicode extension to be able to use TS Server.

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

3 participants