yard/parser/ruby/ast_node.rb:49: syntax error, unexpected ':' (SyntaxError) #97

Closed
MikeTaylor opened this Issue Mar 11, 2010 · 3 comments

Comments

Projects
None yet
2 participants

Yard won't run on my system: Ruby 1.9.0 on Ubuntu GNU/Linux 8.10, with Ruby installed from the "ruby1.9" operating system package; yard 0.5.3 installed using gem1.9. Any ideas? Thanks!

mike@xeno:/usr/local/src/other/scottkit$ ruby1.9 /var/lib/gems/1.9.0/bin/yardoc
/var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ruby_parser.rb💯in block (1 levels) in <class:RubyParser>': /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:49: syntax error, unexpected ':' (SyntaxError) KEYWORDS = { class: true, alias: true, lambda: t... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:49: Can't assign to true ... KEYWORDS = { class: true, alias: true, lambda: true, d... ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:49: Can't assign to true ...S = { class: true, alias: true, lambda: true, do_block: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:49: Can't assign to true ...rue, alias: true, lambda: true, do_block: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:49: Can't assign to true /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:50: syntax error, unexpected ':' def: true, defs: true, begin: tru... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:50: Can't assign to true def: true, defs: true, begin: true, res... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:50: Can't assign to true ... def: true, defs: true, begin: true, rescue: true, r... ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:50: syntax error, unexpected ':' ... def: true, defs: true, begin: true, rescue: true, rescue_m... ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:50: Can't assign to true ... true, defs: true, begin: true, rescue: true, rescue_mod: tr... ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:50: Can't assign to true ...rue, begin: true, rescue: true, rescue_mod: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:50: Can't assign to true /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:51: syntax error, unexpected ':' if: true, if_mod: true, else: true, elsif: true, case: true, ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:51: Can't assign to true if: true, if_mod: true, else: true, elsif: true, case: true, ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:51: Can't assign to true if: true, if_mod: true, else: true, elsif: true, case: true, ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:51: Can't assign to true if: true, if_mod: true, else: true, elsif: true, case: true, ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:51: Can't assign to true if: true, if_mod: true, else: true, elsif: true, case: true, ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:51: syntax error, unexpected ':', expecting keyword_when if: true, if_mod: true, else: true, elsif: true, case: true, ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:51: Can't assign to true /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: Can't assign to true when: true, next: true, break: true, ret... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: void value expression when: true, next: true, break: true, retry: t... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: syntax error, unexpected ':', expecting tCOLON2 or '[' or '.' when: true, next: true, break: true, retry: tr... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: Can't assign to true ... when: true, next: true, break: true, retry: true, re... ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: void value expression ... when: true, next: true, break: true, retry: true, redo: tr... ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: syntax error, unexpected ':', expecting tCOLON2 or '[' or '.' ... when: true, next: true, break: true, retry: true, redo: tru... ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: Can't assign to true ... true, next: true, break: true, retry: true, redo: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: void value expression ... next: true, break: true, retry: true, redo: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: syntax error, unexpected ':', expecting tCOLON2 or '[' or '.' ...next: true, break: true, retry: true, redo: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: Can't assign to true ...true, break: true, retry: true, redo: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: void value expression ... break: true, retry: true, redo: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: syntax error, unexpected ':', expecting tCOLON2 or '[' or '.' ...break: true, retry: true, redo: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:52: Can't assign to true /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:53: void value expression return: true, throw: true, catch: t... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:53: syntax error, unexpected ':', expecting tCOLON2 or '[' or '.' return: true, throw: true, catch: tr... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:53: Can't assign to true return: true, throw: true, catch: true, un... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:53: Can't assign to true ... return: true, throw: true, catch: true, until: true, un... ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:53: Can't assign to true ...true, throw: true, catch: true, until: true, until_mod: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:53: syntax error, unexpected ':' ...hrow: true, catch: true, until: true, until_mod: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:53: Can't assign to true ...true, catch: true, until: true, until_mod: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:53: Can't assign to true /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:54: syntax error, unexpected ':' while: true, while_mod: true, yield... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:54: Can't assign to true while: true, while_mod: true, yield: true... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:54: Can't assign to true ... while: true, while_mod: true, yield: true, yield0: true, z... ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:54: syntax error, unexpected ':', expecting tCOLON2 or '[' or '.' ...: true, while_mod: true, yield: true, yield0: true, zsuper: ... ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:54: Can't assign to true ..., while_mod: true, yield: true, yield0: true, zsuper: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:54: Can't assign to true ...rue, yield: true, yield0: true, zsuper: true, ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:54: Can't assign to true /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:55: syntax error, unexpected ':' unless: true, unless_mod: true, for:... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:55: Can't assign to true unless: true, unless_mod: true, for: true,... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:55: Can't assign to true ...unless: true, unless_mod: true, for: true, super: true, retu... ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:55: syntax error, unexpected ':' ...s: true, unless_mod: true, for: true, super: true, return0: ... ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:55: Can't assign to true ...e, unless_mod: true, for: true, super: true, return0: true } ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:55: syntax error, unexpected ':', expecting tCOLON2 or '[' or '.' ...ss_mod: true, for: true, super: true, return0: true } ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:55: Can't assign to true ...: true, for: true, super: true, return0: true } ... ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:235: syntax error, unexpected keyword_do_cond, expecting keyword_end /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:236: syntax error, unexpected keyword_do_cond, expecting keyword_end q.seplist(objs, nil, :each) do |v| ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:238: syntax error, unexpected keyword_do_cond, expecting keyword_end q.seplist(options, nil, :each) do |k, v| ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:238: syntax error, unexpected '|', expecting '=' q.seplist(options, nil, :each) do |k, v| ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:239: syntax error, unexpected keyword_do_cond, expecting keyword_end q.group(3) do ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:241: syntax error, unexpected keyword_do_cond, expecting keyword_end q.group(3) do ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:246: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.' /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:267: syntax error, unexpected keyword_do_cond, expecting keyword_end nodes.each.with_index do |node, index| ^ /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:267: syntax error, unexpected '|', expecting '=' /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ast_node.rb:271: syntax error, unexpected keyword_end, expecting $end from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ruby_parser.rb:99:ineach'
from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ruby_parser.rb:99:in <class:RubyParser>' from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ruby_parser.rb:6:inmodule:Ruby'
from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ruby_parser.rb:5:in <module:Parser>' from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ruby_parser.rb:4:inmodule:YARD'
from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/ruby/ruby_parser.rb:3:in <top (required)>' from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/source_parser.rb:240:inparse_statements'
from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/source_parser.rb:166:in parse' from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/source_parser.rb:115:inparse_in_order'
from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/source_parser.rb:67:in block in parse' from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/logging.rb:48:inenter_level'
from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/parser/source_parser.rb:66:in parse' from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard.rb:12:inparse'
from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/cli/yardoc.rb:78:in run' from /var/lib/gems/1.9.0/gems/yard-0.5.3/lib/yard/cli/yardoc.rb:38:inrun'
from /var/lib/gems/1.9.0/gems/yard-0.5.3/bin/yardoc:4:in <top (required)>' from /var/lib/gems/1.9.0/bin/yardoc:19:inload'
from /var/lib/gems/1.9.0/bin/yardoc:19:in `

'

Owner

lsegal commented Mar 15, 2010

Don't treat 1.9.0 as a true "1.9"

Closed by e0c2b6a

Owner

lsegal commented Mar 15, 2010

Sidenote: you should probably tell your package maintainers (the ubuntu guys) that 1.9.0 is not 1.9. It never even had a stable release. I have no idea how it made it into your package repo.

Thanks, lsegal, I appreciate your quick turnaround. I'm running Ubuntu 8.10, which as the release number indicates is from October 2008: I think they're very unlikely ever to fix the ruby1.9 package on that release now, so I'm taking this as the final straw that drives me to the long-overdue upgrade.

Thanks again.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment