Search Issue Tracker
Fixed
Votes
12
Found in
2019.2.8f1
Issue ID
1201699
Regression
Yes
Unity Editor throws empty errors when PATHEXT Environment Variable is overriden in User Environment Variables
How to reproduce:
1. Open Environment Variables window (Control Panel -> System and Security -> System -> Advanced system settings -> Environment Variables)
2. Create a PATHEXT User Environment Variable
3. Set the Variable value to %PATHEXT%;.RB;.RBW
4. Open Unity Hub
5. Create a new project or open an existing one
6. Create a new script
Expected result: Script is created and no errors are thrown in the Console
Actual result: Script is created and empty error is thrown in the Console
Reproducible with Unity versions: 2019.2.15f1
Reproducible with Unity Hub versions: 2.2.0, 2.2.1
Notes:
- The following error message is logged in the Editor.Log: Editor\Data\Tools\RoslynScripts\..\..\Tools\Roslyn\csc"' is not recognized as an internal or external command, operable program or batch file.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
MHatfull
Dec 17, 2019 08:44
This took me out for a day as the errors in the console are all blank and there were similar symptoms when 4.x was added to unity so the forums are full of noise about that. Anyone with less technical know-how would probably end up reinstalling Windows as I almost did.
andrewpey
Dec 08, 2019 17:32
It also breaks git in Visual Studio since it tries to operate just `git` command (w/o `.exe`).
dustout
Dec 02, 2019 16:31
The below topic had the solution to my problem, just adding a .exe to the end of the \csc did the trick
https://answers.unity.com/questions/1680858/blank-console-error-on-empty-project-with-a-single.html