-
Notifications
You must be signed in to change notification settings - Fork 680
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
LanguageServerProjectSystem throws System.URIFormatException #6218
Comments
Here's another example:
Output:
Reverting to an older version of VSCode (v1.79) does not resolve the issue either. Switching back to |
got the same error too |
This started once I upgraded to the latest extension from a few hours ago 2.0.413. I can't load any projects. (not using c# dev kit, ubuntu 22.04) |
got the same error too,I'm using wsl ubuntu 20.04,and c# dev kit is not installed,and it worked just fine yesterday. |
Error disappears when downgrading to previous version: 2.0.376 |
I have the exact same issue on ubuntu 23.04 |
It also fails after I downgraded to
UPD. ✅ I downgraded to |
Downgrade to 2.0.376 works for me too. The latest version published to vscode (2.0.413) is not even tagged here. |
Same problem. And C# extension is broken again? Maybe you guys should add more test case or hire more QA. |
Got the same error this morning on my Visual Studio Code, using it to code a remote project (via SSH) on a Debian Linux machine. |
Same problem for me using the extension on ubuntu 22.04 via wsl. downgrading to |
same here on ubuntu 23.04 |
Same here on WSL1 + fresh install Ubuntu 23.10 with it's default dotnet sdk 7.0.9 + fresh dotnet new console. On same Win 10 host it worked if project was in c::\users\ ... ... but not in WSL. Downgrading to v2.0.376 fixed the problem The current one crashed right away. Ne previous version first installed dotnet 7.0.10 runtime in ~ but then started to work |
@arkalyanms @dibarbet I don't understand the 4 re-releases made in the last few hours (366, 376, 399, 413), and the "September" milestone event above. Am I right in assuming that this will only be addressed next month? (The latest 413 release introduced a major bug, won't a hotfix be released before then?) |
The 2.0+ version is totally a disaster,it brings so many problems that the previous versions do not have :( now I have to roll back to version 1.26,thanks god this version works perfectly while later versions suck! |
@Cosifne would you help take a look? This is a recent regression. @lonix1 we are currently releasing fixes every week. September, if there are no blockers will have 4 releases. We do have another release left in August we can catch early next week if we have a fix by then. We will readjust milestone if that spans out. |
Rolling back to version 1+ might be more straight way |
rollback works fine, thought was my pc, but was the new realase 😂. Just rollback to v2.0.376 |
Same issue here, fixed with a +1 rollback. Frustrating to spend time on this - and MARVELOUS that this made it to prod from an official Microsoft extension for a Microsoft maintained programming language (C#) on a Microsoft tool (vscode). I'm on Ubuntu 23.04. |
For those are hitting this issue, can you provide a dump of the environment variables from your shell? For example, run |
I do not have a DOTNET_ROOT and HOME is just my
|
@bjornharrtell If you have a minute, are you able to upgrade back to the current latest and share the output of the C# output window? Our current operating theory is some environment variables we expect to have absolute paths with are getting relative paths set, and that's not ending well. |
@jasonmalinowski I also do not have a 'DOTNET_ROOT' environment variable, my home is As far as my C# output, I know you asked @bjornharrtell but mine looks like this at the current version:
|
@briandoesdev What is in your PATH? This is failing because the path we're ending up with in dotnet.exe is a relative path:
And we're trying to figure out how that got there. |
@jasonmalinowski Here is my PATH:
|
Also experiencing this issue on Ubuntu 22.04.3 LTS. This is my path:
|
Interestingly when I downgrade to v2.0.376 (which appears to fix the issue), the C# output changes from:
to
In other words, in the older version that works, the extension is falling back to what looks like its own copy of the runtime. Setting the $DOTNET_ROOT env variable to /usr/lib/dotnet seems to have no effect. |
We've got a repro here now internally and working on a fix; thanks all for the reports! |
Looks like this is figured out now. For anyone waiting on this release - looks like updating the |
Fix is checked in, it will be released next Monday. |
Thanks for fixing this quickly! Most stuff kept working, but the constant pop-ups of VSCode that I could not seem to disable, drove me mad. Or arguably just slightly madder. |
Version 2.0.416 is released |
I still experience this on
|
Hi @moander |
@moander Are you navigating to a symbol produced by a Roslyn source generator? |
Yes I am. Same issue on mac and wsl. It works fine with OmniSharp 🤷♂️ |
Has a fix been released yet? I'm getting errors similar to this one and "Error: Unable to get working directory for project Miscellaneous Files" |
@HugoCortell The known fixes for 6218 (this bug) are out; if you're seeing something else please file a new bug. |
Type: Bug
Issue Description
VSCode was working just fine for many years until the language
server started failing recently.
When it stopped working I completely removed vscode from my system
and deleted all my user data as well.
I then re-installed vscode and for a single session it was working.
After a system reboot it stopped working again.
Steps to Reproduce
Open any folder containing a C# project.
Expected Behavior
For it to load normally like before.
Actual Behavior
Logs
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.81.1
C# Extension: 2.0.413
Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 7.0.110 Commit: ba920f88acRuntime Environment:
OS Name: ubuntu
OS Version: 23.04
OS Platform: Linux
RID: ubuntu.23.04-x64
Base Path: /usr/lib/dotnet/sdk/7.0.110/
Host:
Version: 7.0.10
Architecture: x64
Commit: a6dbb800a4
.NET SDKs installed:
6.0.121 [/usr/lib/dotnet/sdk]
7.0.110 [/usr/lib/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.21 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.10 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.21 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.10 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
/home/timothy/global.json
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
Extension version: 2.0.413
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:18:39.991Z)
OS version: Linux x64 6.2.0-27-generic
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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: