pete / live-console Goto Github PK
View Code? Open in Web Editor NEWLiveConsole, a Ruby gem for providing IRB over things other than stdio.
Home Page: http://debu.gs/live-console
LiveConsole, a Ruby gem for providing IRB over things other than stdio.
Home Page: http://debu.gs/live-console
if you run irb + live console in one windows, then do
raise
I get this:
/home/rdp/.gem/ruby/1.8/gems/live_console-0.2.2.3/lib/live_console.rb:160:in output': private method
gsub' called for RuntimeError:Class (NoMethodError)
from /home/rdp/.gem/ruby/1.8/gems/live_console-0.2.2.3/lib/live_console.rb:160:in each' from /home/rdp/.gem/ruby/1.8/gems/live_console-0.2.2.3/lib/live_console.rb:160:in
output'
from /home/rdp/.gem/ruby/1.8/gems/live_console-0.2.2.3/lib/live_console.rb:172:in print' from /usr/local/lib/ruby/1.8/irb.rb:159:in
eval_input'
from /usr/local/lib/ruby/1.8/irb.rb:263:in signal_status' from /usr/local/lib/ruby/1.8/irb.rb:147:in
eval_input'
from /usr/local/lib/ruby/1.8/irb/ruby-lex.rb:244:in each_top_level_statement' from /usr/local/lib/ruby/1.8/irb/ruby-lex.rb:230:in
loop'
from /usr/local/lib/ruby/1.8/irb/ruby-lex.rb:230:in each_top_level_statement' from /usr/local/lib/ruby/1.8/irb/ruby-lex.rb:229:in
catch'
from /usr/local/lib/ruby/1.8/irb/ruby-lex.rb:229:in each_top_level_statement' from /usr/local/lib/ruby/1.8/irb.rb:146:in
eval_input'
from /usr/local/lib/ruby/1.8/irb.rb:70:in start' from /usr/local/lib/ruby/1.8/irb.rb:69:in
catch'
from /usr/local/lib/ruby/1.8/irb.rb:69:in `start'
from /usr/local/bin/irb:13
and the local irb ends
using this as a main loop seemed to help
begin
IRB.start_with_io(irb_io, bind)
rescue Errno::EPIPE => e
- io.stop
end
+ io.stop
Cheers!
=r
github would appreciate it I'm sure :)
Using 1.9.2: when i connect netcat, i keep getting an exception:
undefined method external_encoding' for nil:NilClass /Users/rahul/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/irb/input-method.rb:70:in
encoding'
/Users/rahul/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/irb/ruby-lex.rb:242:in block (2 levels) in each_top_level_statement' /Users/rahul/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in
loop'
/Users/rahul/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in block in each_top_level_statement' /Users/rahul/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in
catch'
/Users/rahul/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in each_top_level_statement' /Users/rahul/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/irb.rb:155:in
eval_input'
/Users/rahul/.rvm/gems/ruby-1.9.2-head/gems/live_console-0.2.1/lib/live_console.rb:150:in block in start_with_io' /Users/rahul/.rvm/gems/ruby-1.9.2-head/gems/live_console-0.2.1/lib/live_console.rb:148:in
catch'
/Users/rahul/.rvm/gems/ruby-1.9.2-head/gems/live_console-0.2.1/lib/live_console.rb:148:in start_with_io' /Users/rahul/.rvm/gems/ruby-1.9.2-head/gems/live_console-0.2.1/lib/live_console.rb:70:in
block (2 levels) in start'
/Users/rahul/.rvm/gems/ruby-1.9.2-head/gems/live_console-0.2.1/lib/live_console.rb:65:in loop' /Users/rahul/.rvm/gems/ruby-1.9.2-head/gems/live_console-0.2.1/lib/live_console.rb:65:in
block in start'
However, when i run in 1.8.7, it works.
Could someone look into how to fix this for 1.9.x
(I am on OSX Snow Leopard)
Thanks, rkumar
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.