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

Create a ScalaXB Plugin #556

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Jacoby6000
Copy link

Most of this seems to work, aside from a class loader issue that's preventing me from testing it.

Any suggestions for improvements welcome while I try to sort it out!

@CLAassistant
Copy link

CLAassistant commented Aug 26, 2017

CLA assistant check
All committers have signed the CLA.

@cvogt
Copy link
Owner

cvogt commented Sep 11, 2017

@Jacoby6000 in order to sign the CLA you need to add the email address used in your commits to your github account.

case object OkHttp extends Backend
case object AHC extends Backend
}
}
Copy link
Owner

Choose a reason for hiding this comment

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

can we take the Gigahorse stuff out of the cbt package?

Copy link
Author

Choose a reason for hiding this comment

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

I can, but it's built in to scalaxb, so the binaries will still be floating around in there.. scalaxb has a tight coupling to it's backends from what I understand.

Copy link
Owner

Choose a reason for hiding this comment

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

I mean, can we move inside of a scalaxb plugin specific object or package? Just so it doesn't lie around in cbt's global namespace

@cvogt
Copy link
Owner

cvogt commented Sep 11, 2017

will look into the crash now :)

@cvogt
Copy link
Owner

cvogt commented Sep 11, 2017

Getting closer. This seems be be caused by cbt itself using an older Scala version (2.11.8) than one of the dependencies of the plugin (2.11.11). We could temporarily fix this problem but upgrading cbt's scala version but it would also apply again whenever a new Scala version comes out. Will have to think of a solution for this. Nice find in any case. This would have popped up soon anyways.

@cvogt
Copy link
Owner

cvogt commented Sep 11, 2017

btw. the way I found out is by printing the classloader in the top line of cbt in the StackTrace of the crash. Lib.scala:70

@cvogt
Copy link
Owner

cvogt commented Sep 12, 2017

While I am still working on a more permanent fix, if you rebase your PR on this one: #560 you should be unblocked. Upgrading scala to 2.11.11 solved the problem for now. Note that there is still a crash, but it looks like a problem in your plugin this time.

@cvogt
Copy link
Owner

cvogt commented Sep 12, 2017

(#560 currently fails the build, but don't worry about that. It looks like it only affect cross-cbt-version integration, which shouldn't block you here and I'll look into as well)

@Jacoby6000
Copy link
Author

Awesome, thanks for looking in to this! I'll poke at it in a bit.

@Jacoby6000
Copy link
Author

I'll work on the tests, since we've addressed that classloader issue

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.

None yet

3 participants