Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Error when opening scripts

Discussion in 'Editor & General Support' started by mrblepis, Sep 23, 2021.

  1. mrblepis

    mrblepis

    Joined:
    Sep 11, 2021
    Posts:
    1
    image_2021-09-23_181422.png

    When opening any script in Unity it throws me these two errors, and the intellisense is not working either.

    (I am using Visual Studio Code version 1.60.2)
     
    Last edited: Sep 23, 2021
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,514
    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.

    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