-
Notifications
You must be signed in to change notification settings - Fork 169
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
Yet another "Could not locate MSBuild" #799
Comments
When you |
Yeah, I run reinstall after each change, also tried restarting vim and using call plug#begin()
Plug 'OmniSharp/omnisharp-vim'
call plug#end()
let g:OmniSharp_server_use_net6 = 1 Here are the OmniSharp logs, look suspicious to me since NVIM v0.6.1
OmniSharp server started.
Path: /home/dkaszews/.cache/omnisharp-vim/omnisharp-roslyn/OmniSharp
Target: /home/dkaszews/.local/share/nvim/plugged/vimspector/support/test/csharp/csharp.sln
PID: 275484
[info]: OmniSharp.Stdio.Host
Starting OmniSharp on Unknown 0.0 (Unknown)
[info]: OmniSharp.Services.DotNetCliService
Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
[info]: OmniSharp.Services.DotNetCliService
DotNetPath set to /home/dkaszews/Downloads/dotnet-sdk-6.0.302-linux-arm64/dotnet
[fail]: OmniSharp.MSBuild.Discovery.Providers.SdkInstanceProvider
OmniSharp requires the .NET 6 SDK or higher be installed. Please visit https://dotnet.microsoft.com/download/dotnet/6.0 to download the .NET SDK.
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 0 MSBuild instance(s) |
If the server can't run on your system then there's not much we can do about it on this side, I'd suggest opening an issue at OmniSharp-roslyn. You can repro by simply running the Does |
I did previously run the executable outside vim and saw the same errors, but thought that maybe vim will set some variables or arguments which will fix it. Also, Thanks for you help, closing the issue and will open one in the main repo. |
Yeah, so I'm also having problems with "Could not locate MSBuild", but unlike #791 and #792, setting
let g:OmniSharp_server_use_net6 = 1
does not help.If I set it to use mono instead, I'm getting the same exact error on OmniSharp v1.39.X, but on v1.38.X and older I can see:
Loaded server for *.sln in 6.3s
which looks promising, but:messages
showFailed to load project
for all projects in the solution`, probably because they are dotnet-core.I tried using
dotnet-sdk-6.0.302-linux-arm64
and7.0.100-preview.6.22352.1
that comes withPowerShell-core
, both by setting$DOTNET_ROOT
and copying/linking to/usr/share/dotnet
, no dice.Main project I'm trying to use is
PowerShell-core
on .net 7, but also getting the same exact results on vimspector toy projectOS is Ubuntu 22.04 LTS aarch64 on Raspberry Pi 4 Model B Rev 1.2
The text was updated successfully, but these errors were encountered: