Skip to content

LSP exception on inlayHint #83051

@wingrime

Description

@wingrime

Version Used:
latest main
Steps to Reproduce:

  1. Open sln in VSCode with Rolsyn LSP enabled
  2. Do some typing
  3. See exception in log
2026-04-03 20:08:00.913 [warning] [textDocument/inlayHint] [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.ProjectTelemetry.ProjectLoadTelemetryReporter] Failed to get project telemetry data: System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/shestakovap/devel/ide/roslyn/git:/home/shestakovap/devel/ide/roslyn/src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/ProjectDependencyHelper.cs?%7B%22path%22:%22/home/shestakovap/devel/ide/roslyn/src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/ProjectDependencyHelper.cs%22,%22ref%22:%22~%22%7D'.
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
   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)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.File.AsyncStreamReader(String path, Encoding encoding)
   at System.IO.File.InternalReadAllTextAsync(String path, Encoding encoding, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.ProjectTelemetry.ProjectLoadTelemetryReporter.GetProjectIdAsync(ProjectToLoad projectToLoad) in /home/shestakovap/devel/ide/roslyn/src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/ProjectTelemetry/ProjectLoadTelemetryReporter.cs:line 150
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.ProjectTelemetry.ProjectLoadTelemetryReporter.ReportProjectLoadTelemetryAsync(Dictionary`2 projectFileInfos, ProjectToLoad projectToLoad, CancellationToken cancellationToken) in /home/shestakovap/devel/ide/roslyn/src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/ProjectTelemetry/ProjectLoadTelemetryReporter.cs:line 64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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