-
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
Unrecognized plantuml !theme keyword #1064
Comments
Latest asciidoctorj-diagram is 2.2.1, can you try with it? IntelliJ preview works fine and since it uses AsciidoctorJ at least we know it's possible.
If you can provide a reproducer it would be really helpful. |
Thank you @abelsromero for your feedback! I'm generating the document using the CLI on windows and not IntelliJ (I wish I could...). Using the flowing file (test_windows.adoc): == Let's use a diagram
.Awesome first diagram
[plantuml, first_diagram, svg]
....
@startuml
!theme spacelab
class Example {
Theme spacelab
}
@enduml
.... with the following command : c:\Users\XXX\Apps\asciidoctorj-2.5.2\bin\asciidoctorj.bat -r asciidoctor-diagram test_windows.adoc I have the following error:
I have downloaded Java HotSpot(TM) Client VM warning: TieredCompilation is disabled in this release.
Exception in thread "main" org.jruby.exceptions.LoadError: (MissingSpecError) Gem::MissingSpecError
at RUBY.to_specs(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/dependency.rb:311)
at RUBY.activate_dependencies(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/specification.rb:1400)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1809)
at RUBY.activate_dependencies(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/specification.rb:1389)
at RUBY.activate(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/specification.rb:1371)
at RUBY.try_activate(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems.rb:217)
at RUBY.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:151)
at RUBY.<main>(<script>:1) I can perform other tests if that helps. |
Curious, a simple program as shown below is fine, but indeed v2.5.2 cli fails. I'll will continue looking into it later. public static void main(String[] args) {
Asciidoctor asciidoctor = Asciidoctor.Factory.create();
asciidoctor.requireLibraries(List.of("asciidoctor-diagram"));
Attributes attributes = Attributes.builder()
.build();
Options options = Options.builder()
.backend("html5")
.safe(SafeMode.UNSAFE)
.mkDirs(true)
.toDir(new File("build"))
.attributes(attributes)
.build();
asciidoctor.convertFile(file("diagrams.adoc"), options);
} @gregLibert what's your use case? Until we see what's going on maybe we can suggest some alternative. |
@abelsromero my use case is pretty simple (and limited):
Maybe I can reuse your code sample to generate my documentation ? |
I was asking more in the line of goals, like "just exploring", "looking for options to integrate in CI". Here is an example using diagrams, https://github.com/asciidoctor/asciidoctor-maven-examples/tree/main/asciidoctor-diagram-example. I tested the example you provided and it works fine (which makes me wonder what's the issue with cli) |
I was looking into it and found that running from the embedded terminal in IntelliJ works 😵
|
Maybe a bit late but for other stumbling over this issue. In gradle (kotlin-dsl) this looks like
|
Hello,
When I try to generate documentation containing plantuml diagram with !theme keyword, the application raises a syntax error:
I'm using 2.5.2 package version.
Is asciidoctorj-diagram-2.1.2.jar obsolete? What kind of information/test can I do to clarify the issue?
R
The text was updated successfully, but these errors were encountered: