ITADN

Error

#9429OpenLibeeshMN 创建于 2026-06-14
untriagedC#DK
L
LibeeshMNcommented
Type: <b>Bug</b> ## Issue Description ## ## Steps to Reproduce ## ## Expected Behavior ## ## Actual Behavior ## Extension version: 2.140.9 VS Code version: Code 1.124.2 (6928394f91b684055b873eecb8bc281365131f1c, 2026-06-12T00:12:36Z) OS version: Windows_NT x64 10.0.26100 Modes: ### Logs ### <!-- If you can, it would be the most helpful to zip up and attach the entire extensions log folder. The folder can be opened by running the `workbench.action.openExtensionLogsFolder` command. Additionally, if you can reproduce the issue reliably, use trace logging, see https://github.com/dotnet/vscode-csharp/blob/main/SUPPORT.md#c-lsp-trace-logs and then report the issue. --> ### C# log ### <details> ``` 2026-06-14 01:23:36.592 [info] Installing C# dependencies... 2026-06-14 01:23:36.592 [info] 2026-06-14 01:23:36.592 [info] Platform: win32, x86_64 2026-06-14 01:23:36.592 [info] 2026-06-14 01:23:36.592 [info] Downloading package 'Language server for Roslyn Copilot integration' 2026-06-14 01:23:38.437 [info] (47 KB) 2026-06-14 01:23:38.438 [info] ....... 2026-06-14 01:23:38.692 [info] ....... 2026-06-14 01:23:38.693 [info] ...... 2026-06-14 01:23:38.693 [info] Done! 2026-06-14 01:23:38.695 [info] Validating download... 2026-06-14 01:23:38.695 [info] Integrity Check succeeded. 2026-06-14 01:23:38.695 [info] Installing package 'Language server for Roslyn Copilot integration' 2026-06-14 01:23:38.695 [info] 2026-06-14 01:23:38.718 [info] Downloading package 'VSWebAssemblyBridge (Platform Agnostic)' 2026-06-14 01:23:40.283 [info] (4143 KB) 2026-06-14 01:23:40.283 [info] . 2026-06-14 01:23:40.489 [info] 2026-06-14 01:23:40.696 [info] 2026-06-14 01:23:40.697 [info] 2026-06-14 01:23:40.904 [info] 2026-06-14 01:23:40.905 [info] . 2026-06-14 01:23:40.905 [info] 2026-06-14 01:23:40.906 [info] 2026-06-14 01:23:41.110 [info] 2026-06-14 01:23:41.111 [info] 2026-06-14 01:23:41.112 [info] . 2026-06-14 01:23:41.113 [info] 2026-06-14 01:23:41.113 [info] 2026-06-14 01:23:41.114 [info] 2026-06-14 01:23:41.115 [info] 2026-06-14 01:23:41.115 [info] . 2026-06-14 01:23:41.322 [info] 2026-06-14 01:23:41.323 [info] 2026-06-14 01:23:41.324 [info] 2026-06-14 01:23:41.325 [info] 2026-06-14 01:23:41.326 [info] . 2026-06-14 01:23:41.326 [info] 2026-06-14 01:23:41.326 [info] 2026-06-14 01:23:41.326 [info] 2026-06-14 01:23:41.327 [info] 2026-06-14 01:23:41.328 [info] . 2026-06-14 01:23:41.329 [info] 2026-06-14 01:23:41.329 [info] 2026-06-14 01:23:41.330 [info] 2026-06-14 01:23:41.330 [info] 2026-06-14 01:23:41.331 [info] . 2026-06-14 01:23:41.527 [info] 2026-06-14 01:23:41.528 [info] 2026-06-14 01:23:41.529 [info] 2026-06-14 01:23:41.530 [info] 2026-06-14 01:23:41.531 [info] . 2026-06-14 01:23:41.531 [info] 2026-06-14 01:23:41.532 [info] 2026-06-14 01:23:41.533 [info] 2026-06-14 01:23:41.533 [info] 2026-06-14 01:23:41.534 [info] . 2026-06-14 01:23:41.535 [info] 2026-06-14 01:23:41.536 [info] 2026-06-14 01:23:41.536 [info] 2026-06-14 01:23:41.536 [info] 2026-06-14 01:23:41.537 [info] . 2026-06-14 01:23:41.539 [info] 2026-06-14 01:23:41.539 [info] 2026-06-14 01:23:41.540 [info] 2026-06-14 01:23:41.540 [info] 2026-06-14 01:23:41.541 [info] . 2026-06-14 01:23:41.543 [info] 2026-06-14 01:23:41.543 [info] 2026-06-14 01:23:41.544 [info] 2026-06-14 01:23:41.544 [info] 2026-06-14 01:23:41.545 [info] . 2026-06-14 01:23:41.546 [info] 2026-06-14 01:23:41.547 [info] 2026-06-14 01:23:41.547 [info] 2026-06-14 01:23:41.549 [info] 2026-06-14 01:23:41.549 [info] . 2026-06-14 01:23:41.598 [info] 2026-06-14 01:23:41.735 [info] 2026-06-14 01:23:41.736 [info] 2026-06-14 01:23:41.737 [info] 2026-06-14 01:23:41.738 [info] . 2026-06-14 01:23:41.739 [info] 2026-06-14 01:23:41.740 [info] 2026-06-14 01:23:41.741 [info] 2026-06-14 01:23:41.741 [info] 2026-06-14 01:23:41.741 [info] . 2026-06-14 01:23:41.742 [info] 2026-06-14 01:23:41.742 [info] 2026-06-14 01:23:41.743 [info] 2026-06-14 01:23:41.743 [info] 2026-06-14 01:23:41.744 [info] . 2026-06-14 01:23:41.745 [info] 2026-06-14 01:23:41.745 [info] 2026-06-14 01:23:41.745 [info] 2026-06-14 01:23:41.746 [info] 2026-06-14 01:23:41.747 [info] . 2026-06-14 01:23:41.747 [info] 2026-06-14 01:23:41.748 [info] 2026-06-14 01:23:41.748 [info] 2026-06-14 01:23:41.749 [info] 2026-06-14 01:23:41.750 [info] . 2026-06-14 01:23:41.750 [info] 2026-06-14 01:23:41.752 [info] 2026-06-14 01:23:41.753 [info] 2026-06-14 01:23:41.753 [info] 2026-06-14 01:23:41.753 [info] . 2026-06-14 01:23:41.754 [info] 2026-06-14 01:23:41.754 [info] 2026-06-14 01:23:41.754 [info] 2026-06-14 01:23:41.757 [info] 2026-06-14 01:23:41.757 [info] . 2026-06-14 01:23:41.757 [info] 2026-06-14 01:23:41.758 [info] 2026-06-14 01:23:41.758 [info] 2026-06-14 01:23:41.961 [info] 2026-06-14 01:23:41.964 [info] Done! 2026-06-14 01:23:41.981 [info] Validating download... 2026-06-14 01:23:41.981 [info] Integrity Check succeeded. 2026-06-14 01:23:41.981 [info] Installing package 'VSWebAssemblyBridge (Platform Agnostic)' 2026-06-14 01:23:41.982 [info] 2026-06-14 01:23:42.163 [info] Finished 2026-06-14 01:23:42.163 [info] 2026-06-14 01:23:42.364 [info] Locating .NET runtime version 10.0.5 2026-06-14 01:23:44.157 [info] Did not find .NET 10.0.5 on path, falling back to acquire runtime via ms-dotnettools.vscode-dotnet-runtime 2026-06-14 01:24:07.923 [info] Dotnet path: c:\Users\Libeesh\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.9~x64~aspnetcore\dotnet.exe 2026-06-14 01:24:07.923 [info] Activating C# + C# Dev Kit... 2026-06-14 01:24:08.283 [info] info: Program[0] 2026-06-14 01:24:08.283 [info] Server started with process ID 110296 2026-06-14 01:24:10.741 [info] [Program] Language server initialized 2026-06-14 01:24:10.741 [info] [Program] Monitoring client process 17908 for exit 2026-06-14 01:24:11.651 [info] [initialized] [Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.FileBasedProgramsEntryPointDiscovery] Finished discovery in 'c:\Tools_Dev' in 13 milliseconds 2026-06-14 01:24:18.648 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Tools_Dev\StorageGuardian\StorageGuardian.csproj loaded by C# Dev Kit 2026-06-14 01:25:24.255 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Tools_Dev\StorageGuardian\StorageGuardian_y3e2mhgm_wpftmp.csproj loaded by C# Dev Kit 2026-06-14 01:26:01.738 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Tools_Dev\StorageGuardian\StorageGuardian_itbbiqzf_wpftmp.csproj loaded by C# Dev Kit 2026-06-14 01:26:37.115 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Tools_Dev\StorageGuardian\StorageGuardian_kwmy4xch_wpftmp.csproj loaded by C# Dev Kit 2026-06-14 01:27:13.910 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Tools_Dev\StorageGuardian\StorageGuardian_wpqwuspk_wpftmp.csproj loaded by C# Dev Kit 2026-06-14 01:27:15.153 [error] [textDocument/diagnostic] [LSP] System.InvalidOperationException: Sequence contains more than one element at System.Linq.ThrowHelper.ThrowMoreThanOneElementException() at Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler.CreateReturn(BufferedProgress`1 progress) in /_/src/LanguageServer/Protocol/Handler/Diagnostics/Public/PublicDocumentPullDiagnosticsHandler.cs:line 66 at Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.AbstractPullDiagnosticHandler`3.HandleRequestAsync(TDiagnosticsParams diagnosticsParams, RequestContext context, CancellationToken cancellationToken) at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken) 2026-06-14 01:27:15.156 [error] Request textDocument/diagnostic failed. Message: Sequence contains more than one element Code: -32000 [object Object] 2026-06-14 01:27:15.156 [error] Document pull failed for text document file:///c%3A/Tools_Dev/StorageGuardian/AssemblyInfo.cs Message: Sequence contains more than one element Code: -32000 [object Object] 2026-06-14 01:27:35.520 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Tools_Dev\StorageGuardian\StorageGuardian_gnchdrlq_wpftmp.csproj loaded by C# Dev Kit ``` </details> ### C# LSP Trace Logs log ### <details> ``` ``` </details> ## Environment Information ## **VSCode version**: 1.124.2 **C# Extension**: 2.140.9 **Using OmniSharp**: false <details><summary>Dotnet Information</summary> Host: Version: 10.0.9 Architecture: x64 Commit: 901ca94124 RID: win-x64 .NET SDKs installed: No SDKs were found. .NET runtimes installed: Microsoft.AspNetCore.App 10.0.9 [c:\Users\Libeesh\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.9~x64~aspnetcore\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 10.0.9 [c:\Users\Libeesh\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.9~x64~aspnetcore\shared\Microsoft.NETCore.App] Other architectures found: x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation] Environment variables: DOTNET_CLI_UI_LANGUAGE [en-US] DOTNET_MULTILEVEL_LOOKUP [0] DOTNET_NOLOGO [true] global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/download </details> <details><summary>Visual Studio Code Extensions</summary> |Extension|Author|Version|Folder Name| |---|---|---|---| |chatgpt|openai|26.609.30741|openai.chatgpt-26.609.30741-win32-x64| |csdevkit|ms-dotnettools|3.20.199|ms-dotnettools.csdevkit-3.20.199-win32-x64| |csharp|ms-dotnettools|2.140.9|ms-dotnettools.csharp-2.140.9-win32-x64| |go|golang|0.54.0|golang.go-0.54.0| |vscode-dotnet-runtime|ms-dotnettools|3.1.0|ms-dotnettools.vscode-dotnet-runtime-3.1.0|; </details> <details><summary>C# Settings</summary> |Setting|Value| |---|---| |preferCSharpExtension|false| |compilerDiagnosticScope|openFiles| |analyzerDiagnosticScope|openFiles| |enableXamlTools|true| |useServerGC|true|; </details> <details> <summary>System Info</summary> |Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) Silver 4216 CPU @ 2.10GHz (4 x 2095)| |GPU Status|2d_canvas: unavailable_software<br>GPU0: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VENDOR=Microsoft, DRIVER_VERSION=10.0.26100.1301 *ACTIVE*<br>GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.1301<br>GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.1301<br>Machine model name: <br>Machine model version: <br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: disabled_software<br>multiple_raster_threads: enabled_on<br>opengl: disabled_off<br>rasterization: disabled_software<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>trees_in_viz: disabled_off<br>video_decode: disabled_software<br>video_encode: disabled_software<br>webgl: unavailable_software<br>webgpu: unavailable_software<br>webnn: unavailable_software| |Load (avg)|undefined| |Memory (System)|16.00GB (6.66GB free)| |Process Argv|| |Screen Reader|no| |VM|100%| </details><details> <summary>A/B Experiments</summary> ``` vsliv368:30146709 binariesv615:30325510 nativeloc1:31344060 dwcopilot:31170013 dwoutputs:31242946 copilot_t_ci:31333650 e5gg6876:31282496 pythonrdcb7:31342333 6518g693:31463988 aj953862:31281341 6abeh943:31336334 envsdeactivate2:31505458 cloudbuttont:31379625 3efgi100_wstrepl:31403338 ec5jj548:31422691 cp_cls_t_966_ss:31526232 4je02754:31466945 c3h7c220:31478652 38bie571_auto:31426784 cp_cls_c_1081:31454833 conptydll_true:31498968 ia-use-proxy-models-svc:31452481 e9c30283:31461165 test_treatment2:31471001 c9b86496:31447327 idci7584:31464702 e3e4d672:31494082 ei9d7968:31496641 chat:31457767 8hig5102:31480529 89g7j272:31518289 7e187181:31503455 i2gc6536:31499202 52612955:31516516 ghj88844:31499326 ddid_c:31478207 hmra_i5g22:31518061 7df3h592:31512476 cp_cls_t_1082:31516087 logging_enabled_new:31498466 db5d2638:31499441 nes-extended-cfe-himalia-004:31500446 jb_cp_cls_c_632:31524806 748c7209:31512887 32d76977:31512328 ha629193:31508444 cdk-lw-on:31524445 nes-charagree-1:31521370 31fi7170_t:31522396 jbcp_cls_pctr_t:31531130 61138546:31518536 gf14b233:31526830 nes-curr-leftover-1500:31530973 ``` </details> <!-- generated by issue reporter -->
1 条评论