You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open a large repo and then open any .js or .ts file. No intellisense.
All extensions (except WSL remote) disabled. Tried with latest TS. It DOES work if the project files are not in WSL2. Possibly related to Remote - WSL extension?
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.19041
Remote OS version: Linux x64 4.19.84-microsoft-standard
System Info
Item
Value
CPUs
Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)
After opening and watching "Initializing js/ts server...". I verbose logging shows a whole mess of stuff, happy to put it all here if needed.
Some that stick out:
Then it just kind of hangs. I noticed when I try to force some intellisense (with ctrl+space) I see these errors:
[Error - 19:35:46.867] ReaderError
RangeError [ERR_OUT_OF_RANGE]: The value of "length" is out of range. It must be an integer. Received NaN
at Function.concat (buffer.js:449:5)
at l.append (/home/alex/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/extensions/typescript-language-features/dist/extension.js:1:210613)
at t.Reader.onLengthData (/home/alex/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/extensions/typescript-language-features/dist/extension.js:1:211680)
at Socket.<anonymous> (/home/alex/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/extensions/typescript-language-features/dist/extension.js:1:211607)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
I also just started getting this pop-up too:
No idea if it's related but it's new all of the sudden. My max user watches are already 524288 (there are not nearly that many files in this project, not including node_modules) but I'm not ruling out some serious WSL2 weirdness here.
Possibly-- but it just started recently. And I DO have the files in the native WSL2 system (where they are recommended to go and things are generally blazing fast from there).
I really would like to exclude all node_modules folders from any kind in the project. No tweaking of the file_watcher settings seems to work effectively. There are probably 500+ node_modules folders in this project that I have open here.
This Vmmem process is taking almost all of my memory (!!28GB+) and about ~40-50% CPU until I start getting errors. Even after the errors come, the CPU usage drops to about 10% but it doesn't let go of the memory (even after closing Code). The CPU drops to ~0% after I close it, though.
It doesn't let go of the whopping 28GB of memory until I literally shutdown the WSL2 VM with wsl --shutdown. If I open Code again with this project, I get the "Initializing JS/TS language features" and watch this Vmmem process climb and climb until I run out of RAM and it fails.
Digging in more, it definitely looks related to the file watchers. No matter what kind of globbing I can come up with, I can't get Code to ignore all node_modules folders recursively.
I dont know think it would help since editor watches node_modules directory instead of actual script infos. I think the issue is similar to #33335. We would need more options to ignore directories for watch to handle this.
Sheetal Nandi (@sheetalkamat) that certainly seems like it. It doesn't look like it's possible today to have this directory open with WSL2 in Code unfortunately.
Activity
alexpaluzzi commentedon Jan 16, 2020
After opening and watching "Initializing js/ts server...". I verbose logging shows a whole mess of stuff, happy to put it all here if needed.
Some that stick out:
[Trace - 19:30:30.496] Response received: updateOpen (2). Request took 137986 ms. Success: true
This took over 2 minutes.
[Trace - 19:30:31.120] Response received: getSupportedCodeFixes (3). Request took 138609 ms. Success: true
This took another 2 minutes.
[Trace - 19:30:37.291] Response received: configure (4). Request took 144779 ms. Success: true
Another 2+ minutes.
Then it just kind of hangs. I noticed when I try to force some intellisense (with ctrl+space) I see these errors:
I also just started getting this pop-up too:
No idea if it's related but it's new all of the sudden. My max user watches are already 524288 (there are not nearly that many files in this project, not including node_modules) but I'm not ruling out some serious WSL2 weirdness here.
mjbvz commentedon Jan 16, 2020
Seems like #33335
[-]TypeScript server won't start[/-][+]TypeScript server won't start on WSL[/+]alexpaluzzi commentedon Jan 16, 2020
Possibly-- but it just started recently. And I DO have the files in the native WSL2 system (where they are recommended to go and things are generally blazing fast from there).
I really would like to exclude all
node_modulesfolders from any kind in the project. No tweaking of the file_watcher settings seems to work effectively. There are probably 500+node_modulesfolders in this project that I have open here.alexpaluzzi commentedon Jan 16, 2020
Matt Bierner (@mjbvz) even trying to completely disable the filewatcher.
This
Vmmemprocess is taking almost all of my memory (!!28GB+) and about ~40-50% CPU until I start getting errors. Even after the errors come, the CPU usage drops to about 10% but it doesn't let go of the memory (even after closing Code). The CPU drops to ~0% after I close it, though.It doesn't let go of the whopping 28GB of memory until I literally shutdown the WSL2 VM with
wsl --shutdown. If I open Code again with this project, I get the "Initializing JS/TS language features" and watch thisVmmemprocess climb and climb until I run out of RAM and it fails.alexpaluzzi commentedon Jan 16, 2020
There is something seriously wrong with how my project opens here in WSL2 and Code. I was able to reproduce this on an entirely different machine.
To give an idea of what my project looks like:
There are about 500+ folderB(n). All with their own
node_modulesfolder. The joyous world of "serverless".alexpaluzzi commentedon Jan 17, 2020
Digging in more, it definitely looks related to the file watchers. No matter what kind of globbing I can come up with, I can't get Code to ignore all
node_modulesfolders recursively.alexpaluzzi commentedon Jan 17, 2020
Continuing my search, I strongly believe this is related to: microsoft/WSL#4166.
mjbvz commentedon Jan 21, 2020
Sheetal Nandi (@sheetalkamat) Should Alex Paluzzi (@alexpaluzzi) try changing to use a different file watching strategy to see if that helps?
sheetalkamat commentedon Jan 24, 2020
I dont know think it would help since editor watches
node_modulesdirectory instead of actual script infos. I think the issue is similar to #33335. We would need more options to ignore directories for watch to handle this.alexpaluzzi commentedon Jan 24, 2020
Sheetal Nandi (@sheetalkamat) that certainly seems like it. It doesn't look like it's possible today to have this directory open with WSL2 in Code unfortunately.