• 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 Skrypt · Jun 17, 2015 at 07:46 PM · compiler error

Compiler error on new project

I have newly installed Unity 5 using its downloader and this is a new project I'm working on. It has only one script. Things I've tried:

  • Looking at other answers (none of them helped much)

  • Rebooting

  • Creating a new project and testing (still the same)

  • Deleted the script, created a new one

  • Making sure the script name matches 100%

  • Saving, reopening

I've literally created a new script and it still gives me the error "No MonoBehaviour script in the file, or their names do not match the file name." When I try to drag it to an object it says "Please fix compile errors before creating new script components". **This** and also **this**.

Oh and the compiler errors:

Could not start compilationWin32Exception: ApplicationName='"E:\'Stuff'\Unity\Editor\Data\Mono\bin\mono.exe"', CommandLine='"E:\'Stuff'\Unity\Editor\Data\Mono\lib\mono\unity\smcs.exe" @Temp/UnityTempFile-087fc7abaf20b5046ae6df41b05f1576', CurrentDirectory='E:/'Stuff'/Unity/Projects/Dave/Assets/..' System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) System.Diagnostics.Process.Start () (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start () UnityEditor.Utils.Program.Start () (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:33) UnityEditor.Scripting.Compilers.MonoScriptCompilerBase.StartCompiler (BuildTarget target, System.String compiler, System.Collections.Generic.List`1 arguments, Boolean setMonoEnvironmentVariables) (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/MonoScriptCompilerBase.cs:31) UnityEditor.Scripting.Compilers.MonoScriptCompilerBase.StartCompiler (BuildTarget target, System.String compiler, System.Collections.Generic.List`1 arguments) (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/MonoScriptCompilerBase.cs:18) UnityEditor.Scripting.Compilers.MonoCSharpCompiler.StartCompiler () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/MonoCSharpCompiler.cs:43) UnityEditor.Scripting.Compilers.ScriptCompilerBase.BeginCompiling () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:47)


Compilation failed because the compiler couldn't be executed!

capture.png (69.6 kB)
capture.png (37.3 kB)
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
3

Answer by Dave-Carlile · Jun 17, 2015 at 08:06 PM

 E:\'Stuff'\Unity\Editor\Data\Mono\lib\mono\unity\smcs.exe

Do you actually have a folder with quotes in the name? I'd suggest using a folder without the quotes and I suspect everything will work fine.

Comment
Add comment · Show 3 · 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
avatar image Skrypt · Jun 18, 2015 at 02:52 AM 0
Share

Hmmm I'll try. I'm going to move it to the "Program Files" folder of this drive and see. I didn't really thought of that. Let's see...

avatar image Skrypt · Jun 18, 2015 at 02:56 AM 0
Share

Holy crap it worked. Thank you soo much, can't believe I missed that... :D

avatar image Dave-Carlile · Jun 18, 2015 at 12:42 PM 0
Share

Looks like that's probably a Unity bug, albeit $$anonymous$$or. $$anonymous$$ight want to do a bug report on that.

Also, feel free to click the checkmark under the voting buttons if my answer helped.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

6 People are following this question.

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

Related Questions

Compiler crash! Restarted and Still Same Error! 0 Answers

Internal compiler error during parsing, Run with -v for details (101,25) 1 Answer

Moving file failed 2 Answers

Monodevelop files a compiler error when I try to make a variable,Monodevelop files complilerr error when I try to make a public variable 1 Answer

Why do I have 374 compiler errors? 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