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: 218
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

Re: SublimeREPL

Postby sfranky on Fri Jun 07, 2013 8:30 am

Sorry, where do I put this?
thanks!

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

sfranky
 
Posts: 96
Joined: Mon Oct 19, 2009 10:06 pm

Re: SublimeREPL

Postby wuub on Fri Jun 07, 2013 8:45 am

Type it in as a first statement in IPython tab.
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 jameswq on Sun Jun 23, 2013 10:10 am

hi,i want to ask that how to run sublimeREPL on SublimeText3?
jameswq
 
Posts: 3
Joined: Sat Jun 15, 2013 6:41 am

Re: SublimeREPL

Postby noma4i on Mon Jul 01, 2013 1:45 am

Bump!

ST3 branch is not reachable(deleted?)
noma4i
 
Posts: 2
Joined: Wed Jan 30, 2013 6:32 am

Re: SublimeREPL

Postby Narretz on Tue Jul 02, 2013 8:17 am

It looks like the master branch includes changes for ST3. I just installed. I installed it with git clone, and it seems to work. Obivously haven't checked for all repls, but Node works, php is weird as always, and clisp doesn't. Just mentioning clisp because it is the only one that is listed in the command palette, which is pretty odd.
Narretz
 
Posts: 41
Joined: Mon Feb 04, 2013 5:33 pm

Re: SublimeREPL

Postby wuub on Tue Jul 02, 2013 9:56 pm

SublimeREPL 2.0.0 is slowly taking form. Package Control release should happen very soon.
Initial ST2/PY2 -> ST2+3/PY2+3 was surprisingly easy, but it took over 5 months to fight off all the bugs and incompatibilities.

If you're using SublimeREPL this is a good moment to checkout https://github.com/wuub/SublimeREPL/tree/master, try it (using portable version of ST), and let me know ASAP about any critical bugs :)

Changelog:
  • NEW: Compatibility with Sublime Text 3 and Sublime Text 2 with single codebase
  • NEW: documentation improvements
  • NEW: 'Restart' command in context menu (even with ghost views after full ST restart)
  • NEW: option to open REPLs in next view group (e.g. side-by-side)
  • NEW: add option to show evaluated code (#106 and #84)
  • BUGFIX: huge output will no longer cause Sublime to become unresponsive (#23... wow :))
  • BUGFIX: closing bracket are now removed automatically (ST3 only, #182)
  • NEW: hanlde cases when external_id differs from source.x (think: source.lisp -> scheme repl) (#161, #165 and #167)
  • -------
  • NEW: [Python] iPython on Windows
  • NEW: [Python] automatically remove "#! coding: ..." comments from evaluated code (#187)
  • NEW: [Python] iPython plot() support (qt, wx, *not* inline!)
  • BUGFIX: [Python] fix pager in IPython (#170)
  • -------
  • NEW: [Ruby] Pry autocomplete support
  • BUGFIX: [Ruby] REPL does not eval at top level (#194)
  • -------
  • NEW: [Haskell] automatic let binding injection for top level functions
  • NEW: [Haskell] let now support top level functions with any kind of parameterization
  • BUGFIX: [Haskell] typo in SublimeiHaskellRepl.write(), Code called wrong superclass
  • NEW: [Haskell] cabal/cabal-dev depending on SublimeHaskell settings
  • -------
  • NEW: ClojureScript REPLs
  • NEW: Rails REPL
  • NEW: Knitr support in R REPL (#165)
  • NEW: Maxima REPL
  • NEW: Racket REPL
  • NEW: Petite Chez Scheme REPL
  • REMOVED: Execnet REPL (for now, waiting for community input, anyone uses this?)
  • -------
  • NEW: change persistent history db from buzhug to PyDbLite (py3)
  • BUGFIX: repl could become unresponsive after code evaluation (#159)
  • BUGFIX: traceback in is_visible() on context menu
  • BUGFIX: AttributeError in update_view_loop
  • BUGFIX: fix enter handling with "auto_complete_commit_on_tab": true
  • BUGFIX: [F#] The mono command for F# interactive is fsharpi.
  • BUGFIX [PowerShell] update pattern for chcp_encoding detection
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 masondesu on Tue Jul 02, 2013 11:33 pm

Narretz wrote: [...] clisp doesn't [work]. Just mentioning clisp because it is the only one that is listed in the command palette, which is pretty odd.


Narretz, do you have clisp installed on your system? If not, it won't work, nor will many of the REPLs in SublimeREPL.
masondesu
 
Posts: 1
Joined: Tue Jul 02, 2013 11:31 pm

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 3 guests

cron