forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
954 stars 406 forks source link

The LWC Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. #4609

Closed NagarjunaParala closed 1 year ago

NagarjunaParala commented 1 year ago

Type: Bug

The LWC Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.

Extension version: 56.5.1 VS Code version: Code 1.74.2 (e8a3071ea4344d9d48ef8a4df2c097372b0c5161, 2022-12-20T10:29:14.590Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz (8 x 2208)| |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_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|15.61GB (3.24GB free)| |Process Argv|--crash-reporter-id f6875d21-a51b-4eed-9e1e-414df8c24269| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 vsccc:30610678 pyindex848cf:30577861 nodejswelcome1cf:30587006 3biah626:30602489 gswce1:30612156 3d0df643:30613357 f6dab269:30613381 fim-prod:30623723 ```
klewis-sfdc commented 1 year ago

Hi @NagarjunaParala, can you check which version of node you are using? In the past we have seen users resolve this issue by updating to a more recent version of node/npm: https://github.com/forcedotcom/salesforcedx-vscode/issues/1267#issuecomment-502116430.

dseverson-salesforce commented 1 year ago

I get the same thing and I'm running v14.20.0 of node.js.

OS Version: Mac OS Ventura 13.1 Extension Version: 56.14.0

The "OUTPUT" window pops open every time I save a file change - so it's pretty annoying 😄

Is there some command or process that's supposed to be creating the ~/blt/config.blt file that the output is complaining about?

Screenshot 2023-01-23 at 1 49 04 PM

dseverson-salesforce commented 1 year ago

Related bug filed on different repository: https://github.com/forcedotcom/lightning-language-server/issues/497

NagarjunaParala commented 1 year ago

Hi @klewis-sfdc , v14.17.6 This is my current node version. Still the issue unresolved

NagarjunaParala commented 1 year ago

Any updates to resolve the issue?

randi274 commented 1 year ago

Hi @NagarjunaParala sorry this is still an issue for you! Do you also see this error if you open up a new project? I'm wondering if there's some metadata that the language server is failing with. If it works with a new project, is it possible to share with us a repository where you encounter this issue?

(@dseverson-salesforce for you I'd recommend following/engaging on that other bug, as that's specific to our BLT users!)

NagarjunaParala commented 1 year ago

Yes I see this error even If I opened/created a new project.

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

zachkinsler commented 1 year ago

I'm getting this issue as well

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

randi274 commented 1 year ago

@NagarjunaParala or others - what npm version do you see running with npm version in your project? This repository is now running with node v16 as well.

github-actions[bot] commented 1 year ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.