x


Problem with Mono compiler

Since I updated to the latest version of Unity, I'm getting some problems with a handful of scripts that only execute in Editor mode. I've narrowed it down to the scripts that are having issues, but the error message I'm getting is not helpful at all. All it says is:

The compiler this script was imported with is not available anymore.

(Filename: C:/BuildAgent/work/842f9557127e852/Editor/Src/AssetPipeline/MonoCompilationPipeline.cpp Line: 507)

I don't know what in particular about the script is causing it to encounter this error since that's all the information I'm getting, but it's preventing the script from saving any of it's internal variables, which is pretty important.

Any ideas on how I should go about debugging something like this?

more ▼

asked Sep 15 '11 at 04:31 AM

vaettyr gravatar image

vaettyr
1 1 1 1

You should file a bug about this and include your scripts or projects with it. It might be that the scripts are using some API calls that were only implemented in a later version of Unity, but you are using an old version of it. Try downloading the latest Unity version and see if you still get the error.

Sep 15 '11 at 12:58 PM ericksson

I feel pretty sheepish now. Switching between projects seems to have cleared up the compiler error.

The other half (not saving variables) turns out to be unrelated. I didn't realize that Unity couldn't serialize jagged arrays and that's why they weren't being saved. I re-wrote those portions of the tool using a custom serializable class and all my information is being saved just fine now.

Sep 16 '11 at 05:06 PM vaettyr

Hi, Just got the same error here. And no idea what's going on? Any new insight?

Feb 03 '12 at 01:48 PM dago23

Im getting a error that says (All compiler errors have to be fix before you can enter play mode) I don't know what to do

Apr 16 '12 at 01:50 AM dwaltjr

It means you have errors in one or more of your scripts. You should see the errors in the Console window (which you can open from the Window menu). Fix the errors and when your scripts are compiling with no errors, you will be able to press the Play button and run your game.

Apr 16 '12 at 10:38 AM ericksson
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x4179
x1952
x1679
x108
x32

asked: Sep 15 '11 at 04:31 AM

Seen: 1450 times

Last Updated: Apr 16 '12 at 12:36 PM