Skip to content

error messages #9515

Description

@developmentblackcloud

Type: Bug

Issue Description

Steps to Reproduce

Expected Behavior

Actual Behavior

Extension version: 2.140.9
VS Code version: Code 1.127.0 (4fe60c8b1cdac1c4c174f2fb180d0d758272d713, 2026-06-30T10:52:33+02:00)
OS version: Windows_NT x64 10.0.26200
Modes:

Logs

C# log

Details
2026-07-08 03:40:24.762 [info] Locating .NET runtime version 10.0.5
2026-07-08 03:40:30.730 [info] Dotnet path: c:\Users\13104\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.8~x64~aspnetcore\dotnet.exe
2026-07-08 03:40:30.730 [info] Activating C# + C# Dev Kit...
2026-07-08 03:40:31.769 [info] info: Program[0]
2026-07-08 03:40:31.769 [info]       Server started with process ID 51532
2026-07-08 03:40:38.541 [info] [Program] Language server initialized
2026-07-08 03:40:38.603 [info] [Program] Monitoring client process 47216 for exit
2026-07-08 03:40:40.167 [info] [initialized] [Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.FileBasedProgramsEntryPointDiscovery] Finished discovery in 'c:\repos\hice\hice-portal-spa' in 37 milliseconds
2026-07-08 03:41:02.712 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\repos\hice\hice-portal-spa\app\HICEPortal.csproj loaded by C# Dev Kit
2026-07-08 03:43:33.918 [error] Request textDocument/semanticTokens/range failed.
  Message: Razor source generator did not produce a host output for project 'HICEPortal': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
   at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
   at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 113
-----

  Code: -32000 
[object Object]
2026-07-08 03:43:33.919 [error] Request textDocument/inlayHint failed.
  Message: Razor source generator did not produce a host output for project 'HICEPortal': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
   at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
   at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 113
-----

  Code: -32000 
[object Object]
2026-07-08 03:43:33.920 [error] Request textDocument/diagnostic failed.
  Message: Razor source generator did not produce a host output for project 'HICEPortal': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
   at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
   at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 113
-----

  Code: -32000 
[object Object]
2026-07-08 03:43:33.920 [error] Document pull failed for text document file:///c%3A/repos/hice/hice-portal-spa/app/Pages/Coqr.razor
  Message: Razor source generator did not produce a host output for project 'HICEPortal': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
   at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
   at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 113
-----

  Code: -32000 
[object Object]
2026-07-08 03:43:38.120 [error] Request textDocument/codeLens failed.
  Message: Razor source generator did not produce a host output for project 'HICEPortal': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
   at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
   at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 113
-----

  Code: -32000 
[object Object]
2026-07-08 03:43:38.651 [error] Request textDocument/semanticTokens/range failed.
  Message: Razor source generator did not produce a host output for project 'HICEPortal': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
   at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
   at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 113
-----

  Code: -32000 
[object Object]
2026-07-08 03:43:38.769 [error] Request textDocument/inlayHint failed.
  Message: Razor source generator did not produce a host output for project 'HICEPortal': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
   at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
   at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 113
-----

  Code: -32000 
[object Object]
2026-07-08 03:55:01.614 [error] Request textDocument/inlayHint failed.
  Message: Razor source generator did not produce a host output for project 'HICEPortal': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
   at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
   at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 113
-----

  Code: -32000 
[object Object]
2026-07-08 03:55:01.857 [error] Request textDocument/semanticTokens/range failed.
  Message: Razor source generator did not produce a host output for project 'HICEPortal': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Pages/Membership_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
   at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
   at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 113
-----

  Code: -32000 
[object Object]

C# LSP Trace Logs log

Details

Environment Information

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

Dotnet Information

Host:
Version: 10.0.8
Architecture: x64
Commit: 94ea82652c
RID: win-x64

.NET SDKs installed:
No SDKs were found.

.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.8 [c:\Users\13104\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\10.0.8x64aspnetcore\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.8 [c:\Users\13104\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\10.0.8x64aspnetcore\shared\Microsoft.NETCore.App]

Other architectures found:
arm64 [C:\Program Files\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\arm64\InstallLocation]
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
DOTNET_CLI_UI_LANGUAGE [en-US]
DOTNET_NOLOGO [true]

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
aws-toolkit-vscode amazonwebservices 4.9.0 amazonwebservices.aws-toolkit-vscode-4.9.0
azure-account ms-vscode 0.13.0 ms-vscode.azure-account-0.13.0
azure-dev ms-azuretools 0.10.0 ms-azuretools.azure-dev-0.10.0
azure-pipelines ms-azure-devops 1.261.1 ms-azure-devops.azure-pipelines-1.261.1
azurecli ms-vscode 0.6.0 ms-vscode.azurecli-0.6.0
azurerm-vscode-tools msazurermtools 0.15.15 msazurermtools.azurerm-vscode-tools-0.15.15
azurite Azurite 3.35.0 azurite.azurite-3.35.0
Blazor-VSCode-Extensions SyncfusionInc 34.1.29 syncfusioninc.blazor-vscode-extensions-34.1.29
code-bitbucket-pipelines lukebatchelor 0.4.2 lukebatchelor.code-bitbucket-pipelines-0.4.2
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
data-workspace-vscode ms-mssql 0.6.3 ms-mssql.data-workspace-vscode-0.6.3
debugpy ms-python 2026.6.0 ms-python.debugpy-2026.6.0-win32-x64
docker docker 0.18.0 docker.docker-0.18.0-win32-x64
figma-vscode-extension figma 0.4.5 figma.figma-vscode-extension-0.4.5
gitlab-workflow GitLab 6.84.2 gitlab.gitlab-workflow-6.84.2
lambda-snippets loganarnett 2.0.0 loganarnett.lambda-snippets-2.0.0
LiveServer ritwickdey 5.7.10 ritwickdey.liveserver-5.7.10
locofy-vs-code-extension Locofy 1.1.18 locofy.locofy-vs-code-extension-1.1.18
material-icon-theme PKief 5.36.1 pkief.material-icon-theme-5.36.1
microsoft-testing ms-azure-load-testing 0.2.0 ms-azure-load-testing.microsoft-testing-0.2.0
mssql ms-mssql 1.43.0 ms-mssql.mssql-1.43.0
ng-template Angular 22.0.1 angular.ng-template-22.0.1
oracle-java Oracle 26.0.0 oracle.oracle-java-26.0.0
powershell ms-vscode 2025.4.0 ms-vscode.powershell-2025.4.0
python ms-python 2026.4.0 ms-python.python-2026.4.0-win32-x64
remote-containers ms-vscode-remote 0.463.0 ms-vscode-remote.remote-containers-0.463.0
remote-wsl ms-vscode-remote 0.104.3 ms-vscode-remote.remote-wsl-0.104.3
sql-bindings-vscode ms-mssql 0.4.1 ms-mssql.sql-bindings-vscode-0.4.1
sql-database-projects-vscode ms-mssql 1.6.1 ms-mssql.sql-database-projects-vscode-1.6.1
svelte-vscode svelte 110.2.1 svelte.svelte-vscode-110.2.1
template-string-converter meganrogge 0.6.1 meganrogge.template-string-converter-0.6.1
terraform 4ops 0.2.5 4ops.terraform-0.2.5
terraform hashicorp 2.39.4 hashicorp.terraform-2.39.4-win32-x64
unused-css-detector robwizzie 1.0.3 robwizzie.unused-css-detector-1.0.3
vetur octref 0.37.3 octref.vetur-0.37.3
volar Vue 3.3.7 vue.volar-3.3.7
vscode-ai-foundry TeamsDevApp 1.2.4 teamsdevapp.vscode-ai-foundry-1.2.4
vscode-azure-github-copilot ms-azuretools 1.0.209 ms-azuretools.vscode-azure-github-copilot-1.0.209-win32-x64
vscode-azure-mcp-server ms-azuretools 2.0.45 ms-azuretools.vscode-azure-mcp-server-2.0.45-win32-x64
vscode-azureappservice ms-azuretools 0.27.0 ms-azuretools.vscode-azureappservice-0.27.0
vscode-azurecontainerapps ms-azuretools 0.11.2 ms-azuretools.vscode-azurecontainerapps-0.11.2
vscode-azurefunctions ms-azuretools 1.22.0 ms-azuretools.vscode-azurefunctions-1.22.0
vscode-azureresourcegroups ms-azuretools 0.12.7 ms-azuretools.vscode-azureresourcegroups-0.12.7
vscode-azurestaticwebapps ms-azuretools 0.13.3 ms-azuretools.vscode-azurestaticwebapps-0.13.3
vscode-azurestorage ms-azuretools 0.17.2 ms-azuretools.vscode-azurestorage-0.17.2
vscode-azureterraform ms-azuretools 0.10.2 ms-azuretools.vscode-azureterraform-0.10.2-win32-x64
vscode-azurevirtualmachines ms-azuretools 0.6.11 ms-azuretools.vscode-azurevirtualmachines-0.6.11
vscode-bicep ms-azuretools 0.44.1 ms-azuretools.vscode-bicep-0.44.1
vscode-containers ms-azuretools 2.4.5 ms-azuretools.vscode-containers-2.4.5
vscode-cosmosdb ms-azuretools 0.34.0 ms-azuretools.vscode-cosmosdb-0.34.0
vscode-docker ms-azuretools 2.0.0 ms-azuretools.vscode-docker-2.0.0
vscode-dotnet-runtime ms-dotnettools 3.1.0 ms-dotnettools.vscode-dotnet-runtime-3.1.0
vscode-node-azure-pack ms-vscode 1.8.2 ms-vscode.vscode-node-azure-pack-1.8.2
vscode-pylance ms-python 2026.2.1 ms-python.vscode-pylance-2026.2.1
vscode-python-envs ms-python 1.36.0 ms-python.vscode-python-envs-1.36.0-win32-x64
vscode-terminals fabiospampinato 2.1.2 fabiospampinato.vscode-terminals-2.1.2
vue-snippets hollowtree 1.0.4 hollowtree.vue-snippets-1.0.4
windows-ai-studio ms-windows-ai-studio 1.6.2 ms-windows-ai-studio.windows-ai-studio-1.6.2-win32-x64
C# Settings
Setting Value
preferCSharpExtension false
compilerDiagnosticScope openFiles
analyzerDiagnosticScope openFiles
enableXamlTools true
useServerGC true
System Info
Item Value
CPUs Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz (16 x 2904)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x9bc5 [Intel(R) UHD Graphics 630], DRIVER_VENDOR=Intel, DRIVER_VERSION=30.0.101.1404 ACTIVE
GPU1: VENDOR= 0x8086, DEVICE=0x9bc5 [Intel(R) UHD Graphics 630], DRIVER_VERSION=30.0.101.1404
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8521
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.83GB (0.76GB free)
Process Argv --folder-uri file:///c%3A/repos/console.spacloud.io --crash-reporter-id dd138bbc-1acc-4763-9c03-891372196743
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vswsl492cf:30256860
pythonvspyt551cf:31249601
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsactivate1:31538736
cloudbuttont:31379625
3efgi100_wstrepl:31403338
bj468946:31457056
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31490510
38bie571_auto:31478678
cp_cls_t_1081:31454832
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
c9b86496:31447327
capi_b_098a3278:31544978
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
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:31535311
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31543129
748c7209:31512887
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
f9bf7985:31543584
31fi7170_t:31522396
a1ije391_t:31540920
g4a0e106:31529594
41836166:31537719
prpt_srch:31518468
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_c_nes:31533503
i1884220:31538645
jf4hg949:31526829
nes-curr-leftover-1500:31538366
h561g132:31533256
sessions_5:31532894
ihg5j128:31534457
f412h606:31546039
7g2b5551:31542111
nes-nc-lc-nf:31546584

Metadata

Metadata

Assignees

No one assigned

    Labels

    C#DKThe C#DK extension is installeduntriaged

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions