-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
JS/TS language features/server keeps crashing. #1888
Comments
Can you check the Output tab (CTRL+Shift+M) and choose the "TypeScript" option in the dropdown, and see if there are any errors or crashing in there? It's hard to diagnose from your system info and extensions alone, without knowing what the crash actually is, thanks :) |
Mine occasionally gets into a state like this while I'm editing code and occasionally using the tab completion. I haven't narrowed down a repro yet, but I do see this semi-regularly.
|
At least with the error you are facing @MatthewMaclean , this appears to be a general issue with the TSServer that affects Code, the underlying OSS app that VSCode and Cursor is based off. I'd recommend tracking some of the issues in their repo as a few resolution suggestions have been made there. A few people have said that reloading Cursor (/VSCode) without extensions stops it crashing, but no-one has found which extension(s) seem to cause this issue. I'll close this for now, as it's highly unlikely to be a Cursor bug - at most, if the bug is fixed in Code, it may just need a version bump of Code in a later version of Cursor. For reference: |
Interesting, at least based off of my experience, it happens way more frequently when using Cursor than I'd seen while using VSCode natively (but I agree VSCode/TS server have their own problems). I'd never seen warnings like Is there additional information I could track down to see if it's Cursor specific? |
My guess with that is that Cursor uses an older version of VSCode (or technically Code, the OSS app that VSCode and Cursor is based on) under the hood, and it’s possible there are improvements to the usage of TSServer in newer VSCode releases that Cursor hasn’t yet got. Especially if TSServer ships within VSCode/Cursor, it’s highly probable that my guess has at least some cause. Try running Cursor with no extensions (“Relaunch without Extensions” is in the command palette) and compare it to VSCode then, as it could be an extension (or an older version of one compared to your VSCode installation) is causing some issues. |
Just for the record, anyone finding this: The extension "Import cost" did cause my extension host to crash constantly. I found out with the recommended bisect method. Uninstalling the extension did solve the problem. |
@moritzlaube Thank you! I've just found that it crashed at the moment when cursor.ai crashed. I have just uninstalled it 🤞 |
Anyone else facing this, this is usually due to a bad extension that runs for JS/TS code, that crashes. If anyone's facing this on a fresh install, please create a new issue, thanks. |
@moritzlaube Thank you very much for your exploration experience, it has really helped me a lot. This problem has troubled me for a long time. I always thought it was a bug in Cursor, and at one point, I even wanted to give up on Cursor. Now it seems I was a bit foolishly worrying myself.😅 |
Type: Bug
Initializing JS/TS language features plugin keeps crashing. It eats up my CPU. As long as I am currently on a .ts file it seems to do it.
VS Code version: Cursor 0.40.4 (63dae81aea2c3fc079420fe72578a8eef26ba870, 2024-09-05T02:52:05.660Z)
OS version: Darwin arm64 23.5.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (24)
The text was updated successfully, but these errors were encountered: