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
Registering java extensions fails because java_import syntax #250
Comments
Konrad, A pull request would be a most welcomed gift! You've bumped into one of those really quirky corner cases in JRuby. JRuby Since we're importing an unknown qualified class, we should definitely be Happy Holidays to you too! -Dan
|
Oh interesting. Indeed, all examples I saw that "just worked" were |
Oh yeah!! |
Resolves asciidoctor#250, including test which fails without this fix
I was thinking that the fix to this bug might warrant a 1.5.2.1 release. We definitely want to be able to use the proper API in the sbt plugin out of the gate. |
Would be awesome, thanks guys :-) still got my hack in there currently. Konrad
|
I have just read now the latest mesage of @mojavelinux and I have already accepted some PR, the good news are that they are bug fixing, so we can do a 1.5.2.1 release without any problem. Converters part are still no their own branch. |
1.5.2.1 would be very nice - I could throw out my reflection hacks then :) |
I went ahead and created a milestone for 1.5.2.1 and added this issue to it. We can probably wait a couple of days to make sure we have everything we need covered (including the fix for requiring a Ruby library that is needed for Asciidoclet). Then we can attempt to push out a release. It will certainly be good practice. |
Resolves #250, including test which fails without this fix
The problem is still present. I don't find it in the announced 1.5.2.1/1.5.3 milestones. |
Hi guys,
a rather surprising problem I bumped into today, seems I'm unable to register extensions implemented in Java (well Scala, but I don't think it matters for the subject at hand) due to a syntax (?) problem with how
import_java
is being used inJavaExtensionRegistry
here: https://github.com/asciidoctor/asciidoctorj/blob/master/asciidoctorj-core/src/main/java/org/asciidoctor/extension/JavaExtensionRegistry.java#L63I know a bit of JRuby and know that the syntax "should" be valid, yet if fails for me with:
The extension being an
pl.project13.scala.sbt.extension.HtmlLayoutWrapper
.I found that quoting the imported class solves the problem, so instead of:
doing:
This is on
asciidoctorj-1.5.2.jar
extecuted inside sbt0.13.7
, and I don't think it's a classloader issue (worked around those already).Anyway, if you'd be happy to accept a PR with the added quotes I'd happily submit one as I could throw out my ugly hacks from the sbt plugin then ;-)
Oh, and merry x-mas guys! 🎄
The text was updated successfully, but these errors were encountered: