Home Download Buy Blog Forum Support

SublimeREPL

Re: SublimeREPL

Postby vitaLee on Wed May 16, 2012 2:06 pm

that's what i wanted to achieve and it works for me.
regarding your questions about running rails console that would probably be ideal for a plugin on its own. :)
vitaLee
 
Posts: 150
Joined: Tue Dec 27, 2011 11:10 pm

Re: SublimeREPL

Postby wuub on Wed May 16, 2012 2:19 pm

I'll see what can be done when I get back from work. ;)
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 outer7 on Wed May 23, 2012 12:25 pm

Hi,

I use SublimeREPL with Python all the time. Its great. But I have recently found an issue with memory not being released. When I close a REPL tab it does not kill the process. If I check in 'system monitor' it says 'sleeping' and 'pipe-wait', and the memory is still tied up.

To reproduce it:

* Open a REPL python tab.
* Do something that consumes a lot of memory, such as:
>>> data = np.asarray([i for i in xrange(1000 * 10000)]).reshape(1000,10000)
* close tab.
* the process is not killed, and the memory is still locked up, until I go into 'system monitor' and manually kill it.

I'm on Ubuntu. I'm afraid I don't know too much about killing processes, otherwise I'd try and sort it myself.

Many thanks.

(by the way I continue to use PDB, this way and its also great, aside from this issue!)
outer7
 
Posts: 17
Joined: Wed Feb 15, 2012 9:17 am

Re: SublimeREPL

Postby wuub on Wed May 23, 2012 1:07 pm

Reliably killing REPL processes is an ongoing problem.
Are you using the latest version of SublimeREPL (1.0.32)?
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 outer7 on Wed May 23, 2012 1:15 pm

Yes, its 1.0.32.
outer7
 
Posts: 17
Joined: Wed Feb 15, 2012 9:17 am

Re: SublimeREPL

Postby wuub on Wed May 23, 2012 1:39 pm

I will take a look during my week off :)
GitHub issue for reference: https://github.com/wuub/SublimeREPL/issues/42
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 outer7 on Wed May 23, 2012 1:42 pm

Nice one :)
outer7
 
Posts: 17
Joined: Wed Feb 15, 2012 9:17 am

Re: SublimeREPL

Postby outer7 on Wed May 23, 2012 3:28 pm

Do something non-computery on you week off.. ;)

Adding this line:

Code: Select all
os.kill(self.popen.pid,signal.SIGTERM)


to the end of the kill method, in subprocess_repl.py seems to fix it for me.
outer7
 
Posts: 17
Joined: Wed Feb 15, 2012 9:17 am

Re: SublimeREPL

Postby xeno.by on Wed May 23, 2012 3:34 pm

Unfortunately, this won't work on Windows
xeno.by
 
Posts: 106
Joined: Mon Jan 30, 2012 10:03 am
Location: Lausanne, Switzerland

Re: SublimeREPL

Postby wuub on Wed May 23, 2012 4:31 pm

Unfortunately, this won't work on Windows


Actually I think SIGTERM will 'work', it's the only signal that is handled on Windows. Although, experience shows that 'work' means very different things on different systems ;)

I'm more concerned about:
1) Clojure/Scala/Ruby/any other repls that spawn more than one process :)
2) killpg()/SIGKILL not working

PS. If you want to see what kind of problems arise when you try to add something "smart", see this: see: https://github.com/wuub/SublimeREPL/issues/41
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: Google [Bot], Majestic-12 [Bot], Yahoo [Bot] and 16 guests