-
Notifications
You must be signed in to change notification settings - Fork 676
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# & C# Dev Kit & C# IntelliCode #6159
Comments
Same problem described here: #6004 (comment) in #6004 |
The dotnet error is tracked by #6167 , but it shouldn't cause highlighting to disappear.
Can you clarify exactly which command you invoked? There is currently a bug where lose project information when you only run the If you reload the window instead, does it work? |
I envoke the .NET: Restart Language Server command. No reloading the window, restarting vsc does not work. I also found out, that this only happens when all 3 Extensions are running, but if I deactivate Dev Kit and Intellicode, it works like usual. |
I think it's related to PR #6175 . it's fixed Deactivating Dev kit makes OmniSharp run. Otherwise native .net api runs. |
I'm currently still getting the same version error required version is 7.0.100, I take it, this is because I dont have the newest fixed version of the Extension? |
.net 7.0.1 existed here .Net_latest _version |
Thanks for the response, I might have misunderstood the fix for my problem. My current Project is in .Net 6, do I still need to have .Net 7.0.1 installed for the extension to work? |
@NKFahrni can you check again ? https://github.com/dotnet/vscode-csharp/releases/tag/v2.0.413 After extension update to 2.0.413 it must be fixed now Edit : We might need vscode upgrade, im not sure |
The Output of the C# extension on my first reload got me the following message: [Error - 8:48:19 AM] [LanguageServerHost]System.InvalidOperationException: Was not able to get hello world response from remote - line 39 So I tried again and got this and now it seems to be working! [Info - 8:48:39 AM] [Program]Language server initialized |
Type: Bug
Issue Description
I updated C# to the newest Version (v2.0.376) and C# Dev Kit (pre-release v0.4.5). After that I restarted the languageserver. This did not change the fact, that C# Intellicode could not analyze my code. The Syntax highlighting failed. I looked at the output panel in Visual Studio Code and found, that the Extensions required a dotnet version that doesnt exist (7.0.100).
Steps to Reproduce
Install all C# Extension (C#, C# Dev Kit, C# IntelliCode)
Open a C# Project.
Expected Behavior
Code gets highlighted and IntelliCode analyzes the code.
Actual Behavior
The code highlighting doent work and IntelliCode doesnt analyze the code
Logs
Logs.txt
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.81.1
C# Extension: 2.0.376
Using OmniSharp: false
Dotnet Information
.NET SDK (reflecting any global.json): Version: 6.0.413 Commit: 10710f7d8eRuntime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\6.0.413\
Host:
Version: 7.0.10
Architecture: x64
Commit: a6dbb800a4
.NET SDKs installed:
3.1.426 [C:\Program Files\dotnet\sdk]
5.0.303 [C:\Program Files\dotnet\sdk]
5.0.408 [C:\Program Files\dotnet\sdk]
6.0.316 [C:\Program Files\dotnet\sdk]
6.0.402 [C:\Program Files\dotnet\sdk]
6.0.413 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.11 [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.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.11 [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.10 [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.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.10 [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]
Other architectures found:
arm64 [C:\Program Files\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\arm64\InstallLocation]
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 version: 2.0.376
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: disabled_off
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: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: