Intellisense not working on Mac in VS Code nor in VS Community

I have no intellisense on VS Code or VS Community. It basically means I can’t work on the mac at the moment.

VS Code complains about .net 4.7.1 which is a Windows binary I think, so why it’s even asking for it on Mac is a mystery - tried fixing it by downloading latest .net Core but that didn’t fix it. Tried rebuilding the project, tried hacking the project to point to .net core instead of .net framework - no joy.

VS Community just randomly stopped working - not sure if it was some update somewhere but now it gets all the code formatting wrong (keywords change colour half way through; single line comments turn the next line green; newline doesn’t tab in to the correct indent; etc) and there’s no intellisense at all. I can’t find anything in the app that will help me find out what even went wrong.

I’m so sick to the back teeth of these problems which I’ve had on and off for my entire time working with Unity on the Mac.

I get that these are not easy problems to solve, but I am really sad and frustrated here.

I’m using 2020.1.11f1 on macOS 10.14.6 Mojave.

Log from VS Community

INFO [2020-10-30 23:14:33Z]: Starting Visual Studio 2019 for Mac 8.7.9 (build 9)
INFO [2020-10-30 23:14:33Z]: Build Information
Release ID: 807090009
Git revision: d29d54665a1fc79986687a540a7a4676f97ad3da
Build date: 2020-10-21 15:05:18-04
Build branch: release-8.7
Xamarin extensions: d29d54665a1fc79986687a540a7a4676f97ad3da

INFO [2020-10-30 23:14:33Z]: Running on Mono 6.12.0.93 (2020-02/620cf538206) (64-bit)
INFO [2020-10-30 23:14:33Z]: Operating System: Mac OS X 10.14.6
Darwin 18.7.0 Darwin Kernel Version 18.7.0
    Tue Aug 20 16:57:14 PDT 2019
    root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64
Could not find `System.Runtime.Loader` referenced by assembly `Microsoft.CodeAnalysis.Scripting, Version=3.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35`.
INFO [2020-10-30 23:14:34Z]: Accessibility disabled
INFO [2020-10-30 23:14:34Z]: GTK: Using gtkrc from /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/gtkrc.mac-dark

(VisualStudio:6864): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
INFO [2020-10-30 23:14:35Z]: Using GTK+ 2.24.23
INFO [2020-10-30 23:14:35Z]: Running dfe78db3-8b40-4d59-8b53-681b2feff135
INFO [2020-10-30 23:14:35Z]: Initializing ms error reporting app: com.microsoft.visual-studio, Visual Studio, 8.7.9.9
INFO [2020-10-30 23:14:35Z]:                                    : /Applications/Visual Studio.app
INFO [2020-10-30 23:14:35Z]: Using MERP bundle: /Applications/Visual Studio.app/Contents/SharedSupport/Microsoft Error Reporting.app
INFO [2020-10-30 23:14:35Z]: Add-in loaded: MonoDevelop.Core
INFO [2020-10-30 23:14:35Z]: Add-in loaded: MonoDevelop.Ide
INFO [2020-10-30 23:14:35Z]: Add-in loaded: MonoDevelop.MacPlatform
INFO [2020-10-30 23:14:35Z]: Initializing Runtime Mono 6.12.0.93
INFO [2020-10-30 23:14:35Z]: [0 (+0)] Finding custom frameworks
INFO [2020-10-30 23:14:35Z]: Registering feature IdeBuildOutputView (Enable structured build output UI = False)
INFO [2020-10-30 23:14:35Z]: Registering feature RUNTIME_SELECTOR (Enable runtime selection on UI = False)
INFO [2020-10-30 23:14:35Z]: Registering feature AlwaysUseLegacyEditor (Enable old editor = False)
INFO [2020-10-30 23:14:35Z]: Registering feature VBNetDotnetCoreTemplates (Enable VB.NET support for .NET Core = False)
INFO [2020-10-30 23:14:35Z]: Registering feature AspNetCoreGRPCTemplates (Enable gRPC template = True)
INFO [2020-10-30 23:14:35Z]: Creating service: MonoDevelop.Components.Commands.CommandManager
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.ConnectedServices
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.DesignerSupport
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.TextEditor
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.RegexToolkit
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.Debugger
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.SourceEditor2
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.Refactoring
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.PackageManagement
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.UnitTesting
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.Debugger.VsCodeDebugProtocol
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.CSharpBinding
INFO [2020-10-30 23:14:36Z]: [97 (+97)] Creating frameworks
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.DotNetCore
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.PerformanceDiagnostics
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.Xamarin.Ide
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.Debugger.Soft
INFO [2020-10-30 23:14:36Z]: [174 (+77)] Initializing frameworks
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.Unity
INFO [2020-10-30 23:14:36Z]: [190 (+16)] END: Target runtimes loaded
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.AspNetCore
INFO [2020-10-30 23:14:36Z]: Add-in loaded: Xamarin.Designer
INFO [2020-10-30 23:14:36Z]: Add-in loaded: Xamarin.Android.Deploy
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.AssemblyBrowser
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.TextTemplating
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.Xml
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.AspNet
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.VersionControl
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.VersionControl.Git
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.GtkCore
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.FSharpBinding
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.TextEditor.Cocoa
INFO [2020-10-30 23:14:36Z]: Add-in loaded: Xamarin.Terminal.Xamarin.Terminal
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.Packaging
INFO [2020-10-30 23:14:36Z]: Add-in loaded: MonoDevelop.WebReferences
INFO [2020-10-30 23:14:36Z]: Service MonoDevelop.Components.Commands.CommandManager initialized in 190 ms.
INFO [2020-10-30 23:14:36Z]: Creating service: MonoDevelop.Ide.DesktopService
INFO [2020-10-30 23:14:36Z]: Using Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
WARNING [2020-10-30 23:14:36Z]: Unknown startup reason, assuming Normal
INFO [2020-10-30 23:14:36Z]: Service MonoDevelop.Ide.DesktopService initialized in 43 ms.
WARNING [2020-10-30 23:14:36Z]: LaunchReason is already set to Normal.
Starting Visual Studio
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.Fonts.FontService
INFO [2020-10-30 23:14:37Z]:INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.Tasks.TaskService
Service MonoDevelop.Ide.Fonts.FontService initialized in 2 ms.
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Ide.Tasks.TaskService initialized in 0 ms.
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.ProjectOperations
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.RootWorkspace
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Ide.RootWorkspace initialized in 0 ms.
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.TextEditing.TextEditorService
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Ide.TextEditing.TextEditorService initialized in 0 ms.
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.Navigation.NavigationHistoryService
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Ide.Navigation.NavigationHistoryService initialized in 0 ms.
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.Gui.DisplayBindingService
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Ide.Gui.DisplayBindingService initialized in 0 ms.
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.HelpOperations
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Ide.HelpOperations initialized in 0 ms.
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Projects.HelpService
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Projects.HelpService initialized in 0 ms.
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.Gui.Documents.DocumentManager
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Ide.Gui.Documents.DocumentManager initialized in 0 ms.
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.Gui.ProgressMonitorManager
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Ide.Gui.ProgressMonitorManager initialized in 0 ms.
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Ide.ProjectOperations initialized in 117 ms.
   Loading Workbench
      Initializing Main Window
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.Gui.Documents.DocumentModelRegistry
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Ide.Gui.Documents.DocumentModelRegistry initialized in 0 ms.
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.Gui.Documents.DocumentControllerService
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Ide.Gui.Documents.DocumentControllerService initialized in 0 ms.
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.Gui.Shell.IShell
INFO [2020-10-30 23:14:37Z]: Creating DefaultWorkbench
INFO [2020-10-30 23:14:37Z]: Service MonoDevelop.Ide.Gui.Shell.IShell initialized in 34 ms.
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.TypeSystem.TypeSystemService
INFO [2020-10-30 23:14:37Z]: Creating service: MonoDevelop.Ide.Composition.CompositionManager
INFO [2020-10-30 23:14:38Z]: Add-in loaded: Microsoft.VisualStudio.Mac.RazorAddin
INFO [2020-10-30 23:14:38Z]: Creating MEF composition from cache
INFO [2020-10-30 23:14:38Z]: Service MonoDevelop.Ide.Composition.CompositionManager initialized in 317 ms.
INFO [2020-10-30 23:14:38Z]: Add-in loaded: MonoDevelop.VersionControl.Subversion
INFO [2020-10-30 23:14:38Z]: Add-in loaded: MonoDevelop.VersionControl.Subversion.Unix
INFO [2020-10-30 23:14:38Z]: Add-in loaded: Xamarin.TestCloud.NUnit
INFO [2020-10-30 23:14:38Z]: Add-in loaded: MonoDevelop.VBBinding
INFO [2020-10-30 23:14:38Z]: Add-in loaded: MonoDevelop.UnitTesting.NUnit
INFO [2020-10-30 23:14:38Z]: Creating service: Xamarin.Ide.PushNotifications.PushNotificationsService
INFO [2020-10-30 23:14:38Z]: Service MonoDevelop.Ide.TypeSystem.TypeSystemService initialized in 729 ms.
INFO [2020-10-30 23:14:38Z]: Startup section mainInitialization 573 ms
INFO [2020-10-30 23:14:38Z]: Startup section PlatformInitialization 75 ms
INFO [2020-10-30 23:14:38Z]: Startup section GettextInitialization 10 ms
INFO [2020-10-30 23:14:38Z]: Startup section PreGtkInitialization 363 ms
INFO [2020-10-30 23:14:38Z]: Startup section XamarinMacInitialization 673 ms
INFO [2020-10-30 23:14:38Z]: Startup section ToolkitInitialization 32 ms
INFO [2020-10-30 23:14:38Z]: Startup section XwtInitialization 1061 ms
INFO [2020-10-30 23:14:38Z]: Startup section CustomizerToolkitInitialization 10 ms
INFO [2020-10-30 23:14:38Z]: Startup section IdeCustomizerInitialization 176 ms
INFO [2020-10-30 23:14:38Z]: Startup section DispatchInitialization 5 ms
INFO [2020-10-30 23:14:38Z]: Startup section RoslynInitialization 7 ms
INFO [2020-10-30 23:14:38Z]: Startup section RuntimeInitialization 359 ms
INFO [2020-10-30 23:14:38Z]: Startup section ThemeInitialized 1 ms
INFO [2020-10-30 23:14:38Z]: Startup section PlatformServicesInitialization 721 ms
INFO [2020-10-30 23:14:38Z]: Startup section FileWatcherInitialization 1 ms
INFO [2020-10-30 23:14:38Z]: Startup section ImageInitialization 0 ms
INFO [2020-10-30 23:14:38Z]: Startup section AppInitialization 1446 ms
INFO [2020-10-30 23:14:38Z]: Startup section BasicInitializationCompleted 5 ms
INFO [2020-10-30 23:14:38Z]: Startup section SocketInitialization 0 ms
INFO [2020-10-30 23:14:38Z]: Startup section WindowOpened 0 ms
INFO [2020-10-30 23:14:38Z]: Startup section PumpEventLoop 550 ms
INFO [2020-10-30 23:14:38Z]: Startup sections 6076 ms
INFO [2020-10-30 23:14:39Z]: Service Xamarin.Ide.PushNotifications.PushNotificationsService initialized in 1197 ms.
WARNING [2020-10-30 23:14:40Z]: Unknown TargetFramework '.NETFramework,Version=v1.1' is being requested from SystemAssemblyService, returning empty TargetFramework
WARNING [2020-10-30 23:14:40Z]: Unknown TargetFramework '.NETFramework,Version=v1.1' is being requested from SystemAssemblyService, returning empty TargetFramework
WARNING [2020-10-30 23:14:40Z]: Unknown TargetFramework '.NETFramework,Version=v1.1' is being requested from SystemAssemblyService, returning empty TargetFramework
WARNING [2020-10-30 23:14:41Z]: Subversion addin could not load libsvn_client, so it will be disabled.
INFO [2020-10-30 23:14:41Z]: Git command line client detected: git version 2.20.1 (Apple Git-117)
ERROR [2020-10-30 23:14:42Z]: Error while loading diagnostics in Microsoft.CodeAnalysis.Scripting, Version=3.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
ERROR [2020-10-30 23:14:42Z]: Error while loading diagnostics in Microsoft.CodeAnalysis.Scripting, Version=3.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Could not load file or assembly 'System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/Assembly.cs:243
  at MonoDevelop.AnalysisCore.MonoDevelopWorkspaceDiagnosticAnalyzerProviderService+OptionsTable.ProcessAssembly (System.Reflection.Assembly asm) [0x00148] in /Users/builder/azdo/_work/1/s/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/MonoDevelopWorkspaceDiagnosticAnalyzerProviderService.OptionsTable.cs:110
  at MonoDevelop.AnalysisCore.MonoDevelopWorkspaceDiagnosticAnalyzerProviderService.GetAnalyzerReferencesInExtensions () [0x000bc] in /Users/builder/azdo/_work/1/s/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/MonoDevelopWorkspaceDiagnosticAnalyzerProviderService.cs:88
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
INFO [2020-10-30 23:14:43Z]: Mapped Pango font description 'Menlo 12' to NSFont '"Menlo-Regular 12.00 pt. P [] (0x7fc8fe5a6e70) fobj=0x7fc90757be00, spc=7.22"'
INFO [2020-10-30 23:47:34Z]: ExternalToolService: No user templates, reading default templates.

You know what, fuck it. I’ll use a different engine. Too many problems over the years with this damn software.

This may help you with intellisense problems:

Also, try update the VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button

Also, this: No suggestions in Vscode

1 Like

Something in one of these threads eventually worked for VS Code. Thanks Kurt-Dekker.

1 Like

Nope, it’s gone again.

Downgrading VS Code C# extension to something below 1.23.0 worked for me.

I renamed my project and intellisense stopped working.
Use Command-Shift-Period to show hidden files in your project folder
Delete any VS related files/folders
Voila.

1 Like

Thanks a lot. This fixed my problem after trying many solutions for hours.


If you are on a Silicon M1 or M2 processor Mac Apple…
To use Visual Studio Code and to get intellisense with it, you gotta delete the VS Code package from your Package Manager in every project. Then you also need to update the Visual Studio (not Code) package in your project. Then you gotta go to Unity Settings and point your external tools code editor toward Visual Studio Code.
Seems weird to install the VS package and actually be using VS Code but that’s how Microsoft managed to make it work at the moment!