Skip to content

uninitialized constant Tilt (NameError) when running convert_book.rb #88

Open
@rdhyee

Description

@rdhyee

When I try to run to convert an AsciiDoc file in my folder (dubliners, in case):

ruby scripts/convert_book.rb dubliners

I run into the following error:

Failed to parse source, uninitialized constant Tilt (NameError)

in the context of the full error message:

/usr/local/lib/ruby/gems/2.2.0/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1362:in `rescue in load': asciidoctor: FAILED: <stdin>: Failed to parse source, uninitialized constant Tilt (NameError)
    from /usr/local/lib/ruby/gems/2.2.0/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1281:in `load'
    from /usr/local/lib/ruby/gems/2.2.0/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1458:in `convert'
    from scripts/convert_book.rb:12:in `block in <main>'
    from scripts/convert_book.rb:9:in `glob'
    from scripts/convert_book.rb:9:in `<main>'

I'm running

ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin13]

on OS X 10.9.5

with the following gems:

asciidoctor (1.5.2)
bigdecimal (1.2.7, 1.2.6)
bundler (1.9.3)
diff-lcs (1.2.4)
faraday (0.9.1)
highline (1.7.1, 1.6.21)
io-console (0.4.3)
json (1.8.2, 1.8.1)
librarian (0.1.2)
librarian-ansible (1.0.6)
mini_portile (0.6.2)
minitest (5.5.1, 5.4.3)
multipart-post (2.0.0)
nokogiri (1.5.10)
power_assert (0.2.3, 0.2.2)
psych (2.0.13, 2.0.8)
rake (10.4.2)
rdoc (4.2.0)
rspec (2.14.1)
rspec-core (2.14.6)
rspec-expectations (2.14.3)
rspec-mocks (2.14.3)
test-unit (3.0.9, 3.0.8)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1, 1.4.1)

I get the same problem regardless what AsciiDoc file I have in dubliners.

I'm a newbie rubyist, so I might be simply making a rookie error. Please advise. Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions