Skip to content
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

unity 2019.2.x on windows #367

Closed
4 tasks done
pauWin opened this issue Aug 22, 2019 · 8 comments · Fixed by #374
Closed
4 tasks done

unity 2019.2.x on windows #367

pauWin opened this issue Aug 22, 2019 · 8 comments · Fixed by #374
Assignees

Comments

@pauWin
Copy link

pauWin commented Aug 22, 2019

Issue Checklist

  • I'm using the latest u3d version
  • I ran u3d --help
  • I read the README
  • I made sure that a similar issue doesn't exit

Issue Description

I have an installation error when I try to install 2019.2.0f1 on windows
Steps:

  1. u3d install 2019.2.0f1
  2. u3d run -u 2019.2.0f1 --trace

Error:

Traceback (most recent call last):
	16: from C:/Ruby25-x64/bin/u3d:23:in `<main>'
	15: from C:/Ruby25-x64/bin/u3d:23:in `load'
	14: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/u3d-1.1.5/exe/u3d:7:in `<top (required)>'
	13: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/u3d-1.1.5/lib/u3d/commands_generator.rb:40:in `start'
        12: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/u3d-1.1.5/lib/u3d/commands_generator.rb:260:in `run'
        11: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/commander-4.4.7/lib/commander/delegates.rb:15:in `run!'
        10: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/commander-4.4.7/lib/commander/runner.rb:68:in `run!'
         9: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/commander-4.4.7/lib/commander/runner.rb:446:in `run_active_command'
         8: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/commander-4.4.7/lib/commander/command.rb:153:in `run'
         7: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/commander-4.4.7/lib/commander/command.rb:182:in `call'
         6: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/u3d-1.1.5/lib/u3d/commands_generator.rb:99:in `block (2 levels) in run'
         5: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/u3d-1.1.5/lib/u3d/commands.rb:212:in `run'
         4: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/u3d-1.1.5/lib/u3d/commands.rb:344:in `check_unity_presence'
         3: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/u3d-1.1.5/lib/u3d/commands.rb:344:in `find'
         2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/u3d-1.1.5/lib/u3d/commands.rb:344:in `each'
         1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/u3d-1.1.5/lib/u3d/commands.rb:344:in `block in check_unity_presence'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/u3d-1.1.5/lib/u3d/installation.rb:353:in `version': Couldn't find a module under C:/Program Files/Unity_2019.2.0f1/Editor/Data/ (RuntimeError)

The installation seems to run ok but when I try to run unity it doesn't parse the version number.
I'm getting the same result when I tried to install 2019.2.1f1.
Installing 2018.x seems to work fine though.

Thanks.

@Ygdrassil
Copy link

The same thing is happening to me. The problem only seems to occur with 2019.2+.

@mwegner
Copy link

mwegner commented Aug 28, 2019

It looks like the underlying issue is that Unity 2019.2 no longer includes ivy.xml files, which is what u3d is using to determine modules/version on Windows.

I'm not all that familiar with Ruby, but I'll poke around for a workaround if I can.

@mwegner
Copy link

mwegner commented Aug 29, 2019

Well, I did a quick rummage, and don't see a fast/easy way to patch in support for discovering versions/modules. I didn't spend very long hunting, though, because I realized the quick-and-dirty solution is to just to place an ivy.xml file in the 2019.2.2f1 folder myself:

<ivy-module version="2.0">
  <info version="2019.2.2" organisation="Unity" module="StandaloneWindows" e:packageType="PlaybackEngine" e:unityVersion="2019.2.2f1" xmlns:e="http://ant.apache.org/ivy/extra" />
  <publications xmlns:e="http://ant.apache.org/ivy/extra">
    <artifact name="UnityEditor.WindowsStandalone.Extensions" type="dll" ext="dll" />
  </publications>
</ivy-module>

Place in C:\Program Files\Unity_2019.2.2f1\Editor\Data\PlaybackEngines\windowsstandalonesupport, and I guess in whatever other platforms are installed. I'm only using this Windows build machine for Windows builds, so didn't test behavior there.

A bit of a pain, so ideally it gets fixed properly soon. u3d completely breaks with a 2019.2 version installed--not just operations targeting 2019.2, but all invocations (install/list/etc).

Hopefully the above hack helps anyone else who bumps into the problem in the meantime...

@Ygdrassil
Copy link

Thank you @mwegner
I was thinking the same thing. A temporary solution for now.

@pauWin
Copy link
Author

pauWin commented Aug 30, 2019

Thanks for the work around for now. Will try that out!

@bdominguez
Copy link

+1

@lacostej Please, fix this. It's not usable in 2019.x versiones on CI environments where all it's automated.

@niezbop
Copy link
Member

niezbop commented Nov 6, 2019

Hey everyone.
This has been adressed an will be released shortly. Thanks for your patience.

@bdominguez
Copy link

Thanks @niezbop !

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 a pull request may close this issue.

5 participants