Search Issue Tracker

Fixed in 2022.2.X

Fixed in 2022.1.X

Votes

1

Found in

2022.1.0a14

2022.2

2022.2.0a1

Issue ID

1393230

Regression

Yes

Analytics Library package throws errors when there are spaces in the Unity Editor path

Package

-

Steps to reproduce:
1. Make sure your Unity editor installation path has a space, if not add it
2. Create a new project
3. Import the Analytics Library package in Window -> Package Manager

Expected result: Package imports successfully
Actual result: Package throws errors due to failing to import

Reproduced with: 2022.2.0a1, 2022.1.0b3, 2022.1.0a14
Didn't reproduce with: 2022.1.0a13, 2021.2.8f1, 2020.3.26f1, 2019.4.34f1

Note: If the editor is installed in '/Users/user/Unity Editor' path, the package will fail to read the space and throw an error "The application '/Users/user/Unity' does not exist."

Errors:
Failed to check following assemblies for updater configurations:
Packages/com.unity.analytics/AnalyticsStandardEvents/Unity.Analytics.StandardEvents.dll (ret = 145):
StdErr:
Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
* You intended to execute a .NET program:
The application '/Users/user/Downloads/trunk/.Editor' does not exist.
* You intended to execute a .NET SDK command:
It was not possible to find any installed .NET SDKs.
Install a .NET SDK from:
https://aka.ms/dotnet-download
Packages/com.unity.analytics/Unity.Analytics.Tracker.dll (ret = 145):
StdErr:
Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
* You intended to execute a .NET program:
The application '/Users/user/Downloads/trunk/.Editor' does not exist.
* You intended to execute a .NET SDK command:
It was not possible to find any installed .NET SDKs.
Install a .NET SDK from:
https://aka.ms/dotnet-download
Packages/com.unity.analytics/Unity.Analytics.Editor.dll (ret = 145):
StdErr:
Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
* You intended to execute a .NET program:
The application '/Users/user/Downloads/trunk/.Editor' does not exist.
* You intended to execute a .NET SDK command:
It was not possible to find any installed .NET SDKs.
Install a .NET SDK from:
https://aka.ms/dotnet-download

--------------
UnityEditor.Scripting.APIUpdaterLogger:WriteErrorToConsole (string,object[])
UnityEditorInternal.APIUpdating.APIUpdaterManager:HandleCheckAssemblyPublishUpdaterConfigErrors (UnityEditorInternal.APIUpdating.AssemblyUpdaterCheckAssemblyPublishConfigsTask[]) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Scripting/APIUpdater/APIUpdaterManager.bindings.cs:464)
UnityEditorInternal.APIUpdating.APIUpdaterManager:UpdatePublishUpdaterConfigStatusAndAddDependents (System.Collections.Generic.HashSet`1<UnityEditorInternal.APIUpdating.AssemblyUpdateCandidate>,System.Collections.Generic.IEnumerable`1<UnityEditorInternal.APIUpdating.AssemblyUpdateCandidate>,UnityEditor.Scripting.APIUpdater.AssemblyDependencyGraph) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Scripting/APIUpdater/APIUpdaterManager.bindings.cs:436)
UnityEditorInternal.APIUpdating.APIUpdaterManager:ProcessImportedAssemblies (string[]) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Scripting/APIUpdater/APIUpdaterManager.bindings.cs:395)

Unable to update following assemblies:Packages/com.unity.analytics/Unity.Analytics.Editor.dll (Name = Unity.Analytics.Editor, Error = 145) (Output: /var/folders/sx/kyy_lkf12b95q75nbp4qhpzr0000gp/T/tmp736d32c5.tmp)

Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
* You intended to execute a .NET program:
The application '/Users/user/Downloads/trunk/.Editor' does not exist.
* You intended to execute a .NET SDK command:
It was not possible to find any installed .NET SDKs.
Install a .NET SDK from:
https://aka.ms/dotnet-download
Packages/com.unity.analytics/Unity.Analytics.Tracker.dll (Name = Unity.Analytics.Tracker, Error = 145) (Output: /var/folders/sx/kyy_lkf12b95q75nbp4qhpzr0000gp/T/tmp478912d8.tmp)

Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
* You intended to execute a .NET program:
The application '/Users/user/Downloads/trunk/.Editor' does not exist.
* You intended to execute a .NET SDK command:
It was not possible to find any installed .NET SDKs.
Install a .NET SDK from:
https://aka.ms/dotnet-download
Packages/com.unity.analytics/AnalyticsStandardEvents/Unity.Analytics.StandardEvents.dll (Name = Unity.Analytics.StandardEvents, Error = 145) (Output: /var/folders/sx/kyy_lkf12b95q75nbp4qhpzr0000gp/T/tmp6d9ea7d8.tmp)

Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
* You intended to execute a .NET program:
The application '/Users/user/Downloads/trunk/.Editor' does not exist.
* You intended to execute a .NET SDK command:
It was not possible to find any installed .NET SDKs.
Install a .NET SDK from:
https://aka.ms/dotnet-download

UnityEditor.Scripting.APIUpdaterLogger:WriteErrorToConsole (string,object[])
UnityEditorInternal.APIUpdating.APIUpdaterManager:HandleAssemblyUpdaterErrors (System.Collections.Generic.IList`1<UnityEditorInternal.APIUpdating.AssemblyUpdaterUpdateTask>) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Scripting/APIUpdater/APIUpdaterManager.bindings.cs:248)
UnityEditorInternal.APIUpdating.APIUpdaterManager:UpdateAssemblies () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Scripting/APIUpdater/APIUpdaterManager.bindings.cs:104)
UnityEditorInternal.APIUpdating.APIUpdaterManager:ProcessImportedAssemblies (string[]) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Scripting/APIUpdater/APIUpdaterManager.bindings.cs:402)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.