Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Namespaces (cannot resolve symbol) appear red in Rider, but code compile fine

Discussion in 'Code Editors & IDEs' started by OctoSharko, Jun 30, 2023.

  1. OctoSharko

    OctoSharko

    Joined:
    Dec 9, 2016
    Posts:
    43
    Hi,

    using Rider, I have the following namespaces not found :

    using UnityEngine.EventSystems;
    using UnityEngine.InputSystem;

    But oddly enough everything compiles fine, but rider show them red as an error which is irritating.

    Is there a way to fix that ?

    Thanks
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    7,010
    Does restarting Rider fix it?

    If not, I would close Unity and Rider and delete all .csproj and .sln files in the project root folder and try again.
     
  3. OctoSharko

    OctoSharko

    Joined:
    Dec 9, 2016
    Posts:
    43
    Thanks for the suggestion.

    Just did that, killed unity and rider, deleted the csproj and sln, restarted but still no luck...
     
  4. OctoSharko

    OctoSharko

    Joined:
    Dec 9, 2016
    Posts:
    43
    I'm on Mac now, I'll check how it looks on my Windows machine at home.