-
Notifications
You must be signed in to change notification settings - Fork 687
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
OmniSharp unable to load project with Razor? #4446
Comments
Seems to be a Linux issue? Tried on Windows, and the project loaded fine, i should test this on an another linux system to see if i can reproduce the problem. |
This looks like a problem in omnisharp-roslyn where incorrect Symbol is passed and ultimately fails in
|
@ThomasAunvik It looks like this issue fixed in the version of OmniSharp (OmniSharp/omnisharp-roslyn#2054) that ships with the latest version of the C# extension. Are you still seeing this issue with the latest version? |
Unfortunately yes, i am now at v1.23.11, and i have still the same issue. |
I have created a test project with the similar functionality that i have in my own project, and can reproduce the project error. Here is the project: https://github.com/ThomasAunvik/RazorFailTest When closing VSCode and then reloading the project, then i get the same error as the one in the original issue. Though, it looks like the exception message is different now.
|
Ok, so i haven't been able to reproduce the issue on an ubuntu vm for some reason, but i did manage to reproduce it in an Arch Linux vm. Here is the virtual machine: Download VM And then open Visual Studio Code at Though, there might be this other related issue i am having now since the RID of this dotnet is incorrectly set to |
@ThomasAunvik Thanks for all the great resources that you've provided. This issue is a packaging issue with Arch's dotnet-sdk package where the net46 Razor build tasks are missing from the Razor SDK. This file Your project builds fine using This comment provides a work around #4360 (comment) or you can try installing the dotnet-sdk-bin package which appears to have the necessary file https://archlinux.pkgs.org/rolling/chaotic-aur-x86_64/dotnet-sdk-bin-5.0.3.sdk200-1-x86_64.pkg.tar.zst.html. @NTaylorMullen just a fyi |
@pranavkm @captainsafia is the SDK bit intentional or known? |
Wonder if this is a result of the Arch package being generated from source-build - https://github.com/archlinux/svntogit-community/blob/75fbd7b1a57ef88c5696a2e57fc8dd7ca910f21e/trunk/PKGBUILD#L91-L104. I don't imagine that it would build the full framework assemblies. |
It would seem downloading the -bin version fixed the problem 👍 |
Environment data
dotnet --info
output:VS Code version: 1.54.3
C# Extension version: 1.23.9
OmniSharp log
https://gist.github.com/ThomasAunvik/e4bb57c12445136458908ce370445096
Steps to reproduce
I am not sure, but my it seems like my project is using Razor library from netstandard2.0 which fails to load the project that is running on core 3.1.
Expected behavior
To omnisharp to load the project correctly.
Actual behavior
Intellisense and other stuff like autocomplete stops working at all, and failes to load the main project.
The text was updated successfully, but these errors were encountered: