Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by BinaryPunch · Oct 12, 2012 at 06:35 PM · javascriptcompiler

Compiler errors need help with. Please

Hi Everybody,

I recently started a Unity3D project just to experiment with the game engine. When I tried to compile my project into a executable for the PC it came up with three compiler errors. I don't have a clue what these errors are referring to and how to fix them. I welcome anybodies help to fix this problem for me. Thank you.

Here's my compiler errors:

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

Failed to create compiler instance

KeyNotFoundException: The given key was not present in the dictionary. System.Collections.Generic.Dictionary'2[System.String,UnityEditor.VisualStudioIntegration.ScriptingLanguage].get_Item (System.String key)

Here's my script for my project that I'm trying to get to work just in case it is something to do with this:

 var inputString2 : String;
 private var saveString2 : String;
 
 function OnGUI()
 {
      inputString2 = GUI.TextArea(Rect(600, 250, Screen.width-1200, Screen.height-570), inputString2);
      if(GUI.Button(Rect(430, 285, Screen.width-1200, Screen.height-570), "Submit Name"))
      {
           saveString2 = inputString2;
      }
      if(GUI.Button(Rect(600, 285, Screen.width-1200, Screen.height-570), "Display Name"))
      {
           inputString2 = saveString2;
      }
      if(GUI.Button(Rect(770, 285, Screen.width-1200, Screen.height-570), "Play Game"))
      {
           Debug.Log(saveString2);
      }
      if(GUI.Button(Rect(600, 320, Screen.width-1200, Screen.height-570), "Exit Game"))
      {
           Application.LoadLevel(0);
      }
 }
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by sparkzbarca · Oct 12, 2012 at 07:17 PM

im wondering about this error

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


specifically the scriptcompilers.cs Not trying to be silly but you are in fact saving it as a Javascript right?

if your script is called scriptname.cs its trying to compile it in C#

javascripts should be denoted by the .js file type.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

5.4 No autocompletion in unity or MonoDevelop, how to compile the code JS & C#? 0 Answers

Rigidbody (Player) goes through wall 1 Answer

Why are these errors messing with me? 2 Answers

How can i add different jumping state in unity3d 1 Answer

Select randomly x arrays and instantiate them 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges