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

VSCode intellisense issues with 2020.1.0b1

Discussion in 'Entity Component System' started by TLRMatthew, Mar 16, 2020.

  1. TLRMatthew

    TLRMatthew

    Joined:
    Apr 10, 2019
    Posts:
    65
    I've updated to 2020.1.0b1 and updated all related packages, including Visual Studio Code Editor to 1.2.0. I'm now getting some weird intellisense issues which both seem related to UnityEngine.CoreModule:

    The first is
    Reference to type 'NativeArray<T>.ReadOnly' claims it is defined in 'UnityEngine.CoreModule', but it could not be found [Assembly-CSharp]
    - on any usage of NativeArray.Contains.

    The second is that there's no intellisense for any of the types/methods for the new Mesh API improvements introduced in 2020.1.0.

    Neither of these prevents the code from compiling correctly, it's just the code completion that's broken.

    Anyone else having this problem?
     
  2. BackgroundMover

    BackgroundMover

    Joined:
    May 9, 2015
    Posts:
    209
    The intellisense code completion, when it fails for me I exit Unity, delete the .csproj and .solution files from the project, restart Unity and let them re-generate. That fixes it for me, for Visual Studio (not VS code)
     
    TLRMatthew likes this.
  3. TLRMatthew

    TLRMatthew

    Joined:
    Apr 10, 2019
    Posts:
    65
    That has fixed it for me on VS Code too, thanks!