No syntax error highlighting
Environment data
dotnet --info output:
.NET SDK:
Version: 8.0.101
Commit: 6eceda187b
Workload version: 8.0.100-manifests.2fd734c4
Runtime Environment:
OS Name: arch
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/8.0.101/
.NET workloads installed:
Workload version: 8.0.100-manifests.2fd734c4
There are no installed workloads to display.
Host:
Version: 8.0.1
Architecture: x64
Commit: bf5e279d92
.NET SDKs installed:
8.0.101 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.NETCore.App 8.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
VS Code version:v1.86.2 C# Extension version:v2.15.30 (Newer versions don't work #6842 )
Expected behavior
Underline errors
Actual behavior
No visible response on error (Installed from .vsix btw https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-dotnettools/vsextensions/csdevkit/1.4.2/vspackage?targetPlatform=linux-x64)
C# Extension output (Trace level)
Dotnet path: /usr/share/dotnet/dotnet
Activating C# + C# Dev Kit...
Starting server at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.LanguageServer
Server arguments --logLevel Trace --extension /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslynDevKit/Microsoft.VisualStudio.LanguageServices.DevKit.dll --sessionId f326ecb8-a883-4f07-aab6-9545d001cfd2 --telemetryLevel off --extensionLogDirectory /home/dkfl/.config/Code - OSS/logs/20240223T142752/window1/exthost/ms-dotnettools.csharp
waiting for named pipe information from server...
[stdout] trce: Program[0]
.NET Runtime Version: .NET 8.0.1
[stdout] dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.ExternalAccess.AspNetCore.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.Version2_X.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.dll added to workspace.
[stdout] dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.CSharp.Workspaces.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.Scripting.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.Elfie.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.CSharp.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.CSharp.Features.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.AnalyzerUtilities.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.Features.dll added to workspace.
[stdout] dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.Version1_X.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Language.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.CSharp.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.Remote.Workspaces.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.15.30/.roslyn/Microsoft.CodeAnalysis.Workspaces.dll added to workspace.
[stdout] {"pipeName":"/tmp/756039a5.sock"}
received named pipe information from server
attempting to connect client to server...
client has connected to server
[Info - 2:33:48 PM] [Program] Language server initialized
[LanguageServerHost] [01:33:48.163][Start]initialize
[LanguageServerHost] [01:33:48.259][End]initialize
[LanguageServerHost] [01:33:48.263][Start]initialized
[LanguageServerHost] [01:33:48.337][End]initialized
[LanguageServerHost] [01:33:48.338][Start]textDocument/didOpen
[LanguageServerHost] didOpen for untitled:Untitled-1
[LanguageServerHost] [01:33:48.347][End]textDocument/didOpen
[LanguageServerHost] Could not find 'untitled:Untitled-1'. Searched Host
[LanguageServerHost] [01:33:48.409][Start]textDocument/diagnostic
[LanguageServerHost] PublicDocumentPullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 1 documents
[LanguageServerHost] [01:33:48.424][Start]workspace/diagnostic
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:48.426][Start]textDocument/codeAction
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:48.426][Start]textDocument/inlayHint
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:48.427][Start]textDocument/semanticTokens/range
[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 0 documents
[LanguageServerHost] Closing workspace/diagnostics request
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [01:33:48.451][End]workspace/diagnostic
[LanguageServerHost] [01:33:48.458][End]textDocument/inlayHint
[LanguageServerHost] Found 0 diagnostics for DocumentDiagnosticSource: untitled:Untitled-1 in Miscellaneous Files
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [01:33:48.549][End]textDocument/diagnostic
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:48.595][Start]textDocument/foldingRange
[LanguageServerHost] [01:33:48.635][End]textDocument/foldingRange
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:48.664][Start]textDocument/codeLens
[LanguageServerHost] [01:33:48.678][End]textDocument/codeLens
[LanguageServerHost] [01:33:48.707][End]textDocument/semanticTokens/range
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:48.719][Start]textDocument/inlayHint
[LanguageServerHost] [01:33:48.720][End]textDocument/inlayHint
[LanguageServerHost] [01:33:48.763][End]textDocument/codeAction
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:48.834][Start]textDocument/semanticTokens/range
[LanguageServerHost] [01:33:48.839][End]textDocument/semanticTokens/range
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:49.063][Start]codeLens/resolve
[LanguageServerHost] [01:33:49.063][Start]codeLens/resolve
[LanguageServerHost] codeLens/resolve - Canceled
[LanguageServerHost] [01:33:49.124][End]codeLens/resolve
[LanguageServerHost] codeLens/resolve - Canceled
[LanguageServerHost] [01:33:49.131][End]codeLens/resolve
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:49.160][Start]textDocument/inlayHint
[LanguageServerHost] [01:33:49.160][End]textDocument/inlayHint
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:49.264][Start]textDocument/semanticTokens/range
[LanguageServerHost] [01:33:49.265][End]textDocument/semanticTokens/range
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:49.490][Start]textDocument/codeLens
[LanguageServerHost] [01:33:49.492][End]textDocument/codeLens
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:50.084][Start]codeLens/resolve
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:50.084][Start]codeLens/resolve
[LanguageServerHost] [01:33:50.168][End]codeLens/resolve
[LanguageServerHost] [01:33:50.204][End]codeLens/resolve
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:50.373][Start]textDocument/inlayHint
[LanguageServerHost] [01:33:50.374][End]textDocument/inlayHint
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:50.416][Start]textDocument/diagnostic
[LanguageServerHost] PublicDocumentPullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=1
[LanguageServerHost] Processing 1 documents
[LanguageServerHost] Diagnostics were unchanged for DocumentDiagnosticSource: untitled:Untitled-1 in Miscellaneous Files
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [01:33:50.430][End]textDocument/diagnostic
[LanguageServerHost] [01:33:50.456][Start]workspace/diagnostic
[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 0 documents
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:50.798][Start]textDocument/codeLens
[LanguageServerHost] [01:33:50.800][End]textDocument/codeLens
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:51.363][Start]codeLens/resolve
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:51.364][Start]codeLens/resolve
[LanguageServerHost] [01:33:51.367][End]codeLens/resolve
[LanguageServerHost] [01:33:51.368][End]codeLens/resolve
[LanguageServerHost] [01:33:58.787][Start]workspace/buildOnlyDiagnosticIds
[LanguageServerHost] [01:33:58.792][End]workspace/buildOnlyDiagnosticIds
[LanguageServerHost] untitled:Untitled-1 found in workspace MiscellaneousFiles
[LanguageServerHost] [01:33:58.945][Start]textDocument/diagnostic
[LanguageServerHost] PublicDocumentPullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=1
[LanguageServerHost] Processing 1 documents
[LanguageServerHost] Diagnostics were unchanged for DocumentDiagnosticSource: untitled:Untitled-1 in Miscellaneous Files
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [01:33:58.946][End]textDocument/diagnostic
@dkflRus it looks like there isn't a project / solution being loaded. Since you're using C# devkit, can you check that the solution explorer shows your project being loaded?
If there is nothing there, can you open a project / solution manually via the open solution command?
Additionally the devkit logs would be useful here
- Contents of the 'C# DevKit' output window
- Contents of the 'Projects' output window (if any)
Closing, this is not actionable without the additional information requested.