Internal compiler error when I make "NumberWizard.cs" for using MonoDevelop

Hello. I am very new to this course and to Unity. I was presented with this error recently and I am not sure how to solve it.

Basically, when I make a C# script, I get this error:

“Internal compiler error. See the console log for more information. output was:error CS2011: Unable to open response file: Temp/UnityTempFile-5bf38a87134476747b03ade17410e0c5”

I do not know how to solve this. I thought it was a problem with me having multiple copies of Unity (even though I made a folder for each of them) so I re installed 4.6.9 and I still get the same error.

I tried opening mono develop, but I only get the main screen. I believe it should take you directly to the script right? I tried searching for where the file should be in the Unity folder but I couldn’t find it. Is there a reason this is happening? Should I stick to the most current version of unity I have and use Visual Studio?

Thanks for all help.

Hi @varasj,

Rather than opening MonoDevelop directly, what happens if you try opening a script from Unity? e.g. double-click it?

By default, this should launch MonoDevelop and open the project/solution at the same time, finally displaying your double-clicked script for editing.

Can you give that a try and let me know what happens please.

Thanks for the reply.

My fault in the wording, I meant to say I opened the script from Unity. When I double click all I get is the default page, doesn’t show my solution or any code.

Hi,

Is the scene and project you have in Unity saved yet? Have you clicked Run at all within Unity?

It typically opens the project for you, but maybe it hasn’t actually created one yet.

Another thought, if you click Open in MonoDevelop, after launching it from Unity, browse through to the location of your Unity project, what happen then?

I think I may have solved it. So I tried what you said, saved project, ran it, and I go to make it again and i get the same error. But then I tried to open file location in file explorer and it doesn’t load anything, just shows “This PC”, and now I cannot find where my project is located.

I made a new project and redirected it to a new folder, re-did the steps to make the Game scene and the script and I still get the same problem. And when I go to the folder in File Explorer it doesn’t show up.

Then I tried a third time and noticed there were no packages being imported, specifically the scripts package. I wasn’t 100% sure if anything else was needed, so I just checked all the packages and imported them. Everything seems to be running smoothly. No errors and when I double click the script, it opens the solution.

Guess I was so used to the simplicity of the new versions I thought I just had to make a new project. Thanks for the help!

1 Like

Packages? As in when you create a new project in Unity?

Glad to hear you have it resolved anyway :slight_smile:

Yes, those packages. Adding them let me continue on with the lectures because everything worked fine.

1 Like

I’m surprised that even with the older version some defaults weren’t selected?

Oh well… at least you’re moving forwards again, that’s the main thing :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.