Search Unity

Intellisense breaks in VSCode

Discussion in 'Testing & Automation' started by fendercodes, Aug 2, 2020.

  1. fendercodes

    fendercodes

    Joined:
    Feb 4, 2019
    Posts:
    192
    I've never had a problem with Intellisense in VSCode before, but I keep getting errors when trying to use any scripts that comes within the Unity Test Framework. These errors only appear in the IDE and prevent my Intellisense from working, but the scripts compile fine in Unity.

    I'm using the C# extension from Microsoft (powered by OmniSharp) and every other script in my project works fine.

    The type or namespace name 'UnityTestAttribute' could not be found (are you missing a using directive or an assembly reference?) [Opsive.UltimateCharacterController, Assembly-CSharp, InControl, UIEffect, Assembly-CSharp-firstpass, AstarPathfindingProject, DissonanceVoip, PhotonBolt, PhotonRealtime, Opsive.UltimateCharacterController.Demo, InControl.Examples, Opsive.Shared, UIEffect_Demo, PhotonWebSocket]


    The type or namespace name 'NUnit' could not be found (are you missing a using directive or an assembly reference?) [Opsive.UltimateCharacterController, Assembly-CSharp, InControl, InControl, InControl, InControl, InControl, InControl, InControl, InControl, InControl, InControl, InControl, InControl, UIEffect, UIEffect, UIEffect, UIEffect, UIEffect, UIEffect, UIEffect, UIEffect, UIEffect, UIEffect, UIEffect, UIEffect, Assembly-CSharp-firstpass, Assembly-CSharp-firstpass, Assembly-CSharp-firstpass, Assembly-CSharp-firstpass, Assembly-CSharp-firstpass, Assembly-CSharp-firstpass, Assembly-CSharp-firstpass, Assembly-CSharp-firstpass, Assembly-CSharp-firstpass, Assembly-CSharp-firstpass, Assembly-CSharp-firstpass, Assembly-CSharp-firstpass, AstarPathfindingProject, AstarPathfindingProject, AstarPathfindingProject, AstarPathfindingProject, AstarPathfindingProject, AstarPathfindingProject, AstarPathfindingProject, AstarPathfindingProject, AstarPathfindingProject, AstarPathfindingProject, AstarPathfindingProject, AstarPathfindingProject, DissonanceVoip, DissonanceVoip, DissonanceVoip, DissonanceVoip, DissonanceVoip, DissonanceVoip, DissonanceVoip, DissonanceVoip, DissonanceVoip, DissonanceVoip, DissonanceVoip, DissonanceVoip, PhotonBolt, PhotonBolt, PhotonBolt, PhotonBolt, PhotonBolt, PhotonBolt, PhotonBolt, PhotonBolt, PhotonBolt, PhotonBolt, PhotonBolt, PhotonBolt, PhotonRealtime, PhotonRealtime, PhotonRealtime, PhotonRealtime, PhotonRealtime, PhotonRealtime, PhotonRealtime, PhotonRealtime, PhotonRealtime, PhotonRealtime, PhotonRealtime, PhotonRealtime, Opsive.UltimateCharacterController.Demo, Opsive.UltimateCharacterController.Demo, Opsive.UltimateCharacterController.Demo, Opsive.UltimateCharacterController.Demo, Opsive.UltimateCharacterController.Demo, Opsive.UltimateCharacterController.Demo, Opsive.UltimateCharacterController.Demo, Opsive.UltimateCharacterController.Demo, Opsive.UltimateCharacterController.Demo, Opsive.UltimateCharacterController.Demo, Opsive.UltimateCharacterController.Demo, Opsive.UltimateCharacterController.Demo, InControl.Examples, InControl.Examples, InControl.Examples, InControl.Examples, InControl.Examples, InControl.Examples, InControl.Examples, InControl.Examples, InControl.Examples, InControl.Examples, InControl.Examples, InControl.Examples, Opsive.Shared, Opsive.Shared, Opsive.Shared, Opsive.Shared, Opsive.Shared, Opsive.Shared, Opsive.Shared, Opsive.Shared, Opsive.Shared, Opsive.Shared, Opsive.Shared, Opsive.Shared, UIEffect_Demo, PhotonWebSocket]
     
  2. fendercodes

    fendercodes

    Joined:
    Feb 4, 2019
    Posts:
    192
    I was able to fix this by going to Edit -> Preferences -> External Tools -> Regenerate project files
     
    Kearney444 likes this.
  3. Kearney444

    Kearney444

    Joined:
    Jan 24, 2014
    Posts:
    1
    Thanks!! Took me a while to find this