Compile errors when I delete a (unused) script

Every time I delete a script in my project I suddenly get these same compile errors;


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.

can you post the unused script

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.

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.

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.