MicrosoftDocs / intellicode

Visual Studio IntelliCode - AI-enhanced development tools. 👋Want to submit an issue to MicrosoftDocs/intellicode? If you have a bug or an idea, read the contributing guidelines before opening an issue. For FAQ's see
https://aka.ms/vsicfaq
Creative Commons Attribution 4.0 International
744 stars 66 forks source link

Couldn't find ms-vsintellicode-typescript #565

Open jjpepper opened 1 month ago

jjpepper commented 1 month ago

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 commented 4 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

ok thanks. I'm using a dev container with a whole bunch of small repos mounted inside, so the workspace is big

On Tue, 20 Aug 2024 at 20:39, Luis González @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/intellicode/issues/565#issuecomment-2298759100, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQOQY46Y7UVP2HQQPGAR4LZSM2GNAVCNFSM6AAAAABMBQREL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJYG42TSMJQGA . You are receiving this because you authored the thread.Message ID: @.***>

marco-quintella commented 2 weeks ago

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