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. Dismiss Notice

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

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

  1. Papalou

    Papalou

    Joined:
    Dec 9, 2016
    Posts:
    23
    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:
    3,899
    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. Papalou

    Papalou

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

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

    Papalou

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