louismullie / treat

Natural language processing framework for Ruby.
Other
1.36k stars 128 forks source link

Parsing problem #63

Open juanbits opened 10 years ago

juanbits commented 10 years ago

hi, i try to install this gem and i receive the next errror:


C:\Users\username>gem install treat --version 2.0.7 Thanks for installing Treat. To complete the installation, run require treat in an IRB terminal, followed by Treat::Core::Installer.install. Successfully installed treat-2.0.7 Parsing documentation for treat-2.0.7

RDoc::Parser::Ruby failure around line 214 of lib/treat/entities/entity/buildable.rb

Before reporting this, could you check that the file you're documenting has proper syntax:

C:/Ruby200-x64/bin/ruby.exe -c lib/treat/entities/entity/buildable.rb

RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.

The internal error was:

    (NoMethodError) undefined method `name' for {TkNL 5521, 213:40 "\n"}:RDo

c::RubyToken::TkNL

ERROR: While executing gem ... (NoMethodError) undefined method `name' for {TkNL 5521, 213:40 "\n"}:RDoc::RubyToken::TkNL

C:\Users\username>

thanks for help me

aantix commented 10 years ago

Received this as well. :+1:

aantix commented 10 years ago

I just skipped the rdocs. gem install treat --no-rdoc --no-ri

yochze commented 10 years ago

Got that on OS X as well, @aantix tip helped.

chrisanderton commented 10 years ago

given the error trace then it looks like the newlines partway through the module name are causing rdoc to barf - i've just committed a tweak in my fork which has now been pulled in

agarie commented 9 years ago

Shouldn't this issue be closed?