Search Unity

Intellisense Not Working with Visual Studio (Fix)

Discussion in 'Code Editors & IDEs' started by DavidG_Fenex, Feb 27, 2020.

  1. ScarabGameDev

    ScarabGameDev

    Joined:
    Apr 2, 2020
    Posts:
    6
    Finally a solution for this problem Ive been looking for ages now and had given up on it, thanks. Awesome
     
  2. HarveyDEV

    HarveyDEV

    Joined:
    Jun 26, 2019
    Posts:
    1
    A similar thing happened to me. Intellisense was working, but it underlined (with red) basically the whole file - it thought there were syntax errors. It was an easy fix: Edit/Preferences/click Regenerate project files button
     
  3. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,476
    Still experiencing problems...

    Unity and VS does not connect each well. This happens only at 2020.2.1f1 newest version.

    And in this Unity version, VS does not recognize NGUI classes, so spit errors and can't run the game, whileas this project does not have problem at Unity 2020.1.17f1

    Checked at package manager, VS code editor 1.2.3, VS editor 2.0.5, all newest.

    So I don't know how to resolve this.

    So I can't use 2020.2.1f1 well for now.
     
    AcTitan likes this.
  4. ignaciom01

    ignaciom01

    Joined:
    Jan 2, 2021
    Posts:
    4
    after dealing with this issue for months in different computers, im really not going to download any new unity versions or any program that is upgraded every year like maya, substance...
    i will stick with 2 years older versions or so, maybe issues like this are usually very easily solved, but one and another... it just takes much time nonsense.
     
  5. PugFoPrez

    PugFoPrez

    Joined:
    May 7, 2020
    Posts:
    2
    You are a hero mate. For such a confusing problem I'm surprised the solution was this easy.

    PS This works for Unity 2020.1.0f1 and VS 2019 16.8.3. I just ended up ticking all the boxes other than the unknown packages and it worked
     
  6. DallaiStudios

    DallaiStudios

    Joined:
    Feb 19, 2018
    Posts:
    3
    Just work! Tks!
     
  7. grepler

    grepler

    Joined:
    Dec 31, 2020
    Posts:
    1
    This worked perfect. Thanks for posting.
     
  8. Peally

    Peally

    Joined:
    Jun 20, 2019
    Posts:
    1
    Thanks so much for the fix - worked for me too (struggled with the 2019 LTS version but after upgrading to 2020 and selecting Visual Studio as the external editor from prefs, all then worked). Really appreciate it.
     
  9. YeswinKrishna

    YeswinKrishna

    Joined:
    Nov 21, 2020
    Posts:
    2
    Thanks a lot! It's perfectly working.
     
  10. GOLDSTANDARD42

    GOLDSTANDARD42

    Joined:
    Jan 15, 2021
    Posts:
    1
     
  11. yashucn92

    yashucn92

    Joined:
    Jan 8, 2021
    Posts:
    2
    Thank you. I tried many solutions from the web. nothing worked.. this solved my problem. !!!
     
  12. candritzky

    candritzky

    Joined:
    Jan 23, 2021
    Posts:
    3
    I already had Visual Studio 2019 (Community Edition) installed long before I installed Unity.
    The following worked for me:
    1. In Unity goto Edit - Preferences - External Tools.
    2. In "External Script Editor" select "Browse..."
    3. Select "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe" and click "Open".
    4. Now "Visual Studio 2019" is shown and selected in the "External Script Editor" dropdown.
    5. Now when I open a script from within Unity, Visual Studio 2019 is launched with a solution named after the Unity project.
    6. On the first attempt I got a message asking whether to install the .NET 4.7.1 SDK targeting pack or convert the project to one of the installed .NET SDK versions.
    7. Do not convert the project, instead install the .NET 4.7.1 SDK targeting pack.
    8. Done.:)
     
  13. TheXKing360

    TheXKing360

    Joined:
    Jan 27, 2021
    Posts:
    7
  14. JGaidzinski

    JGaidzinski

    Joined:
    Apr 26, 2017
    Posts:
    1
    I was facing this problem during the Global Game Jam, since yesterday and NOTHING I've tried worked for me... Thanks a lot, I REALLY would like to pay you a drink haha!
     
  15. SoftWillowProductions

    SoftWillowProductions

    Joined:
    Jan 10, 2021
    Posts:
    1
    you are a beautiful human being thank you so much
     
  16. Nastro

    Nastro

    Joined:
    Jan 18, 2021
    Posts:
    3
    This did not help me because all of these things were checked any looking for a solution with these setting enabled DO NOT USE "Open file by extension" instead change it to visual studio otherwise this will not work because if your like me it may use Notepad to open something because this is also a text editor/ coding application
     
  17. CristeaAdrian

    CristeaAdrian

    Joined:
    Mar 22, 2020
    Posts:
    1
    Thank you for sharing!
     
  18. cianoporcu

    cianoporcu

    Joined:
    Dec 31, 2020
    Posts:
    1



    a god among men
     
  19. Hardzsi

    Hardzsi

    Joined:
    Jan 30, 2021
    Posts:
    2
    Thank you, works perfectly now!
     
  20. geoffhin

    geoffhin

    Joined:
    Feb 6, 2021
    Posts:
    1
    Worked perfectly! Thanks!
     
  21. DiShaloDi

    DiShaloDi

    Joined:
    Feb 3, 2021
    Posts:
    1
    LIFESAVER
     
  22. slalithp

    slalithp

    Joined:
    Feb 28, 2019
    Posts:
    5

    Thank you so much, It worked Perfectly.
     
  23. Alex_May

    Alex_May

    Joined:
    Dec 29, 2013
    Posts:
    198
    I am using:
    * Visual Studio for Mac Community 8.8.7 build 18
    * CSharp language binding 8.8.7
    * Visual Studio For Mac Tools for Unity version 2.8.4.0
    * Unity 2020.1.14f1
    * Visual Studio Editor unity package version 2.0.5

    I have regenerated all project files as described in the OP, and still do not have intellisense. Go to definition doesn't even work.

    The identifier colours are wrong too - the first character of function names is often a different colour to the rest of the function name.
    Screenshot 2021-02-07 at 20.59.01.png

    Here is the log:
    INFO [2021-02-07 20:53:56Z]: Starting Visual Studio 2019 for Mac 8.8.7 (build 18)
    INFO [2021-02-07 20:53:56Z]: Build Information
    Release ID: 808070018
    Git revision: 0f6def3c0ff5f9cee230e65718561cb41c8eedc0
    Build date: 2021-01-29 08:24:09-05
    Build branch: release-8.8
    Xamarin extensions: 0f6def3c0ff5f9cee230e65718561cb41c8eedc0
    INFO [2021-02-07 20:53:56Z]: Running on Mono 6.12.0.113 (2020-02/4fdfb5b1fd5) (64-bit)
    INFO [2021-02-07 20:53:56Z]: 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.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35`.
    INFO [2021-02-07 20:53:57Z]: Loading modules from /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/lib/gtk-2.0
    INFO [2021-02-07 20:53:57Z]: GTK: Using gtkrc from /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/gtkrc.mac-dark
    (VisualStudio:56980): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
    ATK-Cocoa started (Xcode build)
    ATK-Cocoa Module initialized
    INFO [2021-02-07 20:53:59Z]: Using GTK+ 2.24.23
    INFO [2021-02-07 20:53:59Z]: Running 76f4e4e9-2e37-4627-a3e1-8864301ab283
    INFO [2021-02-07 20:53:59Z]: Initializing ms error reporting app: com.microsoft.visual-studio, Visual Studio, 8.8.7.18
    INFO [2021-02-07 20:53:59Z]: : /Applications/Visual Studio.app
    INFO [2021-02-07 20:53:59Z]: Using MERP bundle: /Applications/Visual Studio.app/Contents/SharedSupport/Microsoft Error Reporting.app
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.Core
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.Ide
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.MacPlatform
    INFO [2021-02-07 20:54:01Z]: Initializing Runtime Mono 6.12.0.113
    INFO [2021-02-07 20:54:01Z]: [0 (+0)] Finding custom frameworks
    INFO [2021-02-07 20:54:01Z]: Registering feature IdeBuildOutputView (Enable structured build output UI = False)
    INFO [2021-02-07 20:54:01Z]: Registering feature RUNTIME_SELECTOR (Enable runtime selection on UI = False)
    INFO [2021-02-07 20:54:01Z]: Registering feature AlwaysUseLegacyEditor (Enable old editor = False)
    INFO [2021-02-07 20:54:01Z]: Registering feature VSCODE_DEBUG_PROTOCOL_LOGGING (Enable VSCode Debug Adapter Protocol Logging = False)
    INFO [2021-02-07 20:54:01Z]: Registering feature VBNetDotnetCoreTemplates (Enable VB.NET support for .NET Core = False)
    INFO [2021-02-07 20:54:01Z]: Registering feature JAVASCRIPT_DEBUGGER_VERBOSE_LOGGING (Enable verbose logging for the JavaScript debugger = False)
    INFO [2021-02-07 20:54:01Z]: Registering feature ReliabilityDiagnostics (Enable additional reliability diagnostics options = False)
    INFO [2021-02-07 20:54:01Z]: Registering feature AspNetCoreGRPCTemplates (Enable gRPC template = True)
    INFO [2021-02-07 20:54:01Z]: Registering feature EnableVersionControlTracing (Enable VersionControl tracing output = False)
    INFO [2021-02-07 20:54:01Z]: Creating service: MonoDevelop.Components.Commands.CommandManager
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.ConnectedServices
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.DesignerSupport
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.TextEditor
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.RegexToolkit
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.Debugger
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.SourceEditor2
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.Refactoring
    INFO [2021-02-07 20:54:01Z]: [92 (+92)] Creating frameworks
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.PackageManagement
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.UnitTesting
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.Debugger.VsCodeDebugProtocol
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.CSharpBinding
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.DotNetCore
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.PerformanceDiagnostics
    INFO [2021-02-07 20:54:01Z]: [280 (+188)] Initializing frameworks
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.Xamarin.Ide
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.Debugger.Soft
    INFO [2021-02-07 20:54:01Z]: [301 (+21)] END: Target runtimes loaded
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: MonoDevelop.Unity
    INFO [2021-02-07 20:54:01Z]: Add-in loaded: Microsoft.JavaScript.Debugger
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: MonoDevelop.AspNetCore
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: Xamarin.Designer
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: Xamarin.Android.Deploy
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: MonoDevelop.AssemblyBrowser
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: MonoDevelop.TextTemplating
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: MonoDevelop.Xml
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: MonoDevelop.AspNet
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: MonoDevelop.VersionControl
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: MonoDevelop.VersionControl.Git
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: MonoDevelop.WebReferences
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: MonoDevelop.GtkCore
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: MonoDevelop.TextEditor.Cocoa
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: Xamarin.Terminal.Xamarin.Terminal
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: VisualFSharp
    INFO [2021-02-07 20:54:02Z]: Add-in loaded: MonoDevelop.Packaging
    INFO [2021-02-07 20:54:02Z]: Service MonoDevelop.Components.Commands.CommandManager initialized in 427 ms.
    INFO [2021-02-07 20:54:02Z]: Creating service: MonoDevelop.Ide.DesktopService
    INFO [2021-02-07 20:54:02Z]: Using Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
    WARNING [2021-02-07 20:54:02Z]: Unknown startup reason, assuming Normal
    INFO [2021-02-07 20:54:02Z]: Service MonoDevelop.Ide.DesktopService initialized in 56 ms.
    WARNING [2021-02-07 20:54:02Z]: LaunchReason is already set to Normal.
    Starting Visual Studio
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.Fonts.FontService
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.Fonts.FontService initialized in 2 ms.
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.Tasks.TaskService
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.Tasks.TaskService initialized in 0 ms.
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.ProjectOperations
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.RootWorkspace
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.RootWorkspace initialized in 0 ms.
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.TextEditing.TextEditorService
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.TextEditing.TextEditorService initialized in 0 ms.
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.Navigation.NavigationHistoryService
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.Navigation.NavigationHistoryService initialized in 0 ms.
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.Gui.DisplayBindingService
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.Gui.DisplayBindingService initialized in 0 ms.
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.HelpOperations
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.HelpOperations initialized in 0 ms.
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Projects.HelpService
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Projects.HelpService initialized in 0 ms.
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.Gui.Documents.DocumentManager
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.Gui.Documents.DocumentManager initialized in 0 ms.
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.Gui.ProgressMonitorManager
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.Gui.ProgressMonitorManager initialized in 0 ms.
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.ProjectOperations initialized in 51 ms.
    Loading Workbench
    Initializing Main Window
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.Gui.Documents.DocumentModelRegistry
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.Gui.Documents.DocumentModelRegistry initialized in 0 ms.
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.Gui.Documents.DocumentControllerService
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.Gui.Documents.DocumentControllerService initialized in 0 ms.
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.Gui.Shell.IShell
    INFO [2021-02-07 20:54:03Z]: Creating DefaultWorkbench
    INFO [2021-02-07 20:54:03Z]: Service MonoDevelop.Ide.Gui.Shell.IShell initialized in 74 ms.
    INFO [2021-02-07 20:54:03Z]: Creating service: MonoDevelop.Ide.TypeSystem.TypeSystemService
    INFO [2021-02-07 20:54:04Z]: Creating service: MonoDevelop.Ide.Composition.CompositionManager
    INFO [2021-02-07 20:54:04Z]: Add-in loaded: Microsoft.VisualStudio.Mac.RazorAddin
    INFO [2021-02-07 20:54:04Z]: Creating MEF composition from runtime
    INFO [2021-02-07 20:54:04Z]: Add-in loaded: MonoDevelop.VBBinding
    INFO [2021-02-07 20:54:05Z]: Add-in loaded: MonoDevelop.VersionControl.Subversion
    INFO [2021-02-07 20:54:05Z]: Add-in loaded: MonoDevelop.VersionControl.Subversion.Unix
    INFO [2021-02-07 20:54:05Z]: Add-in loaded: Xamarin.TestCloud.NUnit
    INFO [2021-02-07 20:54:05Z]: Add-in loaded: MonoDevelop.UnitTesting.NUnit
    INFO [2021-02-07 20:54:06Z]: Creating service: Xamarin.Ide.PushNotifications.PushNotificationsService
    INFO [2021-02-07 20:54:06Z]: Startup section mainInitialization 367 ms
    INFO [2021-02-07 20:54:06Z]: Startup section PlatformInitialization 64 ms
    INFO [2021-02-07 20:54:06Z]: Startup section GettextInitialization 11 ms
    INFO [2021-02-07 20:54:06Z]: Startup section PreGtkInitialization 359 ms
    INFO [2021-02-07 20:54:06Z]: Startup section XamarinMacInitialization 816 ms
    INFO [2021-02-07 20:54:06Z]: Startup section ToolkitInitialization 37 ms
    INFO [2021-02-07 20:54:06Z]: Startup section XwtInitialization 1090 ms
    INFO [2021-02-07 20:54:06Z]: Startup section CustomizerToolkitInitialization 43 ms
    INFO [2021-02-07 20:54:06Z]: Startup section IdeCustomizerInitialization 210 ms
    INFO [2021-02-07 20:54:06Z]: Startup section DispatchInitialization 5 ms
    INFO [2021-02-07 20:54:06Z]: Startup section RoslynInitialization 19 ms
    INFO [2021-02-07 20:54:06Z]: Startup section RuntimeInitialization 2324 ms
    INFO [2021-02-07 20:54:06Z]: Startup section ThemeInitialized 3 ms
    INFO [2021-02-07 20:54:06Z]: Startup section PlatformServicesInitialization 989 ms
    INFO [2021-02-07 20:54:06Z]: Startup section FileWatcherInitialization 1 ms
    INFO [2021-02-07 20:54:06Z]: Startup section ImageInitialization 0 ms
    INFO [2021-02-07 20:54:06Z]: Startup section AppInitialization 1745 ms
    INFO [2021-02-07 20:54:06Z]: Startup section BasicInitializationCompleted 4 ms
    INFO [2021-02-07 20:54:06Z]: Startup section SocketInitialization 0 ms
    INFO [2021-02-07 20:54:06Z]: Startup section WindowOpened 0 ms
    INFO [2021-02-07 20:54:06Z]: Startup section PumpEventLoop 1827 ms
    INFO [2021-02-07 20:54:06Z]: Startup sections 9923 ms
    INFO [2021-02-07 20:54:07Z]: Service Xamarin.Ide.PushNotifications.PushNotificationsService initialized in 1746 ms.
    INFO [2021-02-07 20:54:10Z]: MEF composition error: Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript.VSTypeScriptLanguageDebugInfoService.ctor(implementation): expected exactly 1 export matching constraints:
    Contract name: Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript.Api.IVSTypeScriptLanguageDebugInfoServiceImplementation
    TypeIdentityName: Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript.Api.IVSTypeScriptLanguageDebugInfoServiceImplementation
    but found 0.
    INFO [2021-02-07 20:54:10Z]: MEF composition error: Microsoft.CodeAnalysis.ExternalAccess.Pythia.PythiaSignatureHelpProvider.ctor(implementation): expected exactly 1 export matching constraints:
    Contract name: Microsoft.CodeAnalysis.ExternalAccess.Pythia.Api.IPythiaSignatureHelpProviderImplementation
    TypeIdentityName: Microsoft.CodeAnalysis.ExternalAccess.Pythia.Api.IPythiaSignatureHelpProviderImplementation
    but found 0.
    INFO [2021-02-07 20:54:10Z]: MEF composition error: Microsoft.CodeAnalysis.Editor.Implementation.Peek.PeekableItemSourceProvider.ctor(peekResultFactory): expected exactly 1 export matching constraints:
    Contract name: Microsoft.VisualStudio.Language.Intellisense.IPeekResultFactory
    TypeIdentityName: Microsoft.VisualStudio.Language.Intellisense.IPeekResultFactory
    but found 0.
    INFO [2021-02-07 20:54:10Z]: MEF composition error: Microsoft.CodeAnalysis.ExternalAccess.FSharp.Internal.Editor.FSharpNavigationBarItemService.ctor(service): expected exactly 1 export matching constraints:
    Contract name: Microsoft.CodeAnalysis.ExternalAccess.FSharp.Editor.IFSharpNavigationBarItemService
    TypeIdentityName: Microsoft.CodeAnalysis.ExternalAccess.FSharp.Editor.IFSharpNavigationBarItemService
    but found 0.
    INFO [2021-02-07 20:54:10Z]: MEF composition error: Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript.VSTypeScriptBreakpointResolutionService.ctor(implementation): expected exactly 1 export matching constraints:
    Contract name: Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript.Api.IVSTypeScriptBreakpointResolutionServiceImplementation
    TypeIdentityName: Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript.Api.IVSTypeScriptBreakpointResolutionServiceImplementation
    but found 0.
    INFO [2021-02-07 20:54:10Z]: MEF composition error: Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript.VSTypeScriptEditorInlineRenameService.ctor(service): expected exactly 1 export matching constraints:
    Contract name: Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript.Api.IVSTypeScriptEditorInlineRenameService
    TypeIdentityName: Microsoft.CodeAnalysis.ExternalAccess.VSTypeScript.Api.IVSTypeScriptEditorInlineRenameService
    but found 0.
    INFO [2021-02-07 20:54:10Z]: MEF composition error: Microsoft.CodeAnalysis.ExternalAccess.FSharp.Internal.Editor.Implementation.Debugging.FSharpBreakpointResolutionService.ctor(service): expected exactly 1 export matching constraints:
    Contract name: Microsoft.CodeAnalysis.ExternalAccess.FSharp.Editor.Implementation.Debugging.IFSharpBreakpointResolutionService
    TypeIdentityName: Microsoft.CodeAnalysis.ExternalAccess.FSharp.Editor.Implementation.Debugging.IFSharpBreakpointResolutionService
    but found 0.
    INFO [2021-02-07 20:54:10Z]: Service MonoDevelop.Ide.Composition.CompositionManager initialized in 6197 ms.
    INFO [2021-02-07 20:54:10Z]: Service MonoDevelop.Ide.TypeSystem.TypeSystemService initialized in 6502 ms.
    INFO [2021-02-07 20:54:10Z]: Finished writing MEF cache files
    INFO [2021-02-07 20:54:11Z]: GetCurrentSelectedSolutionPath: received AppleEvent <NSAppleEventDescriptor: 'VSWS'\'CSSP'{ }>
    INFO [2021-02-07 20:54:19Z]: Git command line client detected: git version 2.20.1 (Apple Git-117)
    [UnityProcessProbe] found Unity Editor process bundle=[com.unity3d.UnityEditor5.x], title=[Metaforest - starboretum - PC, Mac & Linux Standalone - Unity 2020.1.14f1 [PREVIEW PACKAGES IN USE] <Metal>], processId=[47869], port=[56869]
    WARNING [2021-02-07 20:54:19Z]: Subversion addin could not load libsvn_client, so it will be disabled.
    INFO [2021-02-07 20:54:21Z]: CodeTemplateService: No user templates, reading default templates.
    INFO [2021-02-07 20:54:22Z]: Mapped Pango font description 'Menlo 12' to NSFont '"Menlo-Regular 12.00 pt. P [] (0x600002fe5da0) fobj=0x7f90a9005540, spc=7.22"'
     
    Last edited: Feb 7, 2021
  24. abdziabdziuba

    abdziabdziuba

    Joined:
    Feb 8, 2021
    Posts:
    2
    I dont see the Debugger for Unity by Unity Technologies in the marketplace :(
    I see the other extensions, but not this one.
     
  25. John_MSFT

    John_MSFT

    Microsoft Employee

    Joined:
    Feb 21, 2018
    Posts:
    118
    Please report this using the Help > Report a Problem feature in Visual Studio for Mac. This deff looks like some kind of bug to me - especially with the first character not colorizing correctly. Thanks!
     
    Alex_May likes this.
  26. K-Galindo

    K-Galindo

    Joined:
    Feb 10, 2021
    Posts:
    1
    Thank you!!!! Many hours trying to solve this.
     
  27. DavidSJones

    DavidSJones

    Joined:
    Jul 31, 2017
    Posts:
    2
    Thank you.
     
  28. hrnanlylmaz

    hrnanlylmaz

    Joined:
    Feb 12, 2021
    Posts:
    1
    if problem is still going on, maybe this video can help you guys:

     
  29. mikewar123

    mikewar123

    Joined:
    Jul 4, 2020
    Posts:
    2
    Thank you, I had to change the setting from "open by file extension" to visual studio 2019 and then I saw the options to check everything and regenerate. Now it works!
     
  30. dorapapa

    dorapapa

    Joined:
    Feb 13, 2021
    Posts:
    1
    thank you very much!
     
  31. OsmanNavdar

    OsmanNavdar

    Joined:
    Feb 16, 2021
    Posts:
    1
    thank you so much
     
  32. JonathanCel

    JonathanCel

    Joined:
    Feb 17, 2021
    Posts:
    22
    Mac: Catalina, Unity 2019.4, Visual Studio For Mac (Jan 2021), VS Code (recent)
    Win: Win10, everything since Unity 5, Visual Studio, VSCode

    Every few months VS under windows just flakes out and I have to reinstall to get intellisense back.
    This has happened for years, I get it, that probably won't ever be fixed, it's part & parcel of using Visual Studio.
    I get a couple of months of wear before it breaks. It's better than nothing.

    VSCode under Windows or Mac breaks more frequently. Omnisharp, is fantastic - I love what those guys are doing, but it does break if you look at it funny. And so... no joy. It's never the same error either, and so despite loving both VSCode and Omnisharp, it's not reliable. It's offered so many startup errors that I don't know where to begin listing them.

    On the mac though, one day intellisense (VSCode or VS4M) will be working fine
    I'll leave it open over night
    And wake up and it's died.
    Or it's working fine, and.... add one script to the project.... ded

    No amount of adding/removing unity packages helps
    No amount of deleting .csproj files and regenerating different combinations of them helps
    Opening by extension doesn't help
    Restaring the machine did nothing
    Reinstalling... sometimes works

    It's only Thursday and it's broken 3 times this week.
    This time it's not recovering though.
    Sorry to be so negative, but I'm beyond sick of having to try new snake oil solutions to this every couple of weeks.
    Even just opening the preferences panel and hitting regenerate every few hours is getting tiresome.

    @John_MSFT
    Could one party (MS or Unity) please just take a proper look at this and find a more permanent, reliable solution.
    For every person that's +1'd this thread, 10 probably read it, and there are tons more threads.

    Thanks,
    J

    Edit: Lol, right on cue
    So this time a reinstall didn't work but going into the project root and getting rid of
    *.csproj
    *.sln
    *.user
    and the folders
    .vs
    .vscode
    .idea

    Does appear to have helped though, so I'll keep an eye out.
     
    Last edited: Feb 18, 2021
    Alex_May likes this.
  33. John_MSFT

    John_MSFT

    Microsoft Employee

    Joined:
    Feb 21, 2018
    Posts:
    118
    @JonathanCel

    Thanks for sharing this. I am sorry for the issues, and I do understand the impact to this. We want to fix all of these issues and we've been fixing the issues that cause this as quickly as we can identify them. Unfortunately, there have been multiple reasons for these types of symptoms and they are non-trivial to reproduce and verify a fix.

    It will help us if you can share broken projects / files when the issue is happening. If you're willing to share that, please message me directly and I can work with you on the logistics of that.

    For VS and VS for Mac, the best way to track this would be to use the Help > Submit Feedback > Report a Problem menu to document the bug which also automatically includes version information and logs.
     
  34. JonathanCel

    JonathanCel

    Joined:
    Feb 17, 2021
    Posts:
    22
    Hi John, thanks for getting back.
    I think this is really part of the trouble with it; as project size and complexity increases, so to does your chance of issues.
    I've never been able to replicate this behaviour on a small, fresh projects which I'm able to share (legally or in terms of raw size). The issues just kinda sneak up.

    Going after the .vs folder seemed to work for VS4Mac at least; so fingers crossed I can work something out next time.
     
  35. Schwambosan

    Schwambosan

    Joined:
    Feb 20, 2021
    Posts:
    1
    Awesome fixed my problem. Thank you man!
     
  36. dn_01

    dn_01

    Joined:
    Feb 22, 2021
    Posts:
    1
    Oh my god yes I've been looking for a solution for so long!!!
     
  37. PGoncalo21

    PGoncalo21

    Joined:
    Feb 27, 2021
    Posts:
    1
    Problem solved, thank you for the help.
     
  38. ijohnpaul23

    ijohnpaul23

    Joined:
    Sep 30, 2020
    Posts:
    1
    Thank you so much!
     
  39. Nazgu

    Nazgu

    Joined:
    Apr 20, 2020
    Posts:
    1
    Thx, workis for me too!!!
     
  40. JonathanCel

    JonathanCel

    Joined:
    Feb 17, 2021
    Posts:
    22
    Probably worth following up on this as I had a productive chat with John the other day, and it came down to:
    - don't use symlinks (xcode won't mind, but VS4Mac stumbles a bit atm)
    - launch via "Open C# project" and not via compoenent headers in the inspector.

    Sounds like a fix is in the works, but in the mean time, delete the .vs folder to restore.
     
    John_MSFT likes this.
  41. John_MSFT

    John_MSFT

    Microsoft Employee

    Joined:
    Feb 21, 2018
    Posts:
    118
  42. Freddykong763

    Freddykong763

    Joined:
    Mar 4, 2021
    Posts:
    1
    THIS
     
  43. OogaJiggaWooga

    OogaJiggaWooga

    Joined:
    Mar 5, 2021
    Posts:
    1
    I'd love for this to be my solution too, but none of these are showing up in the Visual Studio Marketplace for me =(

    EDIT: found this, solved all my problems:
     
    Last edited: Mar 5, 2021
  44. John_MSFT

    John_MSFT

    Microsoft Employee

    Joined:
    Feb 21, 2018
    Posts:
    118
    @OogaJiggaWooga

    Which version of Visual Studio do you have installed and how did you install it?

    I'm asking because I would have expected the Tools for Unity to be installed automatically for you, so if there is a bug I want to make sure we can investigate. Thanks for your help!
     
  45. mfatihbarut

    mfatihbarut

    Joined:
    Apr 11, 2018
    Posts:
    1,059
    thanks great!
     
  46. regreddit

    regreddit

    Joined:
    Mar 16, 2021
    Posts:
    1
    Thank you so much. Great detail and explanation. Cheers
     
  47. abaskhademi2

    abaskhademi2

    Joined:
    Feb 6, 2021
    Posts:
    1
    bro .thank you so much.
     
  48. SuatOzcan

    SuatOzcan

    Joined:
    Sep 9, 2018
    Posts:
    2
    You are the best!
     
  49. ducktrasher

    ducktrasher

    Joined:
    Mar 5, 2021
    Posts:
    1
    Thank you soooo much, this actually worked!
     
  50. VRKid

    VRKid

    Joined:
    Jul 1, 2016
    Posts:
    42
    my god thank you so much!