Search Unity

Compile errors when I delete a (unused) script

Discussion in 'Editor & General Support' started by MoMonay, Oct 22, 2018.

  1. MoMonay

    MoMonay

    Joined:
    May 9, 2018
    Posts:
    19
    Every time I delete a script in my project I suddenly get these same compile errors;

    compile errors.JPG
    error:
    C:/Users/MoMonay/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.shadergraph@1.1.2-preview/Editor/Data/Util/DictionaryPool.cs(1,0): error CS1525: Unexpected symbol `%'

    I am using lwrp.
     
  2. bgprocks

    bgprocks

    Joined:
    Oct 28, 2012
    Posts:
    8
    can you post the unused script
     
  3. MoMonay

    MoMonay

    Joined:
    May 9, 2018
    Posts:
    19
    The thing is, it's happening when I delete any script, my own or imported ones. If I delete any script I immidiately get these errors.
     
  4. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    So how does DictionaryPool.cs look?

    If it looks fine, I'd try closing Unity, deleting the library folder for your project, and reopening it. Rebuilding the library folder can be a long process for a large project or slow machine though.
     
  5. MoMonay

    MoMonay

    Joined:
    May 9, 2018
    Posts:
    19
    Thanks for the help guys, I tried rebuilding library and updating unity, but the problem persisted. I had to update the lrwp package and the errors dissappeared, I can now safely delete scripts again.