-
Notifications
You must be signed in to change notification settings - Fork 15
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
[BUG] Language Server Fails to start. #391
Comments
Windows 10, |
This is the same as dotnet/vscode-csharp#5877 For now you need to delete the folder found in (command 'open extensions folder'). VS Code has installed the C# extension or CDK on the incorrect architecture, it installs a fallback architecture during release if the x64 architecture is not available and uploaded yet for a new version per @dibarbet. The hostfxr cannot load if the architecture is incorrect. Deleting the folder and reinstalling should reset and vscode will hopefully install the extension with the correct architecture No fix in place from VS Code at this time to give us control over this issue, maybe CDK/C# should catch 0x800700C1 and return a more refined error @arkalyanms |
Had a similar issue. Unfortunately deleting the folder and reinstalling the extension did not help. It kept installing the ia32 version whereas I needed the x64 version. I had to delete the folder for the extension and manually download the correct version for the correct architecture from the marketplace and install it manually. This solved the issue for me. |
We will try using a different method to detect the architecture to install and hope that will fix this issue. Tracking that work here dotnet/vscode-dotnet-runtime#1338 |
this is fixed in 1.8.0 |
Still happening: Tried everything described previously, still no success. |
Solved it by independently downloading and installing .net 8.0 |
Which folder? |
ms-dotnettools.csharp and its dependencies (e.g. csdevkit, vscodeintellicode-csharp) |
I have to do this everytime I open vscode in order for c# dev kit to work |
I am finding that I can only run one VSCode at a time. The first one works but if I open a second one with C# it fails and I have to close everything else down and reload to get it to work. |
I have the same or similar issue: Version: 1.87.1 Fresh VS Code installation, only C# Dev Kit installed:
Log file shows Using dotnet configured on PATH VS Code freezes when dotnet project folder is opened |
This issue has been marked as stale after 14 days of inactivity.@[@nagilson@], could you please take a look? |
I am having the issues with C# DevKit starting
With the following error:
|
resolved by the following: snap remove code-insiders
# download the latest https://code.visualstudio.com/insiders/# and installing it
sudo dpkg -i code-insiders_1.89.0-1712556981_amd64.deb |
Is this ever going to get fixed? |
I had been getting this error message (mac os x, m2 pro apple silicon) since updating the vscode extensions. The problem was in the link to "Dotnet path" variable in the settings for the extension. The path set by the extension was: "/usr/local/share/dotnet/dotnet". This was wrong in my case because it somehow added another folder called 'dotnet' below the actual /user/local/share/dotnet. To fix it, i changed the path to where your dotnet is installed. In my case it was : /usr/local/share/dotnet |
I've seen the "successfully connected..." message appear right after the failure happens. In my opinion its "working" fine but the timeout is 30s which is just way too low. Is there a way to increase the timeout its using to wait for the server? I would set it to 5m to be honest. |
@mohitNarang how did you do that? I don't see any configurable path on the extension's settings.
The path to dotnet in PATH is correct |
Here is the image: |
There are several different issues here. One is a GLIB dependency issue which is a missing dependency due to a bad .NET installation. If you hit this error you need to install the dependencies https://github.com/dotnet/core/blob/main/release-notes/6.0/linux-packages.md to get it to work, or use the .NET SDK installer that is build into C# DevKit via the walkthrough. The original issue is about the runtime being for the incorrect architecture. The issue raised by mohit is an issue with snap installs and canonical. This is a symbolic link which needs to be created and is tracked here canonical/dotnet-snap#13 (comment) The issue raised by justin is an issue about the time for the language server to start taking too long. For people who are experiencing different issues from the original issue, please file a different one. It will not be helpful to try to diagnose 4-5 different issues in the same thread. |
Describe the Issue
Dotnet path: c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode...
Failed to load the dll from [c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\host\fxr\7.0.10\hostfxr.dll], HRESULT: 0x800700C1
The library hostfxr.dll was found, but loading it from c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\host\fxr\7.0.10\hostfxr.dll failed
https://go.microsoft.com/fwlink/?linkid=798306
[Error - 10:58:01 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 10:58:01 AM] Connection to server got closed. Server will restart.
true
[Error - 10:58:01 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
Dotnet path: c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode...
Failed to load the dll from [c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\host\fxr\7.0.10\hostfxr.dll], HRESULT: 0x800700C1
The library hostfxr.dll was found, but loading it from c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\host\fxr\7.0.10\hostfxr.dll failed
https://go.microsoft.com/fwlink/?linkid=798306
[Error - 10:58:01 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 10:58:01 AM] Connection to server got closed. Server will restart.
true
[Error - 10:58:01 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
Dotnet path: c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode...
Failed to load the dll from [c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\host\fxr\7.0.10\hostfxr.dll], HRESULT: 0x800700C1
The library hostfxr.dll was found, but loading it from c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\host\fxr\7.0.10\hostfxr.dll failed
https://go.microsoft.com/fwlink/?linkid=798306
[Error - 10:58:01 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 10:58:01 AM] Connection to server got closed. Server will restart.
true
[Error - 10:58:01 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 10:58:01 AM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
Dotnet path: c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode...
[Error - 10:58:01 AM] Client Microsoft.CodeAnalysis.LanguageServer: connection to server is erroring. Shutting down server.
[Error - 10:58:01 AM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: startFailed
at s.shutdown (c:\Users\my.account.vscode\extensions\ms-dotnettools.csharp-2.0.357-win32-ia32\dist\extension.js:2:2241411)
at s.stop (c:\Users\my.account.vscode\extensions\ms-dotnettools.csharp-2.0.357-win32-ia32\dist\extension.js:2:2240992)
at s.stop (c:\Users\my.account.vscode\extensions\ms-dotnettools.csharp-2.0.357-win32-ia32\dist\extension.js:2:2404164)
at s.handleConnectionError (c:\Users\my.account.vscode\extensions\ms-dotnettools.csharp-2.0.357-win32-ia32\dist\extension.js:2:2247499)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[Error - 10:58:01 AM] Server initialization failed.
Message: write EPIPE
Code: -32099
[Error - 10:58:01 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Message: write EPIPE
Code: -32099
[Error - 10:58:01 AM] Restarting server failed
Message: write EPIPE
Code: -32099
[Error - 10:58:01 AM] Restarting server failed
Message: write EPIPE
Code: -32099
[Info - 10:58:01 AM] Connection to server got closed. Server will restart.
true
Dotnet path: c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode...
Failed to load the dll from [c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\host\fxr\7.0.10\hostfxr.dll], HRESULT: 0x800700C1
The library hostfxr.dll was found, but loading it from c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\host\fxr\7.0.10\hostfxr.dll failed
https://go.microsoft.com/fwlink/?linkid=798306
Failed to load the dll from [c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\host\fxr\7.0.10\hostfxr.dll], HRESULT: 0x800700C1
The library hostfxr.dll was found, but loading it from c:\Users\my.account\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\host\fxr\7.0.10\hostfxr.dll failed
https://go.microsoft.com/fwlink/?linkid=798306
[Error - 10:58:01 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 10:58:01 AM] The Microsoft.CodeAnalysis.LanguageServer server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 10:58:01 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
Steps To Reproduce
No response
Expected Behavior
No response
Environment Information
No response
The text was updated successfully, but these errors were encountered: