Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
4 posts
|
I need diagrams in asciidoc, then I have installed asciidoctor-diagram as explained here. Then, the documentation requires:
You can install the Asciidoctor Diagram gem by typing gem install in the CLI. $ gem install asciidoctor-diagram by first adding the following entry to your project’s Gemfile. Gemfile gem 'asciidoctor-diagram' Then execute bundle in the CLI. $ bundle But I have only an asciidoc file, what is this "project's Gemfile" I am supposed to have? Needless to say I don't know ruby. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
2681 posts
|
If you don't know what a Gemfile is, then you don't need it. It's for use cases when Asciidoctor is used in a Ruby project that is managed by Bundler. If you are running Asciidoctor standalone, then you'll want to install the gem directly. gem install asciidoctor-diagram In order to have a proper Ruby and RubyGem environment, I strongly recommend using RVM. See https://rvm.io RVM creates a workspace in your home directory to install Ruby. (There are other options like chruby and rbenv). Best, -Dan On Thu, Jul 18, 2019 at 4:02 AM lalebarde [via Asciidoctor :: Discussion] <[hidden email]> wrote: I need diagrams in asciidoc, then I have installed asciidoctor-diagram as explained here. Then, the documentation requires: ... [show rest of quote] -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
4 posts
|
Thanks mojavelinux. That's what I did, I installed asciidoctor-diagram (not using rvm), but when I compile my asciidoc, here is what happens:
$ asciidoctor -r asciidoctor-diagram my.adoc --trace /var/lib/gems/2.3.0/gems/asciidoctor-diagram-1.5.18/lib/asciidoctor-diagram/extensions.rb:104:in `process': asciidoctor: FAILED: /home/lalebarde/Documents/my.adoc: Failed to load AsciiDoc document - undefined method `cursor_at_mark' for #<Asciidoctor::PreprocessorReader:0x0055ce87ecf940> (NoMethodError) from /usr/lib/ruby/vendor_ruby/asciidoctor/parser.rb:1088:in `[]' from /usr/lib/ruby/vendor_ruby/asciidoctor/parser.rb:1088:in `build_block' from /usr/lib/ruby/vendor_ruby/asciidoctor/parser.rb:883:in `next_block' from /usr/lib/ruby/vendor_ruby/asciidoctor/parser.rb:315:in `next_section' from /usr/lib/ruby/vendor_ruby/asciidoctor/parser.rb:303:in `next_section' from /usr/lib/ruby/vendor_ruby/asciidoctor/parser.rb:67:in `parse' from /usr/lib/ruby/vendor_ruby/asciidoctor/document.rb:475:in `parse' from /usr/lib/ruby/vendor_ruby/asciidoctor.rb:1348:in `load' from /usr/lib/ruby/vendor_ruby/asciidoctor.rb:1466:in `convert' from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:94:in `block in invoke!' from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:86:in `each' from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:86:in `invoke!' from /usr/bin/asciidoctor:14:in `<main>' Here is my.adoc: Test ==== == blabla ere etrezt eztz tyuuiyujhfdzd tyuuityur t(y(-u- t'(yè-iè_iyerfdf gbh jtygqrgfs jyuj rshjturty hey trhy etyurty trhy tyertyut rthyeyyry yrytry rrg:w [plantuml, diagram-classes, png] .... class BlockProcessor class DiagramBlock class DitaaBlock class PlantUmlBlock BlockProcessor <|-- DiagramBlock DiagramBlock <|-- DitaaBlock DiagramBlock <|-- PlantUmlBlock .... I am under Debian Stretch |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
2681 posts
|
That looks like a possible bug in Asciidoctor Diagram. You might want to report it. Btw, you aren't using RVM because I see system paths in the stack trace. While you're free to do it that way, it's not what I recommend. It's better not to mess with the system when installing packages in user space (plus you can use Ruby 2.6). -Dan On Thu, Jul 18, 2019, 04:32 lalebarde [via Asciidoctor :: Discussion] <[hidden email]> wrote: Thanks mojavelinux. That's what I did, I installed asciidoctor-diagram (not using rvm), but when I compile my asciidoc, here is what happens: ... [show rest of quote] |
Free forum by Nabble | Edit this page |