Skip to content

C# language server crash #9693

Description

@rizkisetyap

Type: Bug

Issue Description

crash on wsl

Steps to Reproduce

Expected Behavior

Actual Behavior

Extension version: 2.140.9
VS Code version: Code 1.133.0 (a5b500951314efd502d07465bd138dfbd714a960, 2026-08-11T22:14:08Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Remote OS version: Linux x64 6.18.33.2-microsoft-standard-WSL2

Logs

C# log

Details
2026-08-20 08:29:39.517 [info] Locating .NET runtime version 10.0.5
2026-08-20 08:29:39.781 [info] Dotnet path: /usr/lib/dotnet/dotnet
2026-08-20 08:29:39.781 [info] Activating C# + C# Dev Kit...
2026-08-20 08:29:40.091 [info] info: Program[0]
2026-08-20 08:29:40.091 [info]       Server started with process ID 947
2026-08-20 08:29:41.579 [info] [Program] Language server initialized
2026-08-20 08:29:41.595 [info] [Program] Monitoring client process 649 for exit
2026-08-20 08:29:42.880 [info] [initialized] [Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.FileBasedProgramsEntryPointDiscovery] Finished discovery in '/home/alek/projects/be-amen/be-amen' in 21 milliseconds
2026-08-20 08:29:47.952 [info] [textDocument/_vs_getProjectContexts] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from /home/alek/.vscode-server/extensions/ms-dotnettools.csharp-2.140.9-linux-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer reloading to start from /usr/lib/dotnet/dotnet to match necessary SDK location.
2026-08-20 08:29:50.427 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project /home/alek/projects/be-amen/be-amen/Kalbe.App.Amen.Test/Kalbe.App.Amen.Test.csproj loaded by C# Dev Kit
2026-08-20 08:29:50.456 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project /home/alek/projects/be-amen/be-amen/Kalbe.App.Amen.Infrastructure/Kalbe.App.Amen.Infrastructure.csproj loaded by C# Dev Kit
2026-08-20 08:29:50.458 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project /home/alek/projects/be-amen/be-amen/Kalbe.App.Amen.Scheduler/Kalbe.App.Amen.Scheduler.csproj loaded by C# Dev Kit
2026-08-20 08:29:50.460 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project /home/alek/projects/be-amen/be-amen/Kalbe.App.Amen.Api/Kalbe.App.Amen.Api.csproj loaded by C# Dev Kit
2026-08-20 08:29:50.463 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project /home/alek/projects/be-amen/be-amen/Kalbe.App.Amen.Domain/Kalbe.App.Amen.Domain.csproj loaded by C# Dev Kit
2026-08-20 08:29:50.467 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project /home/alek/projects/be-amen/be-amen/Kalbe.App.Amen.Application/Kalbe.App.Amen.Application.csproj loaded by C# Dev Kit
2026-08-20 08:29:50.645 [warning] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Project /tmp/roslyn-canonical-misc/431a1a2a-7c24-47e3-a008-39e48edcf1d4/Canonical.csproj has unresolved dependencies
2026-08-20 08:29:50.852 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Successfully completed load of /home/alek/projects/be-amen/be-amen/Kalbe.App.Amen.Api/Controllers/Configurations/SystemConfigController.cs
2026-08-20 08:29:50.894 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Restoring Canonical.csproj: Running dotnet restore on /tmp/roslyn-canonical-misc/431a1a2a-7c24-47e3-a008-39e48edcf1d4/Canonical.csproj
2026-08-20 08:29:50.896 [info] [textDocument/_vs_getProjectContexts] [Microsoft.CodeAnalysis.LanguageServer.DotnetCliHelper] Using dotnet executable configured on the PATH
2026-08-20 08:29:52.306 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Restoring Canonical.csproj:   Determining projects to restore...
2026-08-20 08:29:53.097 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Restoring Canonical.csproj:   Restored /tmp/roslyn-canonical-misc/431a1a2a-7c24-47e3-a008-39e48edcf1d4/Canonical.csproj (in 182 ms).
2026-08-20 08:29:53.143 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Restore complete
2026-08-20 08:29:53.144 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:06.2701058
2026-08-20 08:29:54.046 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0011291
2026-08-20 08:30:05.562 [error] Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path '/tmp/Metalama/Logs/2024.2.30/Metalama-LanguageServer-78d293a7-6b68-41c8-85b1-baa56bb7c1ad.log'.
2026-08-20 08:30:05.562 [error]    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
2026-08-20 08:30:05.562 [error]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
2026-08-20 08:30:05.562 [error]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
2026-08-20 08:30:05.562 [error]    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
2026-08-20 08:30:05.562 [error]    at Metalama.Backstage.Infrastructure.FileSystem.CreateTextFile(String path)
2026-08-20 08:30:05.562 [error]    at Metalama.Backstage.Diagnostics.LogFileWriter.WriteBufferedMessagesToFile(Object state)
2026-08-20 08:30:05.562 [error]    at System.Threading.QueueUserWorkItemCallback.Execute()
2026-08-20 08:30:05.562 [error]    at System.Threading.ThreadPoolWorkQueue.Dispatch()
2026-08-20 08:30:05.562 [error]    at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
2026-08-20 08:30:05.562 [error]    at System.Threading.Thread.StartCallback()
2026-08-20 08:30:05.655 [info] Connection to server got closed. Server will restart.
2026-08-20 08:30:05.676 [error] Server process exited with signal SIGABRT.
2026-08-20 08:30:05.793 [info] info: Program[0]
2026-08-20 08:30:05.793 [info]       Server started with process ID 2064
2026-08-20 08:30:06.405 [info] [Program] Language server initialized
2026-08-20 08:30:06.409 [info] [Program] Monitoring client process 649 for exit
2026-08-20 08:30:07.020 [info] [initialized] [Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.FileBasedProgramsEntryPointDiscovery] Finished discovery in '/home/alek/projects/be-amen/be-amen' in 12 milliseconds
2026-08-20 08:30:07.838 [info] [textDocument/documentSymbol] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from /home/alek/.vscode-server/extensions/ms-dotnettools.csharp-2.140.9-linux-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer reloading to start from /usr/lib/dotnet/dotnet to match necessary SDK location.
2026-08-20 08:30:09.046 [warning] [textDocument/documentSymbol] [LanguageServerProjectLoader] Project /tmp/roslyn-canonical-misc/c698bdb5-ad35-418e-b551-24984a20a785/Canonical.csproj has unresolved dependencies
2026-08-20 08:30:09.109 [info] [textDocument/documentSymbol] [LanguageServerProjectLoader] Successfully completed load of /home/alek/projects/be-amen/be-amen/Kalbe.App.Amen.Api/Controllers/Configurations/SystemConfigController.cs
2026-08-20 08:30:09.129 [info] [textDocument/documentSymbol] [LanguageServerProjectLoader] Restoring Canonical.csproj: Running dotnet restore on /tmp/roslyn-canonical-misc/c698bdb5-ad35-418e-b551-24984a20a785/Canonical.csproj
2026-08-20 08:30:09.130 [info] [textDocument/documentSymbol] [Microsoft.CodeAnalysis.LanguageServer.DotnetCliHelper] Using dotnet executable configured on the PATH
2026-08-20 08:30:09.814 [info] [textDocument/documentSymbol] [LanguageServerProjectLoader] Restoring Canonical.csproj:   Determining projects to restore...
2026-08-20 08:30:10.213 [info] [textDocument/documentSymbol] [LanguageServerProjectLoader] Restoring Canonical.csproj:   Restored /tmp/roslyn-canonical-misc/c698bdb5-ad35-418e-b551-24984a20a785/Canonical.csproj (in 85 ms).
2026-08-20 08:30:10.241 [info] [textDocument/documentSymbol] [LanguageServerProjectLoader] Restore complete
2026-08-20 08:30:10.241 [info] [textDocument/documentSymbol] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:02.6731589
2026-08-20 08:30:10.724 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of /home/alek/projects/be-amen/be-amen/Kalbe.App.Amen.Api/Controllers/Configurations/SystemConfigController.cs
2026-08-20 08:30:10.724 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0044000

C# LSP Trace Logs log

Details

Environment Information

VSCode version: 1.133.0
C# Extension: 2.140.9
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 10.0.110 Commit: f7d90799ce Workload version: 10.0.100-manifests.1641d827 MSBuild version: 18.0.11+f7d90799c

Runtime Environment:
OS Name: ubuntu
OS Version: 26.04
OS Platform: Linux
RID: ubuntu.26.04-x64
Base Path: /usr/lib/dotnet/sdk/10.0.110/

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
Version: 10.0.10
Architecture: x64
Commit: f7d90799ce

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

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

Other architectures found:
None

Environment variables:
DOTNET_BUNDLE_EXTRACT_BASE_DIR [/home/alek/.cache/dotnet_bundle_extract]
DOTNET_CLI_UI_LANGUAGE [en-US]
DOTNET_MULTILEVEL_LOOKUP [0]

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 3.10.14 ms-dotnettools.csdevkit-3.10.14-linux-x64
csharp ms-dotnettools 2.140.9 ms-dotnettools.csharp-2.140.9-linux-x64
opencode sst-dev 0.0.13 sst-dev.opencode-0.0.13
sonarlint-vscode SonarSource 5.7.0 sonarsource.sonarlint-vscode-5.7.0-linux-x64
vscode-dotnet-runtime ms-dotnettools 3.1.0 ms-dotnettools.vscode-dotnet-runtime-3.1.0
C# Settings
Setting Value
preferCSharpExtension false
compilerDiagnosticScope openFiles
analyzerDiagnosticScope openFiles
enableXamlTools true
useServerGC true
System Info
Item Value
CPUs AMD Ryzen 7 7735HS with Radeon Graphics (16 x 3194)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x1002, DEVICE=0x1681 [AMD Radeon(TM) Graphics], DRIVER_VENDOR=AMD, DRIVER_VERSION=32.0.21045.1000 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8972
Machine model name:
Machine model version:
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
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.25GB (1.26GB free)
Process Argv --folder-uri=vscode-remote://wsl+Ubuntu/home/alek/projects/be-amen/be-amen --remote=wsl+Ubuntu --crash-reporter-id 841839ec-de20-48ae-8281-a0fc3e57710c
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu
OS Linux x64 6.18.33.2-microsoft-standard-WSL2
CPUs AMD Ryzen 7 7735HS with Radeon Graphics (16 x 0)
Memory (System) 7.38GB (3.24GB free)
VM 0%
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
envsactivate1:31551504
cloudbuttont:31379625
3efgi100_wstrepl:31403338
839jf696:31457053
ddidt:31399633
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
cp_cls_t_1081:31454832
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
c9b86496:31447327
control_6dc23131:31555649
ei9d7968:31496641
chat:31457767
8hig5102:31480529
89g7j272:31518289
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
h08i8180:31475369
ddid_t:31478206
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
jh5f2457_c:31540921
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
jf4hg949:31526829
ahp-both-windows:31556933
sessions_3:31532893
ihg5j128:31534457
f412h606:31551416
7g2b5551:31542111
nes-ex-cf-euporie-03:31542868
enable_editor_pane_layout:31569726
allow-none:31555437
6i51c363:31551401
36h42362:31564511
c7c27ce7:31554789
1h923230:31564177
0dg73464:31554319
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31566037
0c1h4866:31566224
session-mark-done:31558131
5b8j3302:31564601

Metadata

Metadata

Assignees

No one assigned

    Labels

    C#DKThe C#DK extension is installeduntriaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions