-
Notifications
You must be signed in to change notification settings - Fork 188
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
In our latest version (1.0.3) the npm/node/javascript instructions lead to a crash #145
Comments
I think it's an incompatibility between the version of Opal used to compile / run. |
So I should align Opal compiler version in my I'm going to try that tonight and if it fixes it issue an emergency 1.0.4 release. I might as well add a hardcoded document render task to catch these kinds of problems with Travis. |
Yes a simple smoke test is a good idea. With bestikk-opal-compiler version |
Is there a reason we are not specifying the asciidoctor.js dependency in our |
It looks like 1.5.5 was never pushed to npm repo:
|
Pulling in 1.5.5-5 instead of the documented 1.5.5-3 I get a different crash:
|
Hmmm I'm confused... Travis did push the archive on the GitHub release page but did not publish to npm... 🤔
What version of asciidoctor-template.js are we using ?
Not really, but since the Gem has a dependency on Asciidoctor, I think we should add it. |
In master the dependency was dropped, I guess this was due to the fact that we compile the template into ruby. In 1.0.3 (which is the one I'm trying to fix right now) it's 1.5.5-3. Right now, for testing, following the notes in
Side note: Having an explicit dependency on
|
Another attempt:
Tried a force install of opal-runtime 0.11.0-integration8 too. Didn't work:
I really don't like this black magic npm stuff... |
If you do install a local copy with asciidoctor-reveal.js/package.json Line 5 in 98ccfcb
The following should work, Asciidoctor.js version v1.5.5-4 and below are using Opal 0.10.1. Do you have a stacktrace ?
Did you compile Asciidoctor Reveal.js using bestikk-opal-compiler version 0.3.0-integration7 ? If you have a doubt you can look at the generated file and you should see comments with the Opal version:
It's not necessary to do that and this version does not fully work with Asciidoctor.js. Versioning Opal runtime/compiler Bestikk Asciidoctor template You should try the version defined here: https://github.com/asciidoctor/asciidoctor.js/blob/v1.5.5-5/package.json
We do have tests in Asciidoctor.js on the integration with Asciidoctor template.js: https://github.com/asciidoctor/asciidoctor.js/blob/v1.5.5-5/spec/node/asciidoctor.spec.js#L14 Since tests were green on Asciidoctor.js 1.5.5-5, this combinaison of versions should definitely works. Sorry about this "version compatibility hell", I'm still trying to figure out how integrate each pieces. If you have any ideas on how to improve/simplify, please let me know 😉
Since we are mostly using strict version, we should be fine 😛 🎱 |
This is with
The original stack trace I posted:
I'll give it a shot with the versions you suggested and I'll report back. |
That combination worked! Hurray! |
Fixed with v.1.0.4 release: https://github.com/asciidoctor/asciidoctor-reveal.js/releases/tag/v1.0.4 |
@Mogztter have a look at the doc I wrote and tell me if it makes sense: https://github.com/asciidoctor/asciidoctor-reveal.js/blob/master/HACKING.adoc#node-package |
Yes it's fine, thanks for your work! 👍 On master branch, I think we shouldn't mention |
Good point. Change made in 250935a. |
Perfect 👌 |
EDIT: so sorry for the noise - I messed around with this some more and discovered that it was an error in the slide I was trying to render. Once I excised the troublesome parts from the
I'm running node 9.11.1 and npm 5.8.0 via homebrew on OS/X. Am I missing something? I read the above thread but didn't see anything I'm obviously doing wrong. I'm not trying to build asciidoctor or this backend locally, I just want to use them to render my slides. |
No worries @timgilbert Thanks |
Following the instructions in the README to install and run asciidoctor-reveal.js 1.0.3 with asciidoctor.js 1.5.5 leads to a crash:
@Mogztter any ideas where to look at?
I run node v8.5.0.
The text was updated successfully, but these errors were encountered: