-
Notifications
You must be signed in to change notification settings - Fork 12.8k
TypeScript server won't start on WSL #36243
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
Comments
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. [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. |
Seems like #33335 |
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 |
@mjbvz even trying to completely disable the filewatcher. This It doesn't let go of the whopping 28GB of memory until I literally shutdown the WSL2 VM with |
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 |
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 |
Continuing my search, I strongly believe this is related to: microsoft/WSL#4166. |
@sheetalkamat Should @alexpaluzzi try changing to use a different file watching strategy to see if that helps? |
I dont know think it would help since editor watches |
@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. |
Issue Type: Bug
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
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Extensions (3)
The text was updated successfully, but these errors were encountered: