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

JS/TS server crashing immediately 5 times and won't restart #206137

Closed
1jinwoo opened this issue Feb 23, 2024 · 1 comment
Closed

JS/TS server crashing immediately 5 times and won't restart #206137

1jinwoo opened this issue Feb 23, 2024 · 1 comment
Assignees

Comments

@1jinwoo
Copy link

1jinwoo commented Feb 23, 2024

Type: Bug

The very first error message with IntelliCode extension enabled:
Screenshot 2024-02-23 at 5 49 30 PM

The error message:
Screenshot 2024-02-23 at 5 47 13 PM

This issue has happened to me twice already. And the difficult part is I don't know what fixed it the first time.

First time it happend I tried the following:

  1. reinstalled VSCode
  2. uninstalled all extensions and enabled them one by one
  3. reinstalled VSCode after clearing out all caches (following these steps:
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist 
rm -fr ~/Library/Preferences/com.microsoft.VSCode.plist 
rm -fr ~/Library/Caches/com.microsoft.VSCode
rm -fr ~/Library/Caches/com.microsoft.VSCode.ShipIt/
rm -fr ~/Library/Application\ Support/Code/
rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/.vscode/
  1. Changed Max TS Server Memory
  2. Re-cloned the repo I was working on, and opened it

After trying all these, none worked. But then after a restart of VSCode, somehow JS/TS Server stopped crashing and IntelliSense started working.

Now it's my second time experiencing this issue and I can't figure out how to fix this again.

The first time that this issue occurs, the error message blames "IntelliCode" extension. So once I disable it, then it says JS/TS Server immediately crashed 5 times and won't retry.

I did experience slowing down of IntelliSense while coding right before this error recurred. Maybe I had way too many TS files open at once? But why does it persist after restarting VSCode or the computer itself, I don't know.

I am using 4.3.5-sdk version of TypeScript (which is repo's version. When I use workspace's version which is 5.3.2, the JS/TS server crashing issue does not happen and IntelliSesnse works as expected).

VS Code version: Code 1.86.2 (Universal) (903b1e9, 2024-02-13T19:42:13.651Z)
OS version: Darwin x64 23.2.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
Load (avg) 4, 6, 5
Memory (System) 16.00GB (2.81GB free)
Process Argv --crash-reporter-id dad13951-f7c6-41ff-9983-22f3707a98dd
Screen Reader no
VM 0%
Extensions (15)
Extension Author (truncated) Version
vscode-zipfs arc 3.0.0
vscode-eslint dba 2.4.4
gitlens eam 14.8.2
prettier-vscode esb 10.1.0
vscode-docker ms- 1.29.0
remote-containers ms- 0.338.1
java red 1.28.1
vscode-extension-bpmn-editor red 0.26.1
vscode-yaml red 1.14.0
pdf tom 1.2.2
vscode-java-debug vsc 0.56.1
vscode-java-dependency vsc 0.23.4
vscode-java-pack vsc 0.25.15
vscode-java-test vsc 0.40.1
vscode-maven vsc 0.44.0
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:30968133
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
d34g3935:30971562
edj9j583:30969295
a89i1917:30961429
7j2b6412:30969109
bg6jg535:30958357
ccp1r3:30958155

@1jinwoo
Copy link
Author

1jinwoo commented Feb 26, 2024

I fixed this issue following steps here: https://yarnpkg.com/getting-started/editor-sdks

The exact steps I took were:

  1. Update the root package.json file to include typescript (include other supported extensions if needed)
  2. run yarn dlx @yarnpkg/sdks vscode
  3. Make sure VSCode is using the repo's version of typescript

@1jinwoo 1jinwoo closed this as completed Feb 26, 2024
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants