incubator-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Fisher (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (INCUBATOR-223) Website build fails with jbake 2.6.2
Date Wed, 20 Mar 2019 04:57:00 GMT

    [ https://issues.apache.org/jira/browse/INCUBATOR-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16796791#comment-16796791
] 

David Fisher edited comment on INCUBATOR-223 at 3/20/19 4:56 AM:
-----------------------------------------------------------------

I am building with jBake 2.6.4 that I set up with Homebrew on macOS 10.14.3. I didn't do anything
with Ruby. It pretty much worked once I got jbake-properties adjusted according to the Readme.
I ignored the environment setting.

My bake.sh is

{\{#!/bin/sh}}\{{export JBAKE_OPTS="-Djavax.xml.accessExternalDTD=http"}}
{\{jbake $@}}
  


was (Author: wave):
I am building with jBake 2.6.4 that I set up with Homebrew on macOS 10.14.3. I didn't do anything
with Ruby. It pretty much worked once I got jbake-properties adjusted according to the Readme.
I ignored the environment setting.

My bake.sh is

{{#!/bin/sh}}{{export JBAKE_OPTS="-Djavax.xml.accessExternalDTD=http"}}
{{ jbake $@}}

> Website build fails with jbake 2.6.2
> ------------------------------------
>
>                 Key: INCUBATOR-223
>                 URL: https://issues.apache.org/jira/browse/INCUBATOR-223
>             Project: Incubator
>          Issue Type: Bug
>          Components: site
>            Reporter: Shane Curcuru
>            Priority: Major
>
> OSX 10.x, jbake 2.6.2 from Homebrew fails to build the website.  Tips from anyone who's
built the website locally on Mac appreciated, especially if there are ruby or jbake version
limitations.
> jbake seems to parse a number of pages with some complaints, but then dies with:
> 10:12:51.910 INFO org.jbake.app.Crawler - Processing [/Users/curcuru/src/g/incubator/pages/past_podlings.ad]...
: new 
> 10:12:52.039 ERROR o.a.internal.JRubyAsciidoctor - org.jruby.RubyNoMethodError
> 10:12:52.041 INFO c.o.orient.core.Orient - Orient Engine is shutting down...
> 10:12:52.043 INFO c.o.orient.core.Orient - - shutdown storage: cache...
> 10:12:52.328 INFO c.o.orient.core.Orient - OrientDB Engine shutdown complete
> An unexpected error occurred: org.jruby.exceptions.RaiseException: (NoMethodError) asciidoctor:
FAILED: <stdin>: Failed to load AsciiDoc document - undefined method `start_with?' for
nil:NilClass
> org.asciidoctor.internal.AsciidoctorCoreException: org.jruby.exceptions.RaiseException:
(NoMethodError) asciidoctor: FAILED: <stdin>: Failed to load AsciiDoc document - undefined
method `start_with?' for nil:NilClass
>  at org.asciidoctor.internal.JRubyAsciidoctor.render(JRubyAsciidoctor.java:341)
>  at org.asciidoctor.internal.JRubyAsciidoctor.render(JRubyAsciidoctor.java:448)
>  at org.jbake.parser.AsciidoctorEngine.processAsciiDoc(AsciidoctorEngine.java:158)
>  at org.jbake.parser.AsciidoctorEngine.processBody(AsciidoctorEngine.java:152)
>  at org.jbake.parser.MarkupEngine.parse(MarkupEngine.java:118)
>  at org.jbake.app.Parser.processFile(Parser.java:44)
>  at org.jbake.app.Crawler.crawlSourceFile(Crawler.java:193)
>  at org.jbake.app.Crawler.crawl(Crawler.java:112)
>  at org.jbake.app.Crawler.crawl(Crawler.java:65)
>  at org.jbake.app.Oven.bake(Oven.java:137)
>  at org.jbake.launcher.Baker.bake(Baker.java:32)
>  at org.jbake.launcher.Main.run(Main.java:97)
>  at org.jbake.launcher.Main.run(Main.java:83)
>  at org.jbake.launcher.Main.main(Main.java:56)
> Caused by: org.jruby.exceptions.RaiseException: (NoMethodError) asciidoctor: FAILED:
<stdin>: Failed to load AsciiDoc document - undefined method `start_with?' for nil:NilClass
>  at RUBY.parse_section_title(uri:classloader:/gems/asciidoctor-1.5.7.1/lib/asciidoctor/parser.rb:1734)
>  at RUBY.initialize_section(uri:classloader:/gems/asciidoctor-1.5.7.1/lib/asciidoctor/parser.rb:1564)
>  at RUBY.next_section(uri:classloader:/gems/asciidoctor-1.5.7.1/lib/asciidoctor/parser.rb:290)
>  at RUBY.parse(uri:classloader:/gems/asciidoctor-1.5.7.1/lib/asciidoctor/parser.rb:96)
>  at RUBY.parse(uri:classloader:/gems/asciidoctor-1.5.7.1/lib/asciidoctor/document.rb:565)
>  at RUBY.load(uri:classloader:/gems/asciidoctor-1.5.7.1/lib/asciidoctor.rb:1361)
>  at RUBY.convert(uri:classloader:/gems/asciidoctor-1.5.7.1/lib/asciidoctor.rb:1473)
>  at RUBY.convert(<script>:82)
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org


Mime
View raw message