You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using UnityTasks.Unity without specifying a Unity editor version, it defaults to auto-detecting the version from the ProjectSettings/ProjectVersion.txt file.
However, when using UnityTasks.UnityRunTests this doesn't happen, but I would expect it to behave the same way and call DetectUnityVersion within.
Usage Information
Nuke 8.1.0 / 8.0.201 / net8.0 / macOS Sonoma 14.3.1
Description
When using
UnityTasks.Unity
without specifying a Unity editor version, it defaults to auto-detecting the version from the ProjectSettings/ProjectVersion.txt file.However, when using
UnityTasks.UnityRunTests
this doesn't happen, but I would expect it to behave the same way and call DetectUnityVersion within.Reproduction Steps
Open the repro project:
Uploading NukeBugReport_UnityTasks_UnityAutoDetectNotImplementedForTests.zip…
This project uses Nuke 8.0.0, but the issue also happens in 8.1.0.
For full functionality, install Unity 2021.3.21.
Run:
Expected Behavior
UnityTasks.UnityRunTests
should detect the Unity editor version from the project and run successfully.Actual Behavior
UnityTasks.UnityRunTests
is used, but it doesn't detect the desired Unity editor version, instead it fails with:It is trying to run the (old legacy) default Unity editor path instead of the one specified in the project.
Analysis
Callstack with desired behaviour:
Callstack with undesired behaviour:
(no DetectUnityVersion call)
Regression?
No response
Known Workarounds
Yes:
Output:
This uses
UnityTasks.Unity
which uses DetectUnityVersion internally.Could you help with a pull-request?
Yes
The text was updated successfully, but these errors were encountered: