coatl / rubylexer

RubyLexer is a hyper-correct lexer library for Ruby, written in Ruby.
http://rubyforge.org/projects/rubylexer/
GNU Lesser General Public License v2.1
14 stars 2 forks source link

fails in 1.9.1 #7

Open rdp opened 14 years ago

rdp commented 14 years ago

When attempting to use "seamless" which uses rubylexer, got this:


C:\dev\ruby\downloads\seamless\pkg>ruby driver.rb
C:/Ruby19/lib/ruby/gems/1.9.1/gems/seamless-1.0.0/lib/seamless/endless.rb:139:in `block (2 levels) in ': implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly. (RuntimeError)
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rubylexer-0.7.7/lib/rubylexer.rb:1001:in `parse_keywords'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rubylexer-0.7.7/lib/rubylexer.rb:482:in `identifier'
        from (eval):25:in `identifier'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rubylexer-0.7.7/lib/rubylexer/charhandler.rb:86:in `go'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rubylexer-0.7.7/lib/rubylexer/rulexer.rb:88:in `get1token'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rubylexer-0.7.7/lib/rubylexer.rb:270:in `get1token'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/seamless-1.0.0/lib/seamless/endless.rb:211:in `preprocess'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/seamless-1.0.0/lib/seamless/endless.rb:192:in `block (2 levels) in load'
        from C:/Ruby19/lib/ruby/1.9.1/tempfile.rb:199:in `open'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/seamless-1.0.0/lib/seamless/endless.rb:191:in `block in load'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/seamless-1.0.0/lib/seamless/endless.rb:186:in `each'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/seamless-1.0.0/lib/seamless/endless.rb:186:in `load'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/seamless-1.0.0/lib/seamless.rb:6:in `load'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/polyglot-0.3.1/lib/polyglot.rb:48:in `load'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/polyglot-0.3.1/lib/polyglot.rb:67:in `rescue in require'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `require'
        from driver.rb:3:in `
' C:\dev\ruby\downloads\seamless\pkg>cat driver.rb require 'rubygems' require 'seamless' require './go' Hello::World::Runner.new('abc').run C:\dev\ruby\downloads\seamless\pkg>cat go.rbe module Hello module World class Runner def initialize(user) @user = user def run puts "Hello, #{@user}" Hello::World::Runner.new('abc').run

That's with 0.7.7