-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list fails when version does not follow standard format, e.g. MagicLeap versions #331
Comments
Hey @danielresolutiongames ! Thanks for pointing this issue to us. So after a bit of digging around, I believe I know where your issue comes from. Thankfully, it's not because of So, my assumption is that it has to do with the fact that it is a custom version (thank you captain obvious): Technical rambling: ONIn the installer.rb, you can find the following code: def installed_sorted_by_versions
list = installed
return [] if list.empty?
# version -> installations
arraym = list.map { |a| [a.version, a] }
map = Hash[*arraym.flatten]
# sorted versions
vcomparators = map.keys.map { |k| UnityVersionComparator.new(k) }
sorted_keys = vcomparators.sort.map { |v| v.version.to_s }
sorted_keys.map { |k| map[k] }
end The issue in this is that while Technical rambling: OFFSo we have a few options going on from there:
WDYT @lacostej ? What you can do in the meantime @danielresolutiongames if you're willing to give us a hand is confirm my assumption. I tested it locally and managed to replicate your issue I believe:
I did that by changing the value of the attribute I hope this helps a bit! If my assumption is correct, the fix should be quite simple! |
Hey @niezbop ! Thanks for connecting back. Yeah, I'll gladly give you whats in those files. So, contents of
And the contents of
And for another version,
and its
|
Ok that's great! Thanks a bunch So you did valid my assumption: the info node, |
Great, looking forward to it! |
u3d/list: support Magic Leap Versions parsing and sorting (fixes #331)
Issue Checklist
u3d --help
Issue Description
Hey!
Looks like a super cool tool; probably looking to replace our own in-house super simple tool with this as it seems to solve the same issues but hopefully a bit more robust.
On that note though, when using versions not available from u3d, e.g. Magic Leap editors, this happens:
Yes, I have temporarily changed the
DEFAULT_WINDOWS_INSTALL
to C:, which is where our in-house system places versions. The same happens when I symlink each folder from C:\ into "C:\Program Files".I hope the symlinks or
DEFAULT_WINDOWS_INSTALL
aren't relevant for this bug report. I did see #229 , which makes me wonder if it might be relevant, and if so this is another angle at the same limitation and feature request. :)The text was updated successfully, but these errors were encountered: