Home Download Buy Blog Forum Support

SublimeREPL

Re: SublimeREPL

Postby wuub on Sat Mar 10, 2012 8:45 pm

Meh :/, I know very well that it's not super useful. I would prefer to have something in between REPL and PTY as neither approach is great...
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: SublimeREPL

Postby C0D312 on Sat Mar 10, 2012 8:59 pm

wuub wrote:Meh :/, I know very well that it's not super useful. I would prefer to have something in between REPL and PTY as neither approach is great...


You could always do what I do and just cut and paste random lines from both REPL and PTY and paste them into a Super Plugin. That way EVERYBODY wins.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: SublimeREPL

Postby S0und on Tue Mar 20, 2012 7:49 pm

I'm pretty new to python, and i have no idea how to setup REPL, i got this error if i select this:
tools-> SublimeREPL -> python-> python

---------------------------
Sublime Text 2
---------------------------
WindowsError(2, 'The system cannot find the file specified')
---------------------------
OK
---------------------------
S0und
 
Posts: 70
Joined: Wed Oct 28, 2009 4:12 pm

Re: SublimeREPL

Postby wuub on Tue Mar 20, 2012 7:53 pm

Add python to your PATH.
Verify that you can run python from the console (cmd.exe)

Image
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: SublimeREPL

Postby S0und on Tue Mar 20, 2012 8:03 pm

the setup is fine, as it seems

Image
S0und
 
Posts: 70
Joined: Wed Oct 28, 2009 4:12 pm

Re: SublimeREPL

Postby wuub on Tue Mar 20, 2012 8:07 pm

Then SublimeREPL should be able to launch python w/o issues.
If you are still experiencing this problem , try creating

..\AppData\Roaming\Sublime Text 2\Packages\User\SublimeREPL.sublime-settings
with the following content

Code: Select all
{
   "default_extend_env": {"PATH": "{PATH};C:\\Python27"}
}
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: SublimeREPL

Postby wuub on Thu Apr 26, 2012 12:48 pm

Just to let everyone know. Thanks to excellent work of people at Mozilla Foundation and Peter Astrand I was finally able to fix a long standing and very annoying bug on windows.

Bug: Closing a REPL tab that was launched using .bat file (Ruby/irb.bat, Clojure/lein.bat, ...) killed only the child cmd.exe while the interpreter process itself was left running.

It's possible that it will also remove the need for soft_quit on other platforms (https://github.com/wuub/SublimeREPL/issues/17) but I need to check this firs.
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: SublimeREPL

Postby xeno.by on Wed May 02, 2012 11:26 am

wuub wrote:Just to let everyone know. Thanks to excellent work of people at Mozilla Foundation and Peter Astrand I was finally able to fix a long standing and very annoying bug on windows.

Bug: Closing a REPL tab that was launched using .bat file (Ruby/irb.bat, Clojure/lein.bat, ...) killed only the child cmd.exe while the interpreter process itself was left running.

It's possible that it will also remove the need for soft_quit on other platforms (https://github.com/wuub/SublimeREPL/issues/17) but I need to check this firs.


What's the status on this Windows bug? I've checked github, but can't see a fix.
xeno.by
 
Posts: 104
Joined: Mon Jan 30, 2012 10:03 am
Location: Lausanne, Switzerland

Re: SublimeREPL

Postby wuub on Wed May 02, 2012 12:23 pm

What's the status on this Windows bug? I've checked github, but can't see a fix.


Development is going on in master branch. I've set github to show release as a default branch instead so anyone can clone github repo and get a stable code instead of my latest dev version that might not work (it points to the latest version released via Package Control).

I will try to make the recent changes cross-platform tomorrow and push 1.30 via Package Control.
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: SublimeREPL

Postby wuub on Mon May 07, 2012 8:33 pm

1.0.30 is now live on Package Control (as soon as it refreshes itself) and github/release.

Notable changes:
- default F2 key bindings has been commented out as they were conflicting with ST2 bookmarks
- deleting whole content of REPL buffer broke ruby, this should not happen now
- killableprocess is now used instead of subprocess to launch and kill repls. This should fix problems with runaway processes
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 4 guests