Not compiling

I have a very simple script : static var Money = 400;
This should be a script where you can make it then put it straight into your game. But it is not. It does not compile. Even if I leave it compiling over night, it still gives the message “Script MONEY has not finished compilation yet. Please wait untill compilation of the script has finished and try agin”. My computer has lots of memory left, the project is quite a small one, and there are no other obvious causes for this error. I have also tried using other scripts, copying working ones, then pasting them into a new script, but to the same result. Please, does anyone know what might be wrong with it?

Thanks in advance.

can you post the script ?

It is literally static var MONEY = 400;

That sounds pretty odd… If you remove the offending line and save, does Unity finish compiling? (and when you add it back in, does it break in the same way?)

Yes, no scripts work, regardless of the content. I typed in ,aisyfa,sdjgxc, and it says its still compiling, I have static var MONEY = 400; which does not work, I tried making a new script using the content of one that is already in my game, but to the same result.

do a rightclick on your scripts folder and reimport the whole scripts. there is likely one that misscompiled and is not getting compiled.

if that does not help check the editor log right after start and see if you get an error about mono not starting - in that case you likely have DEP or UAC (non admin execution) based problems.

If the compilation not finished never ends, then you might have an overagressive security suite