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

C# Extension: "Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server" Error #7866

Open
Aaron-Wilhite opened this issue Dec 9, 2024 · 1 comment

Comments

@Aaron-Wilhite
Copy link

I am getting an error message: "Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server." Source: C#.

Environment data

dotnet --info output:
VS Code version:
Version: 1.95.3 (user setup)
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.19045

C# Extension version: v2.55.29

Steps to reproduce

Upon opening VSCode I get the following: Image
Image

Additional context

It seems to be an administrator privilege issue, since this doesn't happen when I open VSCode as an admin.

I have tried:

  1. Uninstalling and reinstalling all related C#/.NET extensions and previous versions.
  2. Deleting them from the folder structure and reinstalling them.
  3. Uninstalling and reinstalling all corresponding .NET SDKs/Runtimes
  4. Uninstalling and reinstalling VSCode.
@AnthonyElcocks
Copy link

This may not be relevant to your situation but I was also receiving this message when starting VS Code using a workspace file, and it was because I had the project folder named as `Learn C#'. Renaming it to Learn C Sharp resolved the issue.

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

No branches or pull requests

2 participants