Search Unity

Visual Studio for Mac - Freeze/Lag on Save

Discussion in 'Code Editors & IDEs' started by Arthur-LVGameDev, Mar 22, 2019.

  1. Arthur-LVGameDev

    Arthur-LVGameDev

    Joined:
    Mar 14, 2016
    Posts:
    228
    Hi,

    Unlike others here, I actually love VS for Mac -- it's essentially just MonoDevelop but it's getting updates & doesn't crash, which were really my only complaints w/ MonoDevelop. Unfortunately, I have one major issue / complaint -- and I'm hoping someone might be able to help.

    Everything is fine when I first open Unity & have VS for Mac running. Double-clicking in console opens in VS, etc -- all works great. Saving files works great, is snappy / immediate.

    A few minutes later, all the sudden any "Save" command in VS results in the macOS "beachball" appearing for between 3 to 8 seconds. This is on the latest non-preview "VS for Mac" edition, installed via Unity Hub and continually updated through the native VS application update prompts.

    Today I downloaded the '2019 Preview' to check it out, and really I was just hoping the CMD+S issue might have been resolved -- it's so severely frustrating & draining. :( I was in laughable disbelief when I found that the issue persists -- and it's actually worse in the preview edition, and I'm quickly closing in on around 10+ seconds of beachball-induced rage every time I run a CMD+S within VS.

    Perhaps obviously, I run CMD+S / save commands quite a bit, so I feel like I'm aging before my very keystrokes even hit my beloved keyboard.

    Anyone have any ideas, or fixes, or workarounds for this? I'd be most grateful if so! =D
     
  2. sailro

    sailro

    Microsoft

    Joined:
    Jul 30, 2014
    Posts:
    167
    Hello @Arthur-LVGameDev, could you try to disable "Refresh Unity's AssetDatabase on save", in Options\Tools for Unity to see if it impacts your issue?

    Thank you and best regards
    Sebastien Lebreton [MSFT]
     
  3. Arthur-LVGameDev

    Arthur-LVGameDev

    Joined:
    Mar 14, 2016
    Posts:
    228
    Ah sorry, didn't see your response here until today.

    I have that option disabled already, in an effort to stop the issue from happening. It unfortunately does not seem to have any impact on the issue at all.

    Per your request over on the VS bug reporter tool, and sending over the "Debug UI Hangs" output via email too. :)

    Ty!
     
  4. sailro

    sailro

    Microsoft

    Joined:
    Jul 30, 2014
    Posts:
    167
    Hello,

    A fix for this issue has been internally implemented and is being prepared for release. We'll update you once it becomes available for download.

    Regards
    Sebastien Lebreton
     
  5. sailro

    sailro

    Microsoft

    Joined:
    Jul 30, 2014
    Posts:
    167
  6. calvin_unity882

    calvin_unity882

    Joined:
    May 29, 2019
    Posts:
    1
    I'm still getting this issue using the 2.0.3.0 version of the MonoDevelop Unity plugin. I had to revert back to this linked version.

     
  7. saud_ahmed020

    saud_ahmed020

    Joined:
    Nov 27, 2014
    Posts:
    2
    Hi @sailro I have VS 8.0.8 build 2 version. On every save (Command+S) visual studio stuck for 3-5 seconds even when I write/edit any single line of code. This issue wasting my most of the time. Kindly resolve my problem.
    Thanks
     
  8. sailro

    sailro

    Microsoft

    Joined:
    Jul 30, 2014
    Posts:
    167
    Hello, the fix is included with VS 8.1, that should be available soon
     
    Last edited: Jun 3, 2019
    saud_ahmed020 likes this.
  9. carldevelopsforcoffee

    carldevelopsforcoffee

    Joined:
    Sep 20, 2017
    Posts:
    19
    Still lags a lot on VS 8.1
    The lag doesn't happen on Xamarin Studio or VSCode
     
  10. Fillmore

    Fillmore

    Joined:
    Feb 14, 2018
    Posts:
    11
    Still happening on VS for Mac 8.1.2 (build 2) with Unity 2018.4.2f1

    The problem is that Unity never used to refresh and compile scripts until you gave the program focus. It now refreshes in the background while you're on VS.
     
  11. nikowiss

    nikowiss

    Joined:
    Jan 13, 2017
    Posts:
    1
    Seems to be solved with VS for Mac 8.1.3 (build 19)
     
  12. Trungdv

    Trungdv

    Joined:
    Dec 1, 2012
    Posts:
    22
    This bug made me crazy until now, but today after I updated Visual Studio for Mac 8.2.2 (build 21), it has been solved. Confirmed on Unity 2018.4.2f1
     
  13. kashif789us

    kashif789us

    Joined:
    May 2, 2013
    Posts:
    163
    Facing same problem on Visual Studio 8.2.5 (build 5) and Unity 2019.2.3f1. Even uninstalled and installed visual studio again but still the same problem.
     
  14. gideonnimako

    gideonnimako

    Joined:
    Sep 8, 2019
    Posts:
    1
    I am have the same issue on Visual Studio 8.2.5. Really slowing down progress on my development projects. Anyone have any ideas or workaround, please help!!