Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Visual Studio crashes when opened

Discussion in 'Scripting' started by ARLC-753, May 15, 2022.

  1. ARLC-753

    ARLC-753

    Joined:
    Feb 2, 2021
    Posts:
    9
    For reason now every time I open ANY script from my Unity project, goes to Visual Studio as expected, and then after a few seconds it crashes, it says that "Visual Studio is not repsonding" on top of the screen and then it closes out.

    I really don't know why, literally, my project has been going for various months and all was working good, this never happend until now. When testing my game inside Unity all is good, it's only when I open a script in Visual Studio to modify something.

    What can I do? Has anyone has experienced this before?
     
  2. SourGummi

    SourGummi

    Joined:
    Nov 14, 2021
    Posts:
    96
    did you delete any extensions or folders related to Unity's bridge with VS?
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,954
    Visual Studio crashes when opened

    I actually have the above on a teeshirt.

    This may help you with intellisense and possibly other Visual Studio integration problems:

    Sometimes the fix is as simple as doing Assets -> Open C# Project from Unity. Other times it requires more.

    Other times it requires you also nuke the userprefs and .vsconfig and other crufty low-value high-hassle files that Visual Studio tends to slowly damage over time, then try the above trick.

    Barring all that, move on to other ideas:

    https://forum.unity.com/threads/intellisense-not-working-with-visual-studio-fix.836599/

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

    Also, this: https://forum.unity.com/threads/no-suggestions-in-vscode.955197/#post-6227874
     
  4. ARLC-753

    ARLC-753

    Joined:
    Feb 2, 2021
    Posts:
    9
    I don't think so, literally, one day it was all god, then I took a week of rest, and then It didn't work, could you tell me which files?
     
  5. ARLC-753

    ARLC-753

    Joined:
    Feb 2, 2021
    Posts:
    9
    Ok I will look into it and hopefully it works, let me reply back once I do, thanks
     
  6. SourGummi

    SourGummi

    Joined:
    Nov 14, 2021
    Posts:
    96
    go to "Tools" in VS, then uninstall Games With Unity or whatever its called and re-install it, itll clean up your current. before you reinstall delete the $TEMP$ folder and restart your pc. to clear the past versions.
     
  7. ARLC-753

    ARLC-753

    Joined:
    Feb 2, 2021
    Posts:
    9
    Alright, so I did reinstall everything, and updated it in package manager (indeed it needed an update), but still, only difference is that this time it survided a few seconds longer before crashing.
     
  8. ARLC-753

    ARLC-753

    Joined:
    Feb 2, 2021
    Posts:
    9
    Where is this folder exactly?
     
  9. stjernerlever

    stjernerlever

    Joined:
    Oct 25, 2015
    Posts:
    10
    Ever found a solution to this? I have the same problem, unrelated to Unity.