You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class PDFConverterTableRole < (Asciidoctor::Converter.for 'pdf')
register_for 'pdf'
def convert_table node
if node.role ?
key_prefix = %(role_<table>_#{node.roles[0]}_)
unless (role_entries = theme.each_pair.select {|name, val| name.to_s.start_with ? key_prefix }).empty ?
save_theme do
role_entries.each do |name, value|
theme[%(table_#{name.to_s.delete_key_prefix})] = val
end
super
end
return
end
end
super
end
end
I placed the extension in .asciidocotor/lib/TableRole.rb at the root of the project.
When I preview it, I get the following error:
Unable to render AsciiDoc document
org.jruby.exceptions.TypeError : (TypeError) superclass must be a Class (NilClass given)
I tried adding the following line to the beginning of the ruby file:
require 'asciidoctor/pdf
In this case the preview works but generating the pdf fails with the plugin button.
I manage to get the preview and pdf generation to work without using the "require" line and by writing the following inheritance: PDFConverterTableRole class < Asciidoctor::Converter::Base.
Until yesterday (version 2023.2.3 Phpstorm), this worked. Since the update to 2023.2.5, it no longer works.
Environment
Asciidoc plugin version: 0.40.9
IDE details : PhpStorm 2023.2.5
Build #PS-232.10300.41, built on 14 February 2024
Under license ***
Subscription is active until 20 November 2024.
Runtime version: 17.0.10+7-b1000.48 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4082M
Cores: 20
Registry :
ide.intellij.laf.enable.animation=true
debugger.new.tool.window.layout=true
run.processes.with.pty=TRUE
ide.experimental.ui=true
ide.balloon.shadow.size=0
Hello,
Observed vs. expected behavior
I'm trying to use the extension described here https://docs.asciidoctor.org/pdf-converter/latest/extend/use-cases/#theme-table-using-roles.
I placed the extension in
.asciidocotor/lib/TableRole.rb
at the root of the project.When I preview it, I get the following error:
I tried adding the following line to the beginning of the ruby file:
In this case the preview works but generating the pdf fails with the plugin button.
I manage to get the preview and pdf generation to work without using the "require" line and by writing the following inheritance:
PDFConverterTableRole class < Asciidoctor::Converter::Base
.Until yesterday (version 2023.2.3 Phpstorm), this worked. Since the update to 2023.2.5, it no longer works.
Environment
Asciidoc plugin version: 0.40.9
IDE details : PhpStorm 2023.2.5
Build #PS-232.10300.41, built on 14 February 2024
Under license ***
Subscription is active until 20 November 2024.
Runtime version: 17.0.10+7-b1000.48 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4082M
Cores: 20
Registry :
ide.intellij.laf.enable.animation=true
debugger.new.tool.window.layout=true
run.processes.with.pty=TRUE
ide.experimental.ui=true
ide.balloon.shadow.size=0
Ungrouped plugins :
com.mallowigi.idea (22.0.0)
com.intellij.ideolog (222.3.2.0)
com.markskelton.one-dark-theme (5.10.0)
com.intellij.properties (232.8660.88)
String Manipulation (9.12.0)
Key Promoter X (2023.3.0)
com.github.gitofleonardo.simplesqlitebrowser (1.0.7)
com.intellij.plugin.adernov.powershell (2.3.1)
PlantUML integration (7.7.0-IJ2023.2)
org.asciidoctor.intellij.asciidoc (0.40.9)
com.jetbrains.lang.ejs (232.8660.142)
mobi.hsz.idea.gitignore (4.5.2)
com.intellij.plugins.html.instantEditing (232.8660.142)
izhangzhihao.rainbow.brackets (2023.3.7)
com.kalessil.phpStorm.phpInspectionsEA (5.0.0.0)
com.github.ArtsiomCh.NestedBracketsColorer (0.
The text was updated successfully, but these errors were encountered: