Skip to content

Conversation

@cal-pratt
Copy link
Contributor

@cal-pratt cal-pratt commented Jan 22, 2017

This fixes the bug we've seen when running gradle compiles on the captain playbook. Fixes sourcing Kotlin and javafx dependencies.

I'm still getting some errors on my machine when running the javafx tests; something to do with the X11 settings... might just be an error with my windows machine.. will investigate more. It does however solve the compile errors, so it should be okay to merge.

@caw742 can you run this playbook on your mac with a fresh vm and see if you get any errors? Thanks

vagrant destroy captain; vagrant up captain && vagrant ssh captain
cd workspace && ansible-playbook playbooks/captain.yml && gradle build

@cal-pratt cal-pratt added this to the MATE 2017 milestone Jan 22, 2017
@cal-pratt cal-pratt self-assigned this Jan 22, 2017
@cal-pratt
Copy link
Contributor Author

cal-pratt commented Jan 22, 2017

The gradle test hangs forever when I run the gradle build with this test:

...
com.easternedgerobotics.rov.fx.ViewLoaderTest > loadViewDoesSetSceneRootNode FAILED
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

        Caused by:
        java.lang.reflect.InvocationTargetException

            Caused by:
            java.lang.UnsupportedOperationException: Unable to open DISPLAY

And if I enable X11 in the Vagrantfile captain.ssh.forward_x11 = true I get these errors, but it doesn't hang:

...
com.easternedgerobotics.rov.fx.ViewLoaderTest > loadViewDoesSetSceneRootNode FAILED
    java.awt.AWTError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.

com.easternedgerobotics.rov.fx.ViewLoaderTest > loadViewCreatesStage FAILED
    java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit

com.easternedgerobotics.rov.fx.ViewLoaderTest > loadViewDoesSetStageEventHandler FAILED
    java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
...

@cal-pratt
Copy link
Contributor Author

This solves some of the issues, so i will still merge it

@cal-pratt cal-pratt merged commit 068fd8b into master Feb 6, 2017
@cal-pratt cal-pratt deleted the playbook-fix-build branch February 6, 2017 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants