Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project load error with relative analyzer path #6584

Closed
bkatz1 opened this issue Oct 23, 2023 · 3 comments · Fixed by dotnet/roslyn#70527
Closed

Project load error with relative analyzer path #6584

bkatz1 opened this issue Oct 23, 2023 · 3 comments · Fixed by dotnet/roslyn#70527
Assignees
Milestone

Comments

@bkatz1
Copy link

bkatz1 commented Oct 23, 2023

Type: Bug

Issue Description

The language server fails to load Water.Core.csproj with the following error in the terminal:

[Error - 12:02:33 PM] [LanguageServerProjectSystem] Exception thrown while loading c:\Code\Water\Water\Water.Core\Water.Core.csproj System.ArgumentException: Absolute path expected. (Parameter 'fullPath')
   at Roslyn.Utilities.CompilerPathUtilities.RequireAbsolutePath(String path, String argumentName) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Utilities/CompilerUtilities/CompilerPathUtilities.cs:line 21
   at Microsoft.CodeAnalysis.Workspaces.ProjectSystem.ProjectSystemProject.AddAnalyzerReference(String fullPath) in /_/src/Workspaces/Core/Portable/Workspace/ProjectSystem/ProjectSystemProject.cs:line 883
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.<UpdateWithNewProjectInfoAsync>b__14_4(CommandLineAnalyzerReference reference) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 131
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.<UpdateWithNewProjectInfoAsync>g__UpdateProjectSystemProjectCollection|14_12[T](IEnumerable`1 loadedCollection, IEnumerable`1 oldLoadedCollection, IEqualityComparer`1 comparer, Action`1 addItem, Action`1 removeItem) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 177
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.UpdateWithNewProjectInfoAsync(ProjectFileInfo newProjectInfo) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 127
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.UpdateWithNewProjectInfoAsync(ProjectFileInfo newProjectInfo) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 161
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 276

When I remove the following lines from Water.Core.csproj, the error goes away and the language server loads the project successfully, but the project is no longer able to build because it is missing references.

  <ItemGroup>
    <Analyzer Include="..\packages\AWSSDK.KeyManagementService.3.7.0\analyzers\dotnet\cs\AWSSDK.KeyManagementService.CodeAnalysis.dll" />
    <Analyzer Include="..\packages\AWSSDK.S3.3.7.0\analyzers\dotnet\cs\AWSSDK.S3.CodeAnalysis.dll" />
    <Analyzer Include="..\packages\AWSSDK.SecretsManager.3.7.0\analyzers\dotnet\cs\AWSSDK.SecretsManager.CodeAnalysis.dll" />
    <Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.3.3.4\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll" />
    <Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.3.3.4\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
  </ItemGroup>

Steps to Reproduce

Expected Behavior

Load all projects without error when the language server starts up.

Actual Behavior

Displays an error message and doesn't provide extension tools for the project that failed to load.

Logs

C# log

``` Using dotnet configured on PATH Dotnet path: C:\Program Files\dotnet\dotnet.exe Activating C# standalone... Starting server at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.dll Server arguments c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.dll --logLevel Trace --telemetryLevel all --extensionLogDirectory c:\Users\John Doe\AppData\Roaming\Code\logs\20231023T120221\window1\exthost\ms-dotnettools.csharp waiting for named pipe information from server... [stdout] dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.AnalyzerUtilities.dll added to workspace. [stdout] dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.Features.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.Workspaces.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.Elfie.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.Features.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.Razor.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.Remote.Workspaces.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.Scripting.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.Workspaces.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\John Doe\.vscode\extensions\ms-dotnettools.csharp-2.7.25-win32-x64\.roslyn\Microsoft.CodeAnalysis.Workspaces.MSBuild.dll added to workspace. [stdout] {"pipeName":"\\\\.\\pipe\\dea57230-81ec-40b7-aa31-1cbb584e7e8e"} received named pipe information from server attempting to connect client to server... client has connected to server [Info - 12:02:26 PM] [Program] Language server initialized [LanguageServerHost] [04:02:26.817][Start]initialize [LanguageServerHost] [04:02:26.825][Start]Initialize [LanguageServerHost] [04:02:26.880][End]Initialize [LanguageServerHost] [04:02:26.939][End]initialize [LanguageServerHost] [04:02:26.944][Start]initialized [LanguageServerHost] [04:02:27.092][End]initialized [LanguageServerHost] [04:02:27.095][Start]solution/open [Info - 12:02:27 PM] [LanguageServerProjectSystem] Loading c:\Code\Water\Water\Water.sln... [LanguageServerHost] [04:02:27.130][Start]workspace/diagnostic [LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics [LanguageServerHost] previousResults.Length=0 [LanguageServerHost] Processing 0 documents [BuildHost PID 19804] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.Program[0] [BuildHost PID 19804] Message from Process: RPC channel started. [BuildHost PID 19804] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 19804] Message from Process: Registered MSBuild instance at C:\Program Files\dotnet\sdk\7.0.400 [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetCore for c:\Code\Water\Water\Water.PDF\Water.PDF.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetCore for c:\Code\Water\Water\Water.Documentation.Lib\Water.Documentation.Lib.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetFramework for c:\Code\Water\Water\CheckServer\CheckServer.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetFramework for c:\Code\Water\Water\Water.Utility.Tests\Water.Utility.Tests.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetFramework for c:\Code\Water\Water\Water.Tests.Mocking\Water.Tests.Mocking.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetCore for c:\Code\Water\Water\Water.Common\Water.Common.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetCore for c:\Code\Water\Water\Water.Mobile.Lib\Water.Mobile.Lib.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetCore for c:\Code\Water\Water\Water.RDLC\Water.RDLC.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetFramework for c:\Code\Water\Water\Water.Tests\Water.Tests.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetFramework for c:\Code\Water\Water\DocumentServer\DocumentServer.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetFramework for c:\Code\Water\Water\Water.Utility\Water.Utility.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetFramework for c:\Code\Water\Water\Water.Core.Tests\Water.Core.Tests.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetFramework for c:\Code\Water\Water\Water\Water.csproj. [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetFramework for c:\Code\Water\Water\Water.Core\Water.Core.csproj. [BuildHost PID 25252] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.Program[0] [BuildHost PID 25252] Message from Process: RPC channel started. [BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.Program[0] [BuildHost PID 25944] Message from Process: RPC channel started. [BuildHost PID 25252] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25252] Message from Process: Registered MSBuild instance at C:\Program Files\dotnet\sdk\7.0.400 [BuildHost PID 25252] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25252] Message from Process: Loading c:\Code\Water\Water\Water.PDF\Water.PDF.csproj [BuildHost PID 25252] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25252] Message from Process: Loading c:\Code\Water\Water\Water.Documentation.Lib\Water.Documentation.Lib.csproj [BuildHost PID 25252] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25252] Message from Process: Loading c:\Code\Water\Water\Water.RDLC\Water.RDLC.csproj [BuildHost PID 25252] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25252] Message from Process: Loading c:\Code\Water\Water\Water.Common\Water.Common.csproj [BuildHost PID 25252] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25252] Message from Process: Loading c:\Code\Water\Water\Water.Mobile.Lib\Water.Mobile.Lib.csproj [BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25944] Message from Process: Registered MSBuild instance at C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin [BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25944] Message from Process: Loading c:\Code\Water\Water\DocumentServer\DocumentServer.csproj [BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25944] Message from Process: Loading c:\Code\Water\Water\CheckServer\CheckServer.csproj [BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25944] Message from Process: Loading c:\Code\Water\Water\Water.Tests.Mocking\Water.Tests.Mocking.csproj [BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25944] Message from Process: Loading c:\Code\Water\Water\Water.Tests\Water.Tests.csproj [BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25944] Message from Process: Loading c:\Code\Water\Water\Water.Utility.Tests\Water.Utility.Tests.csproj [BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25944] Message from Process: Loading c:\Code\Water\Water\Water.Utility\Water.Utility.csproj [BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25944] Message from Process: Loading c:\Code\Water\Water\Water.Core.Tests\Water.Core.Tests.csproj [BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25944] Message from Process: Loading c:\Code\Water\Water\Water\Water.csproj [BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0] [BuildHost PID 25944] Message from Process: Loading c:\Code\Water\Water\Water.Core\Water.Core.csproj [LanguageServerHost] Closing workspace/diagnostics request [LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics [LanguageServerHost] [04:02:30.585][End]workspace/diagnostic [Info - 12:02:31 PM] [LanguageServerProjectSystem] Successfully completed load of c:\Code\Water\Water\Water.Documentation.Lib\Water.Documentation.Lib.csproj [Info - 12:02:31 PM] [LanguageServerProjectSystem] Successfully completed load of c:\Code\Water\Water\Water.PDF\Water.PDF.csproj [Info - 12:02:31 PM] [LanguageServerProjectSystem] Successfully completed load of c:\Code\Water\Water\Water.Mobile.Lib\Water.Mobile.Lib.csproj [Info - 12:02:31 PM] [LanguageServerProjectSystem] Successfully completed load of c:\Code\Water\Water\Water.RDLC\Water.RDLC.csproj [Info - 12:02:31 PM] [LanguageServerProjectSystem] Successfully completed load of c:\Code\Water\Water\Water.Common\Water.Common.csproj [Info - 12:02:32 PM] [LanguageServerProjectSystem] Successfully completed load of c:\Code\Water\Water\Water.Utility.Tests\Water.Utility.Tests.csproj [LanguageServerHost] [04:02:32.593][Start]workspace/diagnostic [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] [04:02:32.597][End]workspace/diagnostic [Info - 12:02:33 PM] [LanguageServerProjectSystem] Successfully completed load of c:\Code\Water\Water\CheckServer\CheckServer.csproj [Info - 12:02:33 PM] [LanguageServerProjectSystem] Successfully completed load of c:\Code\Water\Water\Water.Tests.Mocking\Water.Tests.Mocking.csproj [Info - 12:02:33 PM] [LanguageServerProjectSystem] Successfully completed load of c:\Code\Water\Water\Water.Tests\Water.Tests.csproj [Info - 12:02:33 PM] [LanguageServerProjectSystem] Successfully completed load of c:\Code\Water\Water\Water.Core.Tests\Water.Core.Tests.csproj [Error - 12:02:33 PM] [LanguageServerProjectSystem] Exception thrown while loading c:\Code\Water\Water\Water.Core\Water.Core.csproj System.ArgumentException: Absolute path expected. (Parameter 'fullPath') at Roslyn.Utilities.CompilerPathUtilities.RequireAbsolutePath(String path, String argumentName) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Utilities/CompilerUtilities/CompilerPathUtilities.cs:line 21 at Microsoft.CodeAnalysis.Workspaces.ProjectSystem.ProjectSystemProject.AddAnalyzerReference(String fullPath) in /_/src/Workspaces/Core/Portable/Workspace/ProjectSystem/ProjectSystemProject.cs:line 883 at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.b__14_4(CommandLineAnalyzerReference reference) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 131 at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.g__UpdateProjectSystemProjectCollection|14_12[T](IEnumerable`1 loadedCollection, IEnumerable`1 oldLoadedCollection, IEqualityComparer`1 comparer, Action`1 addItem, Action`1 removeItem) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 177 at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.UpdateWithNewProjectInfoAsync(ProjectFileInfo newProjectInfo) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 127 at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.UpdateWithNewProjectInfoAsync(ProjectFileInfo newProjectInfo) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 161 at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 276 [Info - 12:02:34 PM] [LanguageServerProjectSystem] Successfully completed load of c:\Code\Water\Water\DocumentServer\DocumentServer.csproj [Info - 12:02:34 PM] [LanguageServerProjectSystem] Successfully completed load of c:\Code\Water\Water\Water.Utility\Water.Utility.csproj [LanguageServerHost] [04:02:34.614][Start]workspace/diagnostic [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] [04:02:34.614][End]workspace/diagnostic [LanguageServerHost] [04:02:36.626][Start]workspace/diagnostic [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] [04:02:38.782][End]workspace/diagnostic [Warn - 12:02:38 PM] [LanguageServerProjectSystem] Warning while loading c:\Code\Water\Water\Water\Water.csproj: "C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Microsoft.Common.props" cannot be imported again. It was already imported at "c:\Code\Water\Water\Water\Water.csproj (4,3)". This is most likely a build authoring error. This subsequent import will be ignored. [Warn - 12:02:38 PM] [LanguageServerProjectSystem] Warning while loading c:\Code\Water\Water\Water\Water.csproj: All projects referencing Water.csproj must install nuget package Microsoft.Bcl.Build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317569. [Info - 12:02:38 PM] [LanguageServerProjectSystem] Completed (re)load of all projects in 00:00:10.7592136 [BuildHost PID 25252] Process gracefully shut down. [BuildHost PID 25252] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.Program[0] [BuildHost PID 25252] Message from Process: RPC channel closed; process exiting. [BuildHost PID 25252] Process exited. [BuildHost PID 25944] Process gracefully shut down. [BuildHost PID 19804] Process gracefully shut down. [LanguageServerHost] [04:02:38.950][End]solution/open [BuildHost PID 19804] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.Program[0] [BuildHost PID 19804] Message from Process: RPC channel closed; process exiting. [BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.Program[0] [BuildHost PID 25944] Message from Process: RPC channel closed; process exiting. [BuildHost PID 19804] Process exited. [BuildHost PID 25944] Process exited. [LanguageServerHost] [04:02:38.998][Start]workspace/debugConfiguration [LanguageServerHost] [04:02:39.012][End]workspace/debugConfiguration [LanguageServerHost] [04:02:40.827][Start]workspace/diagnostic [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] [04:02:40.828][End]workspace/diagnostic [LanguageServerHost] [04:02:42.843][Start]workspace/diagnostic [LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics [LanguageServerHost] previousResults.Length=0 [LanguageServerHost] Processing 0 documents ```

C# LSP Trace Logs

Extension vscode.configuration-editing does not contribute csharpExtensionLoadPaths Extension vscode.cpp does not contribute csharpExtensionLoadPaths Extension vscode.csharp does not contribute csharpExtensionLoadPaths Extension vscode.css does not contribute csharpExtensionLoadPaths Extension vscode.css-language-features does not contribute csharpExtensionLoadPaths Extension vscode.dart does not contribute csharpExtensionLoadPaths Extension vscode.debug-auto-launch does not contribute csharpExtensionLoadPaths Extension vscode.debug-server-ready does not contribute csharpExtensionLoadPaths Extension vscode.diff does not contribute csharpExtensionLoadPaths Extension vscode.docker does not contribute csharpExtensionLoadPaths Extension vscode.extension-editing does not contribute csharpExtensionLoadPaths Extension vscode.fsharp does not contribute csharpExtensionLoadPaths Extension vscode.git does not contribute csharpExtensionLoadPaths Extension vscode.microsoft-authentication does not contribute csharpExtensionLoadPaths Extension ms-dotnettools.csharp does not contribute csharpExtensionLoadPaths Extension ms-dotnettools.vscode-dotnet-runtime does not contribute csharpExtensionLoadPaths [Trace - 12:02:26 PM] Sending notification 'initialized'. Params: {}

[Trace - 12:02:26 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[LanguageServerHost] [04:02:26.939][End]initialize"
}

[Trace - 12:02:26 PM] Sending notification 'solution/open'.
Params: {
"solution": "file:///c:/Code/Water/Water/Water.sln"
}

[Trace - 12:02:26 PM] Sending request 'workspace/diagnostic - (1)'.
Params: {
"previousResultIds": [],
"partialResultToken": "1aa697b4-cc66-4d9d-99d5-c7396ae67242"
}

[Trace - 12:02:26 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[LanguageServerHost] [04:02:26.944][Start]initialized"
}

[Trace - 12:02:26 PM] Received request 'client/registerCapability - (2)'.
Params: {
"registrations": [
{
"id": "baa2788d-5ec9-4ae1-a235-5d787305c856",
"method": "workspace/didChangeConfiguration"
}
]
}

[Trace - 12:02:26 PM] Sending response 'client/registerCapability - (2)'. Processing request took 1ms
No result returned.

[Trace - 12:02:26 PM] Received request 'workspace/configuration - (3)'.
Params: {
"items": [
{
"section": "csharp|symbol_search.dotnet_search_reference_assemblies"
},
{
"section": "csharp|implement_type.dotnet_insertion_behavior"
},
{
"section": "csharp|implement_type.dotnet_property_generation_behavior"
},
{
"section": "csharp|completion.dotnet_show_name_completion_suggestions"
},
{
"section": "csharp|completion.dotnet_provide_regex_completions"
},
{
"section": "csharp|completion.dotnet_show_completion_items_from_unimported_namespaces"
},
{
"section": "csharp|quick_info.dotnet_show_remarks_in_quick_info"
},
{
"section": "navigation.dotnet_navigate_to_decompiled_sources"
},
{
"section": "csharp|highlighting.dotnet_highlight_related_json_components"
},
{
"section": "csharp|highlighting.dotnet_highlight_related_regex_components"
},
{
"section": "csharp|inlay_hints.dotnet_enable_inlay_hints_for_parameters"
},
{
"section": "csharp|inlay_hints.dotnet_enable_inlay_hints_for_literal_parameters"
},
{
"section": "csharp|inlay_hints.dotnet_enable_inlay_hints_for_indexer_parameters"
},
{
"section": "csharp|inlay_hints.dotnet_enable_inlay_hints_for_object_creation_parameters"
},
{
"section": "csharp|inlay_hints.dotnet_enable_inlay_hints_for_other_parameters"
},
{
"section": "csharp|inlay_hints.dotnet_suppress_inlay_hints_for_parameters_that_differ_only_by_suffix"
},
{
"section": "csharp|inlay_hints.dotnet_suppress_inlay_hints_for_parameters_that_match_method_intent"
},
{
"section": "csharp|inlay_hints.dotnet_suppress_inlay_hints_for_parameters_that_match_argument_name"
},
{
"section": "csharp|inlay_hints.csharp_enable_inlay_hints_for_types"
},
{
"section": "csharp|inlay_hints.csharp_enable_inlay_hints_for_implicit_variable_types"
},
{
"section": "csharp|inlay_hints.csharp_enable_inlay_hints_for_lambda_parameter_types"
},
{
"section": "csharp|inlay_hints.csharp_enable_inlay_hints_for_implicit_object_creation"
},
{
"section": "csharp|code_style.formatting.indentation_and_spacing.tab_width"
},
{
"section": "csharp|code_style.formatting.indentation_and_spacing.indent_size"
},
{
"section": "csharp|code_style.formatting.indentation_and_spacing.indent_style"
},
{
"section": "csharp|code_style.formatting.new_line.end_of_line"
},
{
"section": "code_style.formatting.new_line.insert_final_newline"
},
{
"section": "csharp|background_analysis.dotnet_analyzer_diagnostics_scope"
},
{
"section": "csharp|background_analysis.dotnet_compiler_diagnostics_scope"
},
{
"section": "csharp|code_lens.dotnet_enable_references_code_lens"
},
{
"section": "csharp|code_lens.dotnet_enable_tests_code_lens"
},
{
"section": "projects.dotnet_binary_log_path"
}
]
}

[Trace - 12:02:26 PM] Sending response 'workspace/configuration - (3)'. Processing request took 1ms
Result: [
true,
null,
"withOtherMembersOfTheSameKind",
null,
"preferThrowingProperties",
null,
"true",
null,
"true",
null,
true,
null,
"true",
null,
"true",
"true",
null,
"true",
null,
false,
null,
false,
null,
false,
null,
false,
null,
false,
null,
false,
null,
false,
null,
false,
null,
false,
null,
false,
null,
false,
null,
false,
null,
"4",
null,
"4",
null,
"space",
null,
"auto",
null,
false,
"openFiles",
null,
"openFiles",
null,
true,
null,
true,
null,
null
]

[Trace - 12:02:27 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[LanguageServerHost] [04:02:27.092][End]initialized"
}

[Trace - 12:02:27 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[LanguageServerHost] [04:02:27.095][Start]solution/open"
}

[Trace - 12:02:27 PM] Received notification 'window/logMessage'.
Params: {
"type": 3,
"message": "[LanguageServerProjectSystem] Loading c:\Code\Water\Water\Water.sln..."
}

[Trace - 12:02:27 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[LanguageServerHost] [04:02:27.130][Start]workspace/diagnostic"
}

[Trace - 12:02:27 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics"
}

[Trace - 12:02:27 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 19804] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.Program[0]"
}

[Trace - 12:02:27 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 19804] Message from Process: RPC channel started."
}

[Trace - 12:02:27 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 19804] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]"
}

[Trace - 12:02:27 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 19804] Message from Process: Registered MSBuild instance at C:\Program Files\dotnet\sdk\7.0.400"
}

[Trace - 12:02:28 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetFramework for c:\Code\Water\Water\Water.Core.Tests\Water.Core.Tests.csproj."
}

[Trace - 12:02:28 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetFramework for c:\Code\Water\Water\Water\Water.csproj."
}

[Trace - 12:02:28 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.BuildHostProcessManager] Choosing a build host of type NetFramework for c:\Code\Water\Water\Water.Core\Water.Core.csproj."
}

[Trace - 12:02:28 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.Program[0]"
}

[Trace - 12:02:28 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 25944] Message from Process: RPC channel started."
}

[Trace - 12:02:28 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 25252] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]"
}

[Trace - 12:02:28 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 25252] Message from Process: Registered MSBuild instance at C:\Program Files\dotnet\sdk\7.0.400"
}

[Trace - 12:02:28 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 25252] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]"
}

[Log Truncated]

[Trace - 12:02:29 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 25944] Message from Process: Loading c:\Code\Water\Water\Water.Core.Tests\Water.Core.Tests.csproj"
}

[Trace - 12:02:29 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]"
}

[Trace - 12:02:29 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 25944] Message from Process: Loading c:\Code\Water\Water\Water\Water.csproj"
}

[Trace - 12:02:29 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 25944] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]"
}

[Trace - 12:02:29 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[BuildHost PID 25944] Message from Process: Loading c:\Code\Water\Water\Water.Core\Water.Core.csproj"
}

[Trace - 12:02:30 PM] Received request 'client/registerCapability - (5)'.
Params: {
"registrations": [
{
"id": "4ed88f6b-e8a2-43e2-87cb-779d3eb78015",
"method": "workspace/didChangeWatchedFiles",
"registerOptions": {
"watchers": [
{
"globPattern": {
"baseUri": "file:///c:/Code/Water/Water/Water.Mobile.Lib/",
"pattern": "**/*.cs"
}
}
]
}
}
]
}

[Log Truncated]

[Trace - 12:02:33 PM] Received request 'client/registerCapability - (461)'.
Params: {
"registrations": [
{
"id": "c60796aa-fd86-470b-88d9-35b0b63fbe4f",
"method": "workspace/didChangeWatchedFiles",
"registerOptions": {
"watchers": [
{
"globPattern": {
"baseUri": "file:///c:/Code/Water/Water/Water.Core",
"pattern": "Water.Core.csproj"
}
}
]
}
}
]
}

[Trace - 12:02:33 PM] Sending response 'client/registerCapability - (461)'. Processing request took 0ms
No result returned.

[Log Truncated]

[Trace - 12:02:33 PM] Received notification 'window/logMessage'.
Params: {
"type": 1,
"message": "[LanguageServerProjectSystem] Exception thrown while loading c:\Code\Water\Water\Water.Core\Water.Core.csproj System.ArgumentException: Absolute path expected. (Parameter 'fullPath')\r\n at Roslyn.Utilities.CompilerPathUtilities.RequireAbsolutePath(String path, String argumentName) in //src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Utilities/CompilerUtilities/CompilerPathUtilities.cs:line 21\r\n at Microsoft.CodeAnalysis.Workspaces.ProjectSystem.ProjectSystemProject.AddAnalyzerReference(String fullPath) in //src/Workspaces/Core/Portable/Workspace/ProjectSystem/ProjectSystemProject.cs:line 883\r\n at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.b__14_4(CommandLineAnalyzerReference reference) in //src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 131\r\n at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.g__UpdateProjectSystemProjectCollection|14_12[T](IEnumerable1 loadedCollection, IEnumerable1 oldLoadedCollection, IEqualityComparer1 comparer, Action1 addItem, Action`1 removeItem) in //src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 177\r\n at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.UpdateWithNewProjectInfoAsync(ProjectFileInfo newProjectInfo) in //src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 127\r\n at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.UpdateWithNewProjectInfoAsync(ProjectFileInfo newProjectInfo) in //src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 161\r\n at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 276"
}

[Trace - 12:02:33 PM] Received request 'client/registerCapability - (719)'.
Params: {
"registrations": [
{
"id": "2a423a6b-e2e6-4be0-ab7c-9f4164df7b67",
"method": "workspace/didChangeWatchedFiles",
"registerOptions": {
"watchers": [
{
"globPattern": {
"baseUri": "file:///c:/Code/Water/Water/packages/Microsoft.Bcl.AsyncInterfaces.7.0.0/lib/net462",
"pattern": "Microsoft.Bcl.AsyncInterfaces.dll"
}
}
]
}
}
]
}

[Trace - 12:02:33 PM] Sending response 'client/registerCapability - (719)'. Processing request took 0ms
No result returned.

[Trace - 12:02:33 PM] Received notification 'window/_roslyn_showToast'.
Params: {
"messageType": 1,
"message": "There were problems loading project Water.Core.csproj. See log for details.",
"commands": [
{
"title": "Show C# logs",
"command": "csharp.showOutputWindow"
}
]
}

[Trace - 12:02:33 PM] Received request 'client/registerCapability - (722)'.
Params: {
"registrations": [
{
"id": "33f834a8-3155-41b6-9da2-957b8334bcc8",
"method": "workspace/didChangeWatchedFiles",
"registerOptions": {
"watchers": [
{
"globPattern": {
"baseUri": "file:///c:/Code/Water/Water/packages/Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1586.0/lib/net40",
"pattern": "Microsoft.ReportViewer.Common.dll"
}
}
]
}
}
]
}

[Log Truncated]

[Trace - 12:02:42 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[LanguageServerHost] [04:02:42.843][Start]workspace/diagnostic"
}

[Trace - 12:02:42 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics"
}

[Trace - 12:02:42 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[LanguageServerHost] previousResults.Length=0"
}

[Trace - 12:02:42 PM] Received notification 'window/logMessage'.
Params: {
"type": 4,
"message": "[LanguageServerHost] Processing 0 documents"
}

Environment information

VSCode version: 1.83.1
C# Extension: 2.7.25
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 7.0.400 Commit: 73bf45718d

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.400\

Host:
Version: 7.0.12
Architecture: x64
Commit: 4a824ef37c

.NET SDKs installed:
5.0.408 [C:\Program Files\dotnet\sdk]
7.0.112 [C:\Program Files\dotnet\sdk]
7.0.400 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.21 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

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

Environment variables:
Not set

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
Bookmarks alefragnani 13.4.2 alefragnani.bookmarks-13.4.2
csharp ms-dotnettools 2.7.25 ms-dotnettools.csharp-2.7.25-win32-x64
vscode-csproj lucasazzola 0.7.0 lucasazzola.vscode-csproj-0.7.0
vscode-dbml matt-meyers 0.3.5 matt-meyers.vscode-dbml-0.3.5
vscode-dotnet-runtime ms-dotnettools 1.8.1 ms-dotnettools.vscode-dotnet-runtime-1.8.1
vscode-eslint dbaeumer 2.4.2 dbaeumer.vscode-eslint-2.4.2

Extension version: 2.7.25
VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:48:05.904Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz (12 x 2904)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
video_decode: enabled
video_encode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.78GB (19.45GB free)
Process Argv --crash-reporter-id 75cbde9b-d490-44af-9d43-bd87abafde1a
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263cf:30856253
vscaac:30438847
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
89544117:30613380
a9j8j154:30646983
showlangstatbar:30737416
962ge761:30841074
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
copilotsettingt:30859503
asynctok:30869155
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixtcf:30866406
pyreplss1:30865275
pythonmypyd1:30859726
h48ei257:30869353
pythontbext0:30864172

@jasonmalinowski
Copy link
Member

jasonmalinowski commented Oct 23, 2023

Oh this is strange. I think what is happening here is actually this:

Warning while loading c:\Code\Water\Water\Water\Water.csproj: "C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Microsoft.Common.props" cannot be imported again. It was already imported at "c:\Code\Water\Water\Water\Water.csproj (4,3)". This is most likely a build authoring error. This subsequent import will be ignored.

If that's causing MSBuild to stop doing further analysis, we might not have an actual design time build which would have correctly qualified this; we might be going back to fallback path which then isn't doing the absolute path correction.

@dibarbet I wonder if this is indirectly fixed by dotnet/roslyn#70496 if that would mean we'd march along better in that case.

@jasonmalinowski
Copy link
Member

Oh I see: we're not resolving it when we do have arguments, and this regressed since we weren't looking at that list previously. Fix coming shortly.

@jasonmalinowski jasonmalinowski changed the title Project load error Project load error with relative analyzer path Oct 23, 2023
jasonmalinowski added a commit to jasonmalinowski/roslyn that referenced this issue Oct 23, 2023
jasonmalinowski added a commit to jasonmalinowski/roslyn that referenced this issue Oct 24, 2023
jasonmalinowski added a commit to jasonmalinowski/roslyn that referenced this issue Oct 25, 2023
@jasonmalinowski
Copy link
Member

@bkatz1 Fix should be out next week!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants