-
Notifications
You must be signed in to change notification settings - Fork 172
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
asciidoctorj-pdf error when processing #857
Comments
This looks like an incompatibly with JRuby. Can you figure out which
version of JRuby is being used? Try to turn up the verbosity in Maven and
search for the string jruby.
|
These are the versions of JRuby: [DEBUG] org.asciidoctor:asciidoctor-maven-plugin:jar:1.6.0: [DEBUG] org.asciidoctor:asciidoctorj-pdf:jar:1.5.0-alpha.15:compile [DEBUG] org.asciidoctor:asciidoctorj:jar:1.6.2:compile [DEBUG] Included: org.asciidoctor:asciidoctor-maven-plugin:jar:1.5.6 Caused by: org.jruby.exceptions.RaiseException: (SyntaxError) C:/Users/username/.m2/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-beta.6/asciidoctorj-pdf-1.5.0-beta.6.jar!/gems/asciidoctor-pdf-1.5.0.beta.6/lib/asciidoctor/pdf/ext/core/numeric.rb:3: syntax error, unexpected kDO_BLOCK |
It appears you have multiple versions of Ruby on the classpath. Most concerning is JRuby 1.7.26, which is no longer supported. And that's likely why you're getting the error. You must at least be using JRuby 9.1. |
The comment above was aggregating information and i was changing version in pom.xml. |
That's a low-level Ruby language compliance error. It indicates that the
JRuby dependency is outdated.
I'm not exactly sure what to tell you to change to get the right version of
JRuby, but I'm certain that's the problem.
Does the example project have the same issue? If not, you could use it as a
reference. So that would be something to check first.
|
Here's a branch that shows that the example works: asciidoctor/asciidoctor-maven-examples#88 It also works if I test it with these versions:
So I think your dependencies have disagreements. I'd need to see a full example to know more. |
Noted! I will upgrade all versions for all projects today. I started it, but kindlegen is giving me some headaches on this machine and I want to test all projects manually.I'll do when I get home later (in 9h). Do you mind If I close this PR? |
You can close the PR. I submitted merely as a reference for answering this issue. |
Ok, thanks. I am happy that version 1.6.0 works fine with 1.5.0-beta.6 in my case. Which i do not have anywhere in my project. Does not provide JRuby? I think that for example:
Contains:
That is JRuby or what? If i would provide
Then i see conflict in my Depedency Analyzer with jruby-complete. Probably in version 1.5.0-alpha.18 it is not inside anymore. |
jruby-complete is provided by the maven plugin as a default, is not part of dependencies of asciidoctorj or asciidoctorj-pdf.
I can't help here, but I assure you it is safe. Also, I recommend to use the latest maven plugin version as shown in the examples. It is a RC, but is perfectly stable. |
Please reopen the ticket if the error still occurs with the latest versions of the asciidoctor-maven-plugin, asciidoctorj and asciidoctorj-pdf. |
I have got following error:
Maven:
works fine if I change
to
<version>1.5.0-alpha.15</version>
The same occurs on:
When I change version from 1.5.6 to 1.6.0 it does not immediately give error as in the examples above. Consider giving some matrix telling which version to use.
The text was updated successfully, but these errors were encountered: