[DRE-maint] Bug#935196: asciidoctor: Source highlighting does not work any more
Sebastien Helleu
flashcode at flashtux.org
Tue Aug 20 20:18:15 BST 2019
Package: asciidoctor
Version: 2.0.10-1
Severity: normal
Dear Maintainer,
After upgrade from veresion 1.5.8 to 2.0.10, I can not use syntax highlighting any more.
Steps to reproduce:
$ touch test.adoc
$ asciidoctor -a source-highlighter=prettify -o test.html test.adoc
Output is:
$ asciidoctor -a source-highlighter=prettify -o test.html test.adoc
cannot load such file -- /usr/lib/ruby/lib/asciidoctor/syntax_highlighter
Use --trace for backtrace
With --trace:
$ asciidoctor --trace -a source-highlighter=prettify -o test.html test.adoc
Traceback (most recent call last):
15: from /usr/bin/asciidoctor:15:in `<main>'
14: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:111:in `invoke!'
13: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:111:in `each'
12: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:128:in `block in invoke!'
11: from /usr/lib/ruby/vendor_ruby/asciidoctor/convert.rb:183:in `convert_file'
10: from /usr/lib/ruby/vendor_ruby/asciidoctor/convert.rb:183:in `open'
9: from /usr/lib/ruby/vendor_ruby/asciidoctor/convert.rb:183:in `block in convert_file'
8: from /usr/lib/ruby/vendor_ruby/asciidoctor/convert.rb:78:in `convert'
7: from /usr/lib/ruby/vendor_ruby/asciidoctor/load.rb:83:in `load'
6: from /usr/lib/ruby/vendor_ruby/asciidoctor/document.rb:549:in `parse'
5: from /usr/lib/ruby/vendor_ruby/asciidoctor/parser.rb:92:in `parse'
4: from /usr/lib/ruby/vendor_ruby/asciidoctor/parser.rb:186:in `parse_document_header'
3: from /usr/lib/ruby/vendor_ruby/asciidoctor/document.rb:814:in `finalize_header'
2: from /usr/lib/ruby/vendor_ruby/asciidoctor/document.rb:1237:in `save_attributes'
1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- /usr/lib/ruby/lib/asciidoctor/syntax_highlighter (LoadError)
Note that asciidoctor works fine if the option "-a source-highlighter=prettify" is not given.
A downgrade to version 1.5.8 of asciidoctor and ruby-asciidoctor fixes the problem.
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.2.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages asciidoctor depends on:
ii ruby 1:2.5.1
ii ruby-asciidoctor 2.0.10-1
ii ruby1.9.1 [ruby-interpreter] 1.9.3.484-2
ii ruby2.0 [ruby-interpreter] 2.0.0.484+really457-3
ii ruby2.1 [ruby-interpreter] 2.1.5-4
ii ruby2.2 [ruby-interpreter] 2.2.4-1
asciidoctor recommends no packages.
asciidoctor suggests no packages.
-- no debconf information
More information about the Pkg-ruby-extras-maintainers
mailing list