-
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
1.25.2 no longer finds Mono installation #5454
Comments
I am experiencing this as well. I updated my Mono installation (from Both repositories are Unity environments. Edit: I'm running macOS 13 on Apple Silicon. VS Code is at 1.73.1 and is not running in Rosetta. |
can you try setting |
macOS 12.6 here, and I just started getting this today with extension 1.25.2. Everything was fine yesterday (but not sure what extension version I was using then) Setting |
Can confirm this also happens on 1.25.2 running on MacOS 10.14.6 Mojave, useModernNet is false and monoPath is |
@filipw - I also tried setting |
I am also experiencing the issue with 1.25.2, on Fedora 36 in a Unity project. Reverting to 1.25.0 fixes the issue. Setting the path to |
This error is also emitted when |
Yes, for me the mono install is on PATH and appears to be functional.
As to whether it's the "correct" version of msbuild, the mono website suggests that mono 6.12 ships with msbuild 16.9, but this issue (and the contents of my machine) suggests that it's actually shipping with 16.6 (but I guess you're already familiar with that problem @filipw since you created that issue) Also reverting back to 1.25.0 did fix the issue for me. |
Running
|
@filipw - I did try adding the specific location of
|
Thanks to everyone who posted their output here. It seems like the common thread is that everyone experiencing this is on Mono If you are affected, can you try upgrading your global Mono installation? |
I did this the first time I ran into the issue. Didn't change anything for me: this issue continues to occur. |
@filipw - Upgrading my global Mono installation to the latest stable version |
I'm still experiencing this dialog popup issue on Ventura on 1.5.2 with |
@dev-mdean But does that fixed state persist? Can you please try activating the extension in another VS Code window? And try restarting VS Code to see if the issue resurfaces? In my experience, upgrading to the latest Mono worked once and then the problem resurfaced. |
@ericdrobinson - The fixed state has persisted. Restarting did not cause the issue to resurface and I can have multiple instances active in separate VS Code windows. Our OS versions and processors are different so maybe updating Mono doesn't fix the issue for your configuration? I am running Mac OS 12.6 with an Intel processor. |
@dev-mdean Are those multiple instances of VS Code with the same C# project loaded? If so, can you try opening a VS Code window and point it to another C# project? |
@ericdrobinson - The multiple instances I loaded were separate C# projects. |
My experience as well. Likewise if I uninstall the plugin and reinstall - the system works until I close VSCode. At next restart with a C# project it will bring up the error. Mac OS 13.0.1 (Intel), msbuild: 16.10.1.31401, mono: 6.12.0.182. |
The reason why it works with newer Mono (and newer MsBuild) is that the check is done by executing The fact that you experience "a loss" of this at some point is unrelated to the root cause of this issue (which was the incompatible MsBuild). We execute the MsBuild check by spinning a child process from VS Code, the same as we do for Mono - however, there we also experience similar loss of PATH variables - which seems to me is a VS Code problem - see microsoft/vscode#118460 (there are a few related issues too). Seemingly other tasks, extensions or processes, unrelated to the C# extension can cause a reset of PATH thus breaking these checks that are relying on PATH. Also upon restart, depending on which terminal or UI VS Code is started, may impact the things available on the PATH inside VS Code. We worked around it by adding manual PATH entry for Mono |
The issue seems to be this line: https://github.com/OmniSharp/omnisharp-vscode/blob/11758b7b8b525689c193e838aacf5a1e9c05bcf9/src/utils/getMSBuildInfo.ts#L22 The function it's in ( Mind you, I only tested it on Linux (Fedora 37) - on other platforms it might be a different story. |
I still have this issue, but only happens when opening a second C# project. Whatever the first project I open, VS Code will load OmniSharp just fine, but as soon as I open a new project, the warning window comes back. Is this a known issue? If not, I can open a new issue. |
We haven't done a release with this fix yet. |
Yes, I understand. I was just curious if what I saw was a known issue and if this fix will resolve it, since the issue I see only happens if I open a second VS Code window. 🙂 |
@heshuimu |
Issue Description
Though issues #5443 and #5444 were closed with the release of 1.25.2, it appears that Omnisharp still no longer finds the Mono installation. This previous issues seemed to be focused on Mac OS Ventura 13.0 but older versions of Mac OS, for instance Mac OS Monterey 12.6, are still experiencing it.
Steps to Reproduce
Upgrade the C# extension from 1.25.0 to 1.25.2. Omnisharp fails and dialog appears when opening a C# project or restarting Onmisharp.
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.73.1
C# Extension: 1.25.2
Mono Information
OmniSharp using mono: 6.12.0Dotnet Information
.NET SDK (reflecting any global.json): Version: 6.0.300 Commit: 8473146e7dRuntime Environment:
OS Name: Mac OS X
OS Version: 12.6
OS Platform: Darwin
RID: osx.12-x64
Base Path: /usr/local/share/dotnet/sdk/6.0.300/
Host (useful for support):
Version: 6.0.5
Commit: 70ae3df4a6
.NET SDKs installed:
6.0.300 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: