Search Issue Tracker

By Design

Votes

0

Found in [Package]

3.8.0-beta.1

Issue ID

HUBX-1053

Regression

No

Installing modules for an Editor version in the headless mode fails when the Editor version is not installed through the Hub

Package: Hub

-

Reproduction steps:
1. Open a Terminal Window
2. Install an Editor version using a command (example: /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install --version 2023.3.0b5)
3. Install a module to the version using a command (example: /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install-modules --version 2023.3.0b5 -m ios android)

Expected result: Modules are added to the version
Actual result: "Failed to execute the command due the following, please see '-- --headless help' for assistance. TypeError: Cannot read properties of undefined (reading 'find')" error is thrown

Reproducible with: 3.7.0, 3.8.0-beta.1

Reproducible on: macOS Sonoma 14.3 (Intel), Windows 10 (user’s)
Not reproducible on: No other environment tested

Note: The 3.8 Hub throws this error: “No modules found for this editor. Module installation is only supported for editors installed with Unity Hub. Try reinstalling this editor with Unity Hub to use this feature."

Workaround: Use the ”install” command instead of the “install-modules” command (example: /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install --version 2023.3.0b5 --module android android-sdk-ndk-tools android-open-jdk)

  1. Resolution Note:

    Adding modules to Editor versions installed not through the Hub is not supported

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.