Skip to content
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

asciidoctor.js support is currently broken #143

Closed
obilodeau opened this issue Sep 22, 2017 · 7 comments
Closed

asciidoctor.js support is currently broken #143

obilodeau opened this issue Sep 22, 2017 · 7 comments

Comments

@obilodeau
Copy link
Member

obilodeau commented Sep 22, 2017

We need to wait for upstream to release a new version with this fixed integrated: asciidoctor/asciidoctor.js#370

This issue blocks the 1.1.0 release since we have no javascript story without asciidoctor.js

Stack trace:

$ node asciidoctor-revealjs.js 

/home/olivier/src/asciidoc/presentation-asciidoctorjs-test/node_modules/asciidoctor.js/dist/asciidoctor.js:26264
              } else { throw $err; }
                       ^
Cache: uninitialized constant ThreadSafe::Cache
@mojavelinux
Copy link
Member

We're almost ready for an Asciidoctor.js release. There's just one more issue to resolve. I'm going to try to get to it as soon as I can...this weekend looks probable.

@obilodeau
Copy link
Member Author

No rush. I just opened the ticket to remember and tick checkboxes on the #131 PR 😉

@mojavelinux
Copy link
Member

FYI, I updated the PR that was holding back the release. We just need to settle another issue regarding the Opal upgrade and we should be good to go.

@ggrossetie
Copy link
Member

@obilodeau How do you generate the file lib/asciidoctor-revealjs/converter.rb in "Opal mode" ? In Rakefile we are using this condition:

  generator = if :mode == :opal
    Temple::Generators::ArrayBuffer.new(freeze_static: false)
  else
    Temple::Generators::StringBuffer
  end

I've tried different syntax, but I'm unable to set mode => :opal

ggrossetie added a commit to ggrossetie/asciidoctor-reveal.js that referenced this issue Oct 8, 2017
* Create a Rake task to generate a version of the Ruby converter which is compatible with Opal
* Add asciidoctor.js as a dependency
* Update HACKING and README accordingly
@jirutka
Copy link
Member

jirutka commented Oct 8, 2017

This code snippet is wrong, mode should be a variable, not a symbol.

@ggrossetie
Copy link
Member

@jirutka I've moved this block and replaced :mode by args[:mode], see https://github.com/asciidoctor/asciidoctor-reveal.js/pull/156/files#diff-52c976fc38ed2b4e3b1192f8a8e24cffR21
Not sure if this was the original intention but now I can run this task with Rake::Task[CONVERTER_FILE].invoke(:opal)

@jirutka
Copy link
Member

jirutka commented Oct 8, 2017

Yes, but I eventually changed the approach for reasons I don’t remember right now, now I recommend this: https://github.com/jirutka/asciidoctor-html5s/blob/opal/Rakefile.

obilodeau added a commit that referenced this issue Oct 12, 2017
resolves #143, Upgrade to Asciidoctor.js 1.5.6-preview.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants