- Home /
System.InvalidOperationException: Cannot start process because a file name has not been provided - Unity 2019.2b
Answer by unity_h9j2UpUioJSwXg · Jul 03, 2019 at 08:17 AM
I found a possible solution Goto Edit->Perference->Extenal Tools Set your Extenal Script Editor as Visual Studio.
it's sloved my porblem.
I'm using eclipse at the moment and set the Editor to eclipse.exe ins$$anonymous$$d of visual studio. It also worked for me! thank you! :)
Answer by ExNinja · Sep 08, 2019 at 04:53 AM
Unity 2019.2.4f1 on macOS 10.14.6 – Solution FOUND
I had the same issue opening C# files in Visual Studio on a brand new mac (though the Unity project was copied from 2019.2.2 on another mac).
Error: Exception thrown while invoking [OnOpenAssetAttribute] method 'Unity.CodeEditor.CodeEditor:OnOpenAsset (int,int,int)' : InvalidOperationException: Cannot start process because a file name has not been provided. System.Diagnostics.Process.Start () (at :0) (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start() UnityEditor.DefaultExternalCodeEditor.OpenProject (System.String path, System.Int32 line, System.Int32 column) (at /Users/builduser/buildslave/unity/build/Editor/Mono/CodeEditor/DefaultExternalCodeEditor.cs:123) Unity.CodeEditor.CodeEditor.OnOpenAsset (System.Int32 instanceID, System.Int32 line, System.Int32 column) (at /Users/builduser/buildslave/unity/build/Editor/Mono/CodeEditor/CodeEditor.cs:52) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Solution: 1. Open Unity > Preferences and go to External Tools as suggested by @unity_h9j2UpUioJSwXg . 2. Below the selection of Visual Studio (which was already there), I found a text field with the "$file" in it next to a button labeled Reset Arguments. 3. Clicking the Reset Arguments button caused both it and the text field to disappear AND seems to have fixed my problem.
Answer by Shmoji · May 17, 2019 at 06:29 PM
I cannot say 100% this is the solution for you, but I had the exact same errors and I will tell you how I fixed them.
Go to: Window at the top -> Package Manager -> Advanced -> Reset Packages to defaults
Answer by sfilo · Jan 26, 2021 at 11:26 AM
I have the same problem but none of the fixes here worked in Unity 2019.4.18.f1
Answer by Synkrophosatron · Jan 27, 2021 at 12:43 PM
To users facing the same problem, I had the same problem while building for android. I am using Unity version 2019.3.9f1 Solution: In the build settings, "Add Open Scenes" and then try to build it)
Your answer
Follow this Question
Related Questions
Project won't delete 1 Answer
How Does One "Setup" For A New Project 1 Answer
Project folders missing 0 Answers
How to make a project in public documents? 0 Answers
Is it possible to recover project from .exe? Please help! 1 Answer