Created
July 18, 2013 14:27
-
-
Save mjc/6029781 to your computer and use it in GitHub Desktop.
rbx error differences
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Moo | |
def self.moo | |
a = 50a | |
end | |
end | |
# require './moo.rb' in pry | |
# rbx: | |
# SyntaxError: /usr/local/rvm/rubies/rbx-head/runtime/melbourne.rbc:81: expecting keyword_end | |
# from /usr/local/rvm/rubies/rbx-head/runtime/melbourne.rbc:81:in `syntax_error' | |
# MRI 2.0.0p247 | |
# SyntaxError: /var/www/apps/movingdirectory/current/moo.rb:3: syntax error, unexpected tIDENTIFIER, expecting keyword_end | |
# from (pry):1:in `require' |
Author
mjc
commented
Jul 18, 2013
sasha:rubinius brian$ rbx syntax_error.rb
A syntax error has occurred:
expecting keyword_end
near line /source/rubinius/rubinius/syntax_error.rb:3, column 11
Code:
a = 50a
^
Backtrace:
Rubinius::Melbourne(Rubinius::Melbourne19)#syntax_error at staging/runtime/melbourne.rbc:81
Rubinius::Melbourne(Rubinius::Melbourne19)#parse_file at staging/runtime/melbourne.rbc:97
Rubinius::Compiler::FileParser#parse at staging/runtime/compiler/stages.rbc:225
Rubinius::Compiler::Parser(Rubinius::Compiler::FileParser)#run at staging/runtime/compiler
/stages.rbc:207
Rubinius::Compiler#run at staging/runtime/compiler/compiler.rbc:375
Rubinius::Compiler.compile at staging/runtime/compiler/compiler.rbc:91
Rubinius::CodeLoader#compile_file at kernel/delta/codeloader.rb:182
Rubinius::CodeLoader#load_file at kernel/delta/codeloader.rb:156
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:64
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:119
Rubinius::Loader#script at kernel/loader.rb:649
Rubinius::Loader#main at kernel/loader.rb:850
sasha:rubinius brian$ ruby -v syntax_error.rb
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
syntax_error.rb:3: syntax error, unexpected tIDENTIFIER, expecting keyword_end
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment