Failed to create compiler instance

I have a project that was working just fine one moment, but now I have these errors:

ApplicationException: Unable to find a suitable compiler
UnityEditor.Scripting.ScriptCompilers.CreateCompilerInstance (MonoIsland island) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/Scripting/ScriptCompilers.cs:87)

Failed to create compiler instance

Compilation failed because the compiler couldn't be executed!

All compiler errors have to be fixed before you can enter playmode!
UnityEditor.SceneView:ShowCompileErrorNotification()

I can’t think of anything I did from then to now. Does anyone know what causes this and/or how to solve it?

Thanks,

  • WolfShield

Try restarting Unity3d, and what did you do befor this error occured?

I had tried restarting Unity,
I restarted my computer too. I just got a tip from a friend and it worked. I went into my Unity Project and deleted all of the contents of the “Cache” folder. It’s working like a charm now.

Sincerest thanks for the reply,

  • WolfShield

Alright,
I’m sorry for restarting this thread, but I have the error again. I have narrowed it down to something in my cache. When I delete everything in my cache and open up a script ( to get the script back in the project), it will run once. But as soon as that one time is over, it goes back to the error. I’m not sure what the cache stores exactly, but I believe it’s either something in there, or something in my script that may be put in there. But the same scripts were running fine before.

  • WolfShield

I’ve re-installed Unity and I’m still having the issue.

  • WolfShield

Perhaps thers simply something wrong with your project? As silly as it sounds, did you try closing the project and renaming it? Or copying over the content of it into a new folder?

It certianitly could be.
I tried both of your options, but each time I still have the error.

I also tried deleting a script and corrosponding scene that I thought might have something to do with it, but alas it’s not the problem.

  • WolfShield

Did you get any update on this issue ??
I am having the same problem and can’t find a solution :frowning:

Same over here D:

Ugh the same happend to me too today, Had made thread but it seemlessly dispaeard from forum… lol…
anyways need help with this too…

well I decide to try something and well it sorta helped, by that I mean I deleted whole Library folder of my project, and well game did compile but sadly all the relations of scripts and rest stuff is fuckedup… now I had zipped a copy of my library folder before deleting it, now I need to figure out which thing responds for asset relations…

ugh after fwe minutes while rekovering relation I decide to try and build
and what a surprise 9 more errors of “Cant create compiler instance” shit…

You can create a new project in another directory and with another name. Then manually copy and past your assets folder from last bug shit project to the new one.You can see the errors will disappear!

I’ve tried your suggestion but the problem was still there.

have you imported anything if you did delete it and reimport it, it worked for me

Same problem here.
Reimport all assets is just a temporary solution.
Some guys solve this problem taking off the builded solution from asset folder but that’s not my case.

I’ve formated my PC, installed another SO, reinstalled Unity, use another unity license, switch over several deploy options, deleted Library folder, turned off SVN, tried in another computer, deleted ProjectSettings folder as Library folder and project solutions, all at once, and…even this way… the problem returns.
I’m using SVN and the problem is affecting my co-workers in the same project as well. The problem is only on this project. Other projects are running fine.
All this actions makes me believe that this issue is some kind of bug related to some corrupted file in my assets. However, all my codes, textures and sounds are working fine.

I also had deleted all scripts even in the editor and the problem returned.

I’m now starting to test each asset importing one by one to another project waiting to find the source of this problem.

I do a reimport all and it works. The bad side is that it takes 10 minutes.

Does anyone has the ultimate method?

I just had this same error. I quit out of unity and opened it back up. Different error messages popped up referring to some audio script that I had written which I fixed and all seems OK now. But when it did restart it had to reload all my assets which took about 5 minutes.