Home Download Buy Blog Forum Support

SublimeREPL

Re: SublimeREPL

Postby francescob on Thu Feb 07, 2013 10:18 am

hi, is it possibile to use ruby sublimeREPL in combination with rbenv?

Nevermind, i've found the solution, just paste

Code: Select all
{
     "default_extend_env": {
         "PATH": "{HOME}/.rbenv/shims:{PATH}"
     }
}


into the settings
francescob
 
Posts: 20
Joined: Mon Apr 23, 2012 2:52 pm

Re: SublimeREPL

Postby wuub on Thu Mar 14, 2013 11:56 pm

Sorry for the silence, I didn't keep an eye on this thread.

First things first: https://github.com/wuub/SublimeREPL/tree/st3 Subprocess repls should work as expected. Persisten hisory is broken for now.

===============

Any news on the possibility of iPython on Windows? That would be so great! :D

IPython is working on Windows for some time now.

SublimeREPL with ipython and pylab.

This is also fixed in the st3 & ipython-plot branches. Just remember to activate specific gui for pylab using:
Code: Select all
%pylab qt
or
%pylab wx


"bash: no job control in this shell". Any idea how to fix this?

I remember fixing similar problem in SublimePTY, IIRC it was this commit https://github.com/wuub/SublimePTY/comm ... 4afeb24d46 I will have to look into it.

Is there a way of forcing the syntax colouring to a custom setting in the REPL window?

You can adjust syntax files in in Packages/SublimeREPL/config/[Lang]/*.sublime-menu
TO be completely kosher, you should copy *.sublime-menu to your Packages/User/SublimeREPL/config/[Lang] directory beforehand, because otherwise your changes will be overwritten during next package update.

Is it possible to have a different setting for the window that runs the script and the one that emulates the interactive console?

Yeah, as long as the scope will match "something.[repl's external_id]" text_transfer will work
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 184
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: SublimeREPL

Postby jacaetevha on Thu Mar 21, 2013 3:45 pm

vitaLee wrote:ok i got it.
you need to make adjustment to Packages/SublimeREPL/config/Ruby/Main.sublime-menu
Code: Select all
"cmd": {
  "windows" : ["irb.bat", "--noreadline", "--inf-ruby-mode"],
  "linux"   : ["irb", "--noreadline", "--inf-ruby-mode"],
  "osx"     : ["/Users/user_name/.rvm/bin/default_irb", "--noreadline", "--inf-ruby-mode"]
},

and now it should respect current ruby version set in rvm


Since the IRB repl has been deprecated in favor of pry you need to update your pry_repl settings instead (make sure pry is installed of course):
Code: Select all
"cmd": {
  "windows": [
    // RVM doesn't run on Windows, so no changes needed
  ],
  "linux": [
    "/home/user_name/.rvm/bin/default_ruby",
    "${packages}/SublimeREPL/config/Ruby/pry_repl.rb",
    "$editor"
  ],
  "osx": [
    "/Users/user_name/.rvm/bin/default_ruby",
    "${packages}/SublimeREPL/config/Ruby/pry_repl.rb",
    "$editor"
  ]
}
jacaetevha
 
Posts: 1
Joined: Thu Mar 21, 2013 3:39 pm

Previous

Return to Plugin Announcements

Who is online

Users browsing this forum: n6333373 and 3 guests