0 votes

Hi, I recently installed godot mono for mac os, I followed the closest tutorial I could find and made sure to install all of the appropriate extensions.
Once I set up my project and started coding however I noticed that it never gave me any errors (besides syntax). For example I can type "public bool f = 5;" with it not batting an eyelid or I can name classes that don't exist.

I'm not sure if this is normal and if so how do I fix it?
I also got an error from the OmniSharp log that I'm not sure if it is related, it reads something like this:

Starting OmniSharp server at 9/25/2021, 8:26:31 PM
    Target: /Users/jacobmaynardvesely/GuiBasedThing

OmniSharp server started.
    Path: /Users/jacobmaynardvesely/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/run
    PID: 60444

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on MacOS 10.15.4 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 17.0.0 - "/Users/jacobmaynardvesely/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to '/Users/jacobmaynardvesely/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild/Current/Bin/MSBuild.exe'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 17.0.0 - "/Users/jacobmaynardvesely/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild/Current/Bin"
            CscToolExe = csc.exe
            MSBuildToolsPath = /Users/jacobmaynardvesely/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild/Current/Bin
            CscToolPath = /Users/jacobmaynardvesely/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild/Current/Bin/Roslyn
            BypassFrameworkInstallChecks = true
            MSBuildExtensionsPath = /Users/jacobmaynardvesely/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/Users/jacobmaynardvesely/GuiBasedThing'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in '/Users/jacobmaynardvesely/GuiBasedThing/GuiBasedThing.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/jacobmaynardvesely/GuiBasedThing/GuiBasedThing.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/Users/jacobmaynardvesely/GuiBasedThing'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/jacobmaynardvesely/GuiBasedThing/GuiBasedThing.csproj
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/Users/jacobmaynardvesely/GuiBasedThing' on host 60407.
[fail]: OmniSharp.MSBuild.ProjectLoader
        This project targets .NET version that requires reference assemblies that do not ship with OmniSharp out of the box (e.g. .NET Framework). The most common solution is to make sure Mono is installed on your machine (https://mono-project.com/download/) and that OmniSharp is started with that Mono installation (e.g. "omnisharp.useGlobalMono":"always" in C# Extension for VS Code).
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file '/Users/jacobmaynardvesely/GuiBasedThing/GuiBasedThing.csproj'.
/Users/jacobmaynardvesely/GuiBasedThing/GuiBasedThing.csproj
/Users/jacobmaynardvesely/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1217,5): Error: This project targets .NET version that requires reference assemblies that do not ship with OmniSharp out of the box (e.g. .NET Framework). The most common solution is to make sure Mono is installed on your machine (https://mono-project.com/download/) and that OmniSharp is started with that Mono installation (e.g. "omnisharp.useGlobalMono":"always" in C# Extension for VS Code).

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: /Users/jacobmaynardvesely/GuiBasedThing/GuiBasedThing.csproj
[info]: OmniSharp.OmniSharpWorkspace
        Miscellaneous file: /Users/jacobmaynardvesely/GuiBasedThing/.mono/temp/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs added to workspace
Received response for /v2/codestructure but could not find request.
Received response for /quickinfo but could not find request.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
        No document found. File: /Users/jacobmaynardvesely/GuiBasedThing/MySprite.cs.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
        No document found. File: /Users/jacobmaynardvesely/GuiBasedThing/MySprite.cs.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
        No document found. File: /Users/jacobmaynardvesely/GuiBasedThing/MySprite.cs.
[info]: OmniSharp.OmniSharpWorkspace
        Miscellaneous file: /Users/jacobmaynardvesely/GuiBasedThing/MySprite.cs added to workspace
Received response for /v2/getcodeactions but could not find request.
Godot version 3.3.3
in Engine by (14 points)

straight-outta-log:

[fail]: OmniSharp.MSBuild.ProjectLoader
This project targets .NET version that requires reference assemblies that do not ship with OmniSharp out of the box (e.g. .NET Framework). The most common solution is to make sure Mono is installed on your machine

You need to install mono.

See that's what I thought so I followed the link it gave me:
"https://mono-project.com/download/"
still got the same error, also the godot wiki says I don't have to install mono independently for this version.
I'll install it again for good measure but I'm not sure, maybe it's some filepath weirdness

In settings also enable use global mono to always.

ah thankyou, that helped, although I noticed now that this doesn't support the latest c# version (it's using C# 7.3), is there any way to change this?

Only keep dotnet3.1 installed and remove other versions.

ah ok, where and how do I remove the other versions?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.