Open ghost opened 3 years ago
I have the same issue. Just installed vs code on Ubuntu and I can't seems to be able to remove this warning.
I even added the alias
command as requested in the manual.
I couldn't understand the help there - is it asking me to find the bug in vs code???
Also opening vs code from command line doesn't resolve this warning.
Hey folks, @iAmJuan550 @HarelM, could you please try following these instructions here and see if issue persists?
Thanks for getting back to me. I'll try that later tonight and report back...
@vzarytovskii the link and instructions on using a symbolic link did the trick, thanks!!
I needed to use sudo ln -s /snap/dotnet-sdk/current/dotnet /usr/local/bin/dotnet
since I didn't have permission to do it for some reason.
I also recommend to change the following page to have this institutions instead of telling me I should debug some code I don't know where to find:
https://github.com/OmniSharp/omnisharp-vscode/wiki/Troubleshooting:-'The-.NET-Core-SDK-cannot-be-located.'-errors
That is linked when you click on help in vs code.
On macOS this fixed it for me:
sudo ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/dotnet
@iAmJuan550 hey! I've tried everything I can to make C# autocomplete work on my Ubuntu but it's been a huge mess. How did you manage to make it work? I'm not sure what I am doing wrong. I don't want to create a partition just to use Unity3D on Windows please help :(
@LeFede Sorry you are running into an issue. Since your problem may not be the same as others, please open a new issue and provide the requested logs.
@LeFede Sorry you are running into an issue. Since your problem may not be the same as others, please open a new issue and provide the requested logs.
I just did it. Thanks!
Environment data
dotnet --info
output:VS Code version: 1.55.0 C# Extension version: v1.23.9
OmniSharp log
None
Steps to reproduce
Open a .cs file in Unity3D on Ubuntu 20.04
Expected behavior
No popup dialogue should appear at the bottom right
Actual behavior
A pop up dialogue appears at the bottom right
That's the popup I get at the bottom right whenever I open a .cs script in VSCode inside Unity3D. It doesn't interfere with the code completion or the execution of the program but I can't understand why I am getting this error since I followed the steps here to install dotnet on Ubuntu 20.04. I also installed mono-complete by executing the following command in console:
sudo apt install mono-complete
But still VSCode inside Unity3D can't seem to locate dotnet SDK. I can confirm that dotnet SDK is installed on my system because whenever I check the version of dotnet SDK, I get the following:
And I also checked this inside the VSCode terminal:
So, it seems to be recognized inside the VSCode terminal but then why am I getting that popup message? I have also tried this but no luck.
I also added the following to my bashrc
export DOTNET_ROOT=/snap/dotnet-sdk/current
Still getting the same popup. Is VSCode looking for dotnet SDK some place else? If so, where is VSCode looking for it?