Skip to content

Fixes 2019.1 Unity Instance Searching - #171

Merged
Josh Wittner (jwittner) merged 20 commits into
microsoft:developfrom
StephenHodgson:dev-UnitySetupInstance
Apr 26, 2019
Merged

Fixes 2019.1 Unity Instance Searching#171
Josh Wittner (jwittner) merged 20 commits into
microsoft:developfrom
StephenHodgson:dev-UnitySetupInstance

Conversation

@StephenHodgson

@StephenHodgson Stephen Hodgson (StephenHodgson) commented Apr 19, 2019

Copy link
Copy Markdown
Contributor

Updated the UnitySetupInstance to search for the modules.json then falls back to recursively looking for ivy.xml

Fixes:

Comment thread UnitySetup/UnitySetup.psm1 Outdated
Comment thread UnitySetup/UnitySetup.psm1 Outdated

@jwittner Josh Wittner (jwittner) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution Stephen Hodgson (@StephenHodgson) - would love to get this issue resolved! =)

UnitySetup originally used your proposed method for version discovery, but ultimately I found that it was hurting adoption because people have Unity installed in all kinds of weird folders and it was restrictive to only include versions installed by UnitySetup (or randomly installed in a matching pattern). If this ivy is gone, I'd like to find (hopefully) a part of the install that is always under Unity's control for determining the version. If we find another ivy (iirc, there were several), we can check for both.

I'm wondering if you scoured around and didn't find anything already?

@StephenHodgson

Copy link
Copy Markdown
Contributor Author

I was not able to find anything similar. I looked quite a bit to make sure.

Yeah looking back I didn't account for strange folder names and custom install locations for this.

@StephenHodgson

Copy link
Copy Markdown
Contributor Author

But gotta have this fixed asap.

@StephenHodgson

Stephen Hodgson (StephenHodgson) commented Apr 20, 2019

Copy link
Copy Markdown
Contributor Author

Josh Wittner (@jwittner) what if we do a recursive search for any ivy files?

Then if that fails get the new modules.json file located at the root?
We should probably update this script to take advantage of it as well, as it seems to have the dl locations for all the availible modules for the installation.

@StephenHodgson

Copy link
Copy Markdown
Contributor Author

Josh Wittner (@jwittner) I think you'll really like the new version :)

@StephenHodgson

Copy link
Copy Markdown
Contributor Author

I just noticed we should also update Get-UnitySetupInstance as well

@jwittner Josh Wittner (jwittner) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for another great contribution Stephen Hodgson (@StephenHodgson) ! Hit errors trying to import, but did an eyeball review as well.

Comment thread UnitySetup/UnitySetup.psm1 Outdated
Comment thread UnitySetup/UnitySetup.psm1 Outdated
Comment thread UnitySetup/UnitySetup.psm1 Outdated
Comment thread UnitySetup/UnitySetup.psm1 Outdated
Comment thread UnitySetup/UnitySetup.psm1 Outdated
Comment thread UnitySetup/UnitySetup.psm1 Outdated
Comment thread UnitySetup/UnitySetup.psm1 Outdated
Comment thread UnitySetup/UnitySetup.psm1 Outdated
Comment thread UnitySetup/UnitySetup.psm1 Outdated
Comment thread UnitySetup/UnitySetup.psm1 Outdated
@StephenHodgson

Stephen Hodgson (StephenHodgson) commented Apr 23, 2019

Copy link
Copy Markdown
Contributor Author

Josh Wittner (@jwittner) This is ready for re-review.

I pretty much just match the search paths to a version the use that as my path for the instance.

I also updated the version matching in the setup instance constructor as well

If you want to squash and merge this PR I'm cool with that so all these commits don't pollute the history.

@jwittner

Copy link
Copy Markdown
Member

Stephen Hodgson (@StephenHodgson) I was still seeing issues, but I've updated and pushed changes that fix them for me. I now get handy warnings for my busted old half uninstalled unity folders. =) Please review and test again, if it's working for you, I'll go ahead and merge it in. =)

Comment thread UnitySetup/UnitySetup.psm1
@StephenHodgson

Copy link
Copy Markdown
Contributor Author

Josh Wittner (@jwittner) works on my end! :shipit:

@StephenHodgson

Copy link
Copy Markdown
Contributor Author

Josh Wittner (@jwittner) anything else for me to do on my end?

@StephenHodgson

Copy link
Copy Markdown
Contributor Author

Josh Wittner (@jwittner) Please re-review :)

@StephenHodgson

Copy link
Copy Markdown
Contributor Author

Robert Onulak (@Ziugy) could you also take a look see please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants