Skip to content

[BUG] Solution explorer not showing #808

@vriesj

Description

@vriesj

Describe the Issue

Probably related to #704 (closed)

When opening the solution explorer the following error appears.
image

And the solution explorer will fail to open:
image

C# log output

Using dotnet configured on PATH
Dotnet path: C:\Program Files\dotnet\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode...
waiting for named pipe information from server...
[stdout] {"pipeName":"\\\\.\\pipe\\e8f7761c"}
received named pipe information from server
attempting to connect client to server...
client has connected to server
[Info  - 12:00:34 PM] [Program] Language server initialized

C# Dev Kit log output:

Starting Spawn .NET server...
Starting Open a solution...
Starting Open a solution with environment service...
Starting Clear environment...
Using preinstalled .NET runtime at "C:\Program Files\dotnet\dotnet.exe"
Using runtime installed in SDK.
.NET server started and IPC established in 1917ms
Completed Spawn .NET server (4392ms)
Completed Clear environment (4766ms)
Completed Open a solution with environment service (4811ms)
Starting Restore solution...
Completed Open a solution (4835ms)
Starting NuGet restore for the solution.
Starting command: "dotnet.exe" restore C:\src\mySolution.sln --interactive...
Failed to listen to project initialization status: Error: Activating the "Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService (0.1)" service failed.
Completed command: "dotnet.exe" restore C:\src\mySolution.sln --interactive (3076ms)
Completed NuGet restore.
Completed Restore solution (3079ms)

C# Dev Kit - Text Explorer log output

Created Test Controller
unable to create test controller for c# extension: Error: Activating the "Microsoft.VisualStudio.TestWindow.VSCode.Service (0.1)" service failed.

The dotnet restore failing might be related to dotnet/sdk#10189 which I've resolved manually via dotnet/sdk#10189 (comment) this however did not fix the solution explorer.

PS C:\src> iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/microsoft/artifacts-credprovider/master/helpers/installcredprovider.ps1'))
PS C:\src> dotnet restore .\mySolution.sln --interactive
  Determining projects to restore...
  All projects are up-to-date for restore.
PS C:\src> 

Steps To Reproduce

No specific reproduction steps known other than a clean install.

Expected Behavior

No errors or UI bugs.

Environment Information

  • Windows 10 (22H2 19045.3693)

  • VS Code (in portable mode; data directory)
    image

  • System also runs Visual Studio 2022

  • dotnet sdk's

PS C:\src> dotnet --list-sdks
6.0.406 [C:\Program Files\dotnet\sdk]
7.0.200 [C:\Program Files\dotnet\sdk]
8.0.100 [C:\Program Files\dotnet\sdk]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions