microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
231 stars 13 forks source link

Failed to open a solution - C# dev kit #1291

Closed tobinfodata closed 3 months ago

tobinfodata commented 3 months ago

From C# Dev Kit OUPUT window :

Starting Spawn .NET server... Starting Open a solution... Starting handling solution file "/Users/tob/Workspace/Projects/Mobile/pdp/src/pdpplus.sln" in Dev Kit server... Starting Clear environment... Using preinstalled .NET runtime at "/usr/local/share/dotnet/dotnet" .NET server STDERR: Unhandled exception. .NET server STDERR: System.IO.IOException: The system cannot open the device or file specified. : '772308832-ServiceHubControllerSingleInstanceMutex' at System.Threading.Mutex.CreateMutexCore(Boolean initiallyOwned, String name, Boolean& createdNew) at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name) at Microsoft.ServiceHub.Controller.Controller.MainAsync(String pipeName, String[] args, String serializedTelemetrySession, Nullable`1 controllerCooldownTimeout) at Microsoft.ServiceHub.Controller.Program.Main(String[] args)

.NET server STDERR: Unhandled exception. .NET server STDERR: Microsoft.ServiceHub.Client.ControllerConnectionException: Controller terminated before accepting connections. Exit code: 134. at Microsoft.ServiceHub.Client.HubControllerClient.StartAsync(ServiceHubConfig config, String clientName, CancellationToken cancellationToken) at Microsoft.ServiceHub.Client.HubClient.LaunchOrFindControllerAsync() at Microsoft.ServiceHub.Client.HubClient.GetLocationServiceAsync() at Microsoft.ServiceHub.Utility.Shared.ServiceHubRetry.ExecuteAsync[TReturnType](Func1 actionToExecute, TraceSource logger, ServiceHubRetryConfiguration1 serviceHubRetryConfiguration, CancellationToken cancellationToken) at Microsoft.ServiceHub.Utility.Shared.ServiceHubRetry.ExecuteAsync[TReturnType](Func1 actionToExecute, TraceSource logger, ServiceHubRetryConfiguration1 serviceHubRetryConfiguration, CancellationToken cancellationToken) at Microsoft.ServiceHub.Client.HubClient.GetThisAsRemoteServiceBrokerAsync() at Microsoft.VisualStudio.Server.ServiceBroker.Program.RunAsync(Stream rpcStream, String bridgePipeName, ExportProvider exportProvider, Boolean includeServiceHub, String serviceHubConfigPath, Func2 traceSourceFactory, TraceSource traceSource, TelemetrySession telemetrySession, TelemetryEvent perfTelemetryEvent, CancellationToken cancellationToken) at Microsoft.VisualStudio.Server.ServiceBroker.Program.RunAsync(Stream rpcStream, String bridgePipeName, ExportProvider exportProvider, Boolean includeServiceHub, String serviceHubConfigPath, Func2 traceSourceFactory, TraceSource traceSource, TelemetrySession telemetrySession, TelemetryEvent perfTelemetryEvent, CancellationToken cancellationToken) at Microsoft.VisualStudio.Server.ServiceBroker.Program.<>c.<b7_1>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context) at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass18_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass13_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass22_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass20_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b19_0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__6_0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__1_0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Invocation.InvocationPipeline.InvokeAsync(IConsole console) at System.CommandLine.Parsing.ParseResultExtensions.InvokeAsync(ParseResult parseResult, IConsole console) at System.CommandLine.Parsing.ParserExtensions.InvokeAsync(Parser parser, String[] args, IConsole console) at Microsoft.VisualStudio.Server.ServiceBroker.Program.Main(String[] args) at Microsoft.VisualStudio.Server.ServiceBroker.Program.

(String[] args)

.NET server STDERR: [createdump] Invalid process id: task_for_pid(18680) FAILED (os/kern) failure (5) [createdump] This failure may be because createdump or the application is not properly signed and entitled. [createdump] Failure took 0ms

.NET server STDOUT: [createdump] Target process is alive

Error occurred in launchDotNetServer: Error: Stream terminated before required bytes were read. Failed at 'Spawn .NET server' (1831ms) with error: Error: Stream terminated before required bytes were read. Failed at 'Clear environment' (1779ms) with error: Error: Stream terminated before required bytes were read. Failed at 'handling solution file "/Users/tob/Workspace/Projects/Mobile/pdp/src/pdpplus.sln" in Dev Kit server' (1779ms) with error: Error: Stream terminated before required bytes were read. .NET server exited with null Failed at 'Open a solution' (1780ms) with error: SolutionOpenError: Run into errors while opening the solution: Error: Stream terminated before required bytes were read. Failed to open solution SolutionOpenError: Run into errors while opening the solution: Error: Stream terminated before required bytes were read.

tobinfodata commented 3 months ago

Resolved after a mac os update (Sonoma 14.5).