lt-ruby
lt-ruby copied to clipboard
errors evaluating
Evaluating lines with ctrl-enter doesn't produce results but errors.
I am using LT 0.6.7, Ruby InstaRepl 0.0.15 on Fedora20 64bit.
Ruby is: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
#!/usr/bin/env ruby
def myFunc(s)
return "foo"
end
s = myFunc("hello world")
#<NoMethodError: undefined method `myFunc' for main:Object>
/home/marcus/prg/ruby/test/test.rb:11:in `<main>'
/home/marcus/.config/LightTable/plugins/Ruby_Instarepl/rb-src/lt_client.rb:124:in `eval'
/home/marcus/.config/LightTable/plugins/Ruby_Instarepl/rb-src/lt_client.rb:124:in `eval_ruby'
/home/marcus/.config/LightTable/plugins/Ruby_Instarepl/rb-src/lt_client.rb:92:in `receive_data'
/home/marcus/.rvm/gems/ruby-2.1.2/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
/home/marcus/.rvm/gems/ruby-2.1.2/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
/home/marcus/.config/LightTable/plugins/Ruby_Instarepl/rb-src/lt_client.rb:212:in `<main>'
puts s
#<NameError: undefined local variable or method `s' for main:Object>
/home/marcus/prg/ruby/test/test.rb:15:in `<main>'
/home/marcus/.config/LightTable/plugins/Ruby_Instarepl/rb-src/lt_client.rb:124:in `eval'
/home/marcus/.config/LightTable/plugins/Ruby_Instarepl/rb-src/lt_client.rb:124:in `eval_ruby'
/home/marcus/.config/LightTable/plugins/Ruby_Instarepl/rb-src/lt_client.rb:92:in `receive_data'
/home/marcus/.rvm/gems/ruby-2.1.2/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
/home/marcus/.rvm/gems/ruby-2.1.2/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
/home/marcus/.config/LightTable/plugins/Ruby_Instarepl/rb-src/lt_client.rb:212:in `<main>'
Try selecting all the relevant lines and hit ctrl-enter, or use ctrl-shift-enter to evaluate the whole file.