Skip to content

LanguageServer: connection to server is erroring. Shutting down server. #6277

@bobombolo

Description

@bobombolo

Type: Bug

Issue Description

Steps to Reproduce

fresh install of vsc

Expected Behavior

highlighting and code completion to work

Actual Behavior

none of that works

Logs

Using dotnet configured on PATH
Dotnet path: /usr/lib/dotnet/dotnet
Activating C# + C# Dev Kit + C# IntelliCode...
[Info - 09:00:56] [Program]Language server initialized
[Error - 09:01:15] Client Microsoft.CodeAnalysis.LanguageServer: connection to server is erroring. Shutting down server.
[Error - 09:01:15] Client Microsoft.CodeAnalysis.LanguageServer: connection to server is erroring. Shutting down server.
[Error - 09:01:15] Client Microsoft.CodeAnalysis.LanguageServer: connection to server is erroring. Shutting down server.
[Error - 09:01:15] Client Microsoft.CodeAnalysis.LanguageServer: connection to server is erroring. Shutting down server.
[Error - 09:01:15] Client Microsoft.CodeAnalysis.LanguageServer: connection to server is erroring. Shutting down server.
[Error - 09:01:15] Client Microsoft.CodeAnalysis.LanguageServer: connection to server is erroring. Shutting down server.
[Error - 09:01:17] Stopping server timed out
[Error - 09:01:17] Stopping server failed
Error: Stopping the server timed out
at /home/owner/.vscode/extensions/ms-dotnettools.csharp-2.0.436-linux-x64/dist/extension.js:2:2252653
[Error - 09:01:17] Stopping server failed
Error: Stopping the server timed out
at /home/owner/.vscode/extensions/ms-dotnettools.csharp-2.0.436-linux-x64/dist/extension.js:2:2252653
[Error - 09:01:17] Stopping server failed
Error: Stopping the server timed out
at /home/owner/.vscode/extensions/ms-dotnettools.csharp-2.0.436-linux-x64/dist/extension.js:2:2252653
[Error - 09:01:17] Stopping server failed
Error: Stopping the server timed out
at /home/owner/.vscode/extensions/ms-dotnettools.csharp-2.0.436-linux-x64/dist/extension.js:2:2252653
[Error - 09:01:17] Stopping server failed
Error: Stopping the server timed out
at /home/owner/.vscode/extensions/ms-dotnettools.csharp-2.0.436-linux-x64/dist/extension.js:2:2252653
[Error - 09:01:17] Stopping server failed
Error: Stopping the server timed out
at /home/owner/.vscode/extensions/ms-dotnettools.csharp-2.0.436-linux-x64/dist/extension.js:2:2252653
[Error - 09:01:19] Client Microsoft.CodeAnalysis.LanguageServer: connection to server is erroring. Shutting down server.
Using dotnet configured on PATH

C# log

Post the output from Output-->C# here

C# LSP Trace Logs

Post the output from Output-->C# LSP Trace Logs here. Requires `dotnet.server.trace` to be set to `Trace`

Environment information

VSCode version: 1.81.1
C# Extension: 2.0.436
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 7.0.110 Commit: ba920f88ac

Runtime Environment:
OS Name: linuxmint
OS Version: 21.2
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/dotnet/sdk/7.0.110/

Host:
Version: 7.0.10
Architecture: x64
Commit: a6dbb800a4

.NET SDKs installed:
6.0.121 [/usr/lib/dotnet/sdk]
7.0.110 [/usr/lib/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.21 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.10 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.21 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.10 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Visual Studio Code Extensions
Extension Author Version Folder Name
csdevkit ms-dotnettools 0.4.10 ms-dotnettools.csdevkit-0.4.10-linux-x64
csharp ms-dotnettools 2.0.436 ms-dotnettools.csharp-2.0.436-linux-x64
vscode-dotnet-runtime ms-dotnettools 1.7.2 ms-dotnettools.vscode-dotnet-runtime-1.7.2
vscodeintellicode-csharp ms-dotnettools 0.1.26 ms-dotnettools.vscodeintellicode-csharp-0.1.26-linux-x64

Extension version: 2.0.436
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:18:39.991Z)
OS version: Linux x64 5.15.0-82-generic
Modes:

System Info
Item Value
CPUs AMD Ryzen 5 6600H with Radeon Graphics (12 x 1800)
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
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 1
Memory (System) 14.84GB (7.37GB free)
Process Argv --unity-launch --crash-reporter-id b44ea91b-4122-46c5-b5a6-f10a82d6673f
Screen Reader no
VM 0%
DESKTOP_SESSION mate
XDG_CURRENT_DESKTOP MATE
XDG_SESSION_DESKTOP mate
XDG_SESSION_TYPE x11
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
vscaat:30438848
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30803844
3biah626:30602489
f6dab269:30613381
vscrpc:30673769
showlangstatbar:30737416
0bi6i642:30823812
03d35959:30757346
7ij38806:30736111
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxptcf:30805731
pythonnoceb:30805159
dsvsc013:30795093
dsvsc014:30804076
diffeditorv1:30821571
dsvsc015cf:30823818

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions