Search Unity

Question Unity.Entities not visible in VSCode (ECSSamples)

Discussion in 'Entity Component System' started by illinar, May 9, 2020.

  1. illinar

    illinar

    Joined:
    Apr 6, 2011
    Posts:
    863
    Hi. I really need help. What am I missing if my VSCode doesn't see Unity.Entities package in ECSSamples project, and my own projects? I can see other packages in Unity. but not Entities.

    My windows was reinstalled recently and since then I haven't been using Unity much and haven't been working with Entities. So I assume I might be missing some sdk.

    Output:

    Code (CSharp):
    1. [warn]: OmniSharp.MSBuild.ProjectLoader
    2.         The referenced project 'Unity.VSCode.Editor.csproj' does not exist.
    3. [warn]: OmniSharp.MSBuild.ProjectLoader
    4.         The referenced project 'Unity.TextMeshPro.Editor.csproj' does not exist.
    5. [warn]: OmniSharp.MSBuild.ProjectLoader
    6.         The referenced project 'UnityEngine.UI.csproj' does not exist.
    7. [warn]: OmniSharp.MSBuild.ProjectLoader
    8.         The referenced project 'Unity.Timeline.csproj' does not exist.
    9. [warn]: OmniSharp.MSBuild.ProjectLoader
    10.         The referenced project 'Unity.CollabProxy.Editor.csproj' does not exist.
    11. [warn]: OmniSharp.MSBuild.ProjectLoader
    12.         The referenced project 'Unity.Rider.Editor.csproj' does not exist.
    13. [warn]: OmniSharp.MSBuild.ProjectLoader
    14.         The referenced project 'Unity.2D.Sprite.Editor.csproj' does not exist.
    15. [warn]: OmniSharp.MSBuild.ProjectLoader
    16.         The referenced project 'Unity.2D.Tilemap.Editor.csproj' does not exist.
    17. [warn]: OmniSharp.MSBuild.ProjectLoader
    18.         The referenced project 'Unity.TextMeshPro.csproj' does not exist.
    19. [warn]: OmniSharp.MSBuild.ProjectLoader
    20.         The referenced project 'UnityEditor.UI.csproj' does not exist.
    21. [warn]: OmniSharp.MSBuild.ProjectLoader
    22.         The referenced project 'UnityEditor.CacheServer.csproj' does not exist.
    23. [warn]: OmniSharp.MSBuild.ProjectLoader
    24.         The referenced project 'Unity.ScriptableBuildPipeline.Editor.csproj' does not exist.
    25. [warn]: OmniSharp.MSBuild.ProjectLoader
    26.         The referenced project 'Unity.Burst.csproj' does not exist.
    27. [warn]: OmniSharp.MSBuild.ProjectLoader
    28.         The referenced project 'Unity.Jobs.csproj' does not exist.
    29. [warn]: OmniSharp.MSBuild.ProjectLoader
    30.         The referenced project 'Unity.Jobs.Editor.csproj' does not exist.
    31. [warn]: OmniSharp.MSBuild.ProjectLoader
    32.         The referenced project 'Unity.Entities.Editor.csproj' does not exist.
    33. [warn]: OmniSharp.MSBuild.ProjectLoader
    34.         The referenced project 'Unity.Burst.Editor.csproj' does not exist.
    35. [warn]: OmniSharp.MSBuild.ProjectLoader
    36.         The referenced project 'Unity.Collections.csproj' does not exist.
    37. [warn]: OmniSharp.MSBuild.ProjectLoader
    38.         The referenced project 'Unity.Scenes.Hybrid.csproj' does not exist.
    39. [warn]: OmniSharp.MSBuild.ProjectLoader
    40.         The referenced project 'Unity.Scenes.Editor.csproj' does not exist.
    41. [warn]: OmniSharp.MSBuild.ProjectLoader
    42.         The referenced project 'Unity.Mathematics.Extensions.csproj' does not exist.
    43. [warn]: OmniSharp.MSBuild.ProjectLoader
    44.         The referenced project 'Unity.Searcher.Editor.csproj' does not exist.
    45. [warn]: OmniSharp.MSBuild.ProjectLoader
    46.         The referenced project 'Unity.Mathematics.Extensions.Hybrid.csproj' does not exist.
    47. [warn]: OmniSharp.MSBuild.ProjectLoader
    48.         The referenced project 'Unity.Entities.BuildUtils.csproj' does not exist.
    49. [warn]: OmniSharp.MSBuild.ProjectLoader
    50.         The referenced project 'Unity.Serialization.csproj' does not exist.
    51. [warn]: OmniSharp.MSBuild.ProjectLoader
    52.         The referenced project 'Unity.Entities.Hybrid.EndToEnd.Tests.csproj' does not exist.
    53. [warn]: OmniSharp.MSBuild.ProjectLoader
    54.         The referenced project 'Unity.Entities.Hybrid.csproj' does not exist.
    55. [warn]: OmniSharp.MSBuild.ProjectLoader
    56.         The referenced project 'Unity.Mathematics.csproj' does not exist.
    57. [warn]: OmniSharp.MSBuild.ProjectLoader
    58.         The referenced project 'Unity.Properties.csproj' does not exist.
    59. [warn]: OmniSharp.MSBuild.ProjectLoader
    60.         The referenced project 'Unity.Entities.csproj' does not exist.
    61. [warn]: OmniSharp.MSBuild.ProjectLoader
    62.         The referenced project 'Unity.Transforms.csproj' does not exist.
    63. [warn]: OmniSharp.MSBuild.ProjectLoader
    64.         The referenced project 'Unity.Transforms.Editor.csproj' does not exist.
    65. [warn]: OmniSharp.MSBuild.ProjectLoader
    66.         The referenced project 'Unity.ScriptableBuildPipeline.csproj' does not exist.
    67. [warn]: OmniSharp.MSBuild.ProjectLoader
    68.         The referenced project 'Unity.Mathematics.Editor.csproj' does not exist.
    69. [warn]: OmniSharp.MSBuild.ProjectLoader
    70.         The referenced project 'Unity.Transforms.Hybrid.csproj' does not exist.
    71. [warn]: OmniSharp.MSBuild.ProjectLoader
    72.         The referenced project 'Unity.Properties.UI.csproj' does not exist.
    73. [warn]: OmniSharp.MSBuild.ProjectLoader
    74.         The referenced project 'Unity.Serialization.Editor.csproj' does not exist.
    75. [warn]: OmniSharp.MSBuild.ProjectLoader
    76.         The referenced project 'Unity.Deformations.csproj' does not exist.
    77. [warn]: OmniSharp.MSBuild.ProjectLoader
    78.         The referenced project 'Unity.Properties.UI.Editor.csproj' does not exist.
    79. [info]: OmniSharp.MSBuild.ProjectManager
     
    Last edited: May 9, 2020
  2. pocketpair

    pocketpair

    Joined:
    Jul 7, 2015
    Posts:
    72
  3. illinar

    illinar

    Joined:
    Apr 6, 2011
    Posts:
    863
    Edit: it didn't help. 1.1.3, 1.2, 1.4, those packages dont work
     
    Last edited: May 14, 2020
  4. BanJaxe

    BanJaxe

    Joined:
    Nov 20, 2017
    Posts:
    47
    Try these steps:
    - Close VSCode
    - Make sure you are on package 1.1.3
    - Delete the two project files in the root project folder .csproj and .sln
    - In Unity right click Packages in the project panel and Reimport All
    - Right click Packages again and Open C# Project
    - Wait a minute for intellisense to start working (someimes takes a while)

    I have to do this every time I start a new project otherwise nothing works in VSCode.
     
  5. abrahamcollmart

    abrahamcollmart

    Joined:
    Mar 13, 2021
    Posts:
    6
    i also have the same problem, i'm using vs code and i tried to test the sample project for ECS and none scene show a single entity.
     
  6. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,761