Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Support for pry #227

Open
ni-ka opened this Issue Feb 22, 2014 · 13 comments

Comments

Projects
None yet

ni-ka commented Feb 22, 2014

Is there any way to support pry? If I add binding.pry somewhere in an rspec I see that pry is invoked (I see the pry prompt), but I can't interact with the prompt and the test finishes instantly.

Otherwise a great plugin, especially with the spring support.

+1

+1

+1. This would be great.

+1

Contributor

stefanosc commented Mar 19, 2015

I think the issue here is that the sublime shell is not a true shell.
I would love too this feature and I thought a great way would be to execute the test in the terminal instead of sublime shell. How is that?
Do you like the idea?
@maltize if you are open to consider such feature I could try to put together and submit a pull request.
Perhaps we could set it up either with a keyboard modifier or with a setting in preferences (something like {"run_in_terminal": true}

Let me know if you are interested and we can consider further how it could be best implemented.

obromios commented May 8, 2015

+1

If you look at this blog post, it indicates that there is a way for rubytest to support pry and run in a terminal. The blog points to a file, rspec.py in a github respository. However, there are no instructions for this, and I was not able to get it work by simply copying the rspec.py file my sublime text user directory. There are are some comments in the blog post, but it was not clear to me what to do.

foton pushed a commit to foton/sublime-text-2-ruby-tests that referenced this issue Oct 16, 2015

foton commented Oct 16, 2015

Hi,
I made changes which allow to run test in terminal (with pry working). I have it working for gnome-terminal, but need test for others (Windows, Mac).
For example calling Gnome terminal needs some additional options on command line.

The whole thing need Terminal plugin/package and to add line

  "ruby_use_terminal": true, 

into RubyTest.sublime-settings .

foton pushed a commit to foton/sublime-text-2-ruby-tests that referenced this issue Oct 19, 2015

#227 explicit import of Terminal; tested working terminals: gnome-ter…
…minal, xcfe4-terminal, konsole, xterm, lxterminal

Is there any way to support pry? If I add binding.pry somewhere in an rspec I see that pry is invoked (I see the pry prompt), but I can't interact with the prompt and the test finishes instantly.

Someone did solve this problem for sublime text on the mac?

RaVbaker commented Feb 1, 2016

There is an extension SublimeREPL and it do support using PRY inside of
Sublime window, why not to use similar solution to their?

On Sat, Jan 30, 2016 at 3:55 PM Breno Perucchi notifications@github.com
wrote:

Is there any way to support pry? If I add binding.pry somewhere in an
rspec I see that pry is invoked (I see the pry prompt), but I can't
interact with the prompt and the test finishes instantly.

Someone did solve this problem for sublime text on the mac?


Reply to this email directly or view it on GitHub
#227 (comment)
.

Rafał "RaVbaker" Piekarski

twitter: @RaVbaker
skype: ravbaker
mobile: +48-663-808-481
web: http://ravbaker.net
company web: http://rethink-it.co

Wondering if this ever was implemented?

Is there a way to use pry debugger within Sublime 3? or any other debugger that works fine with Ruby to give it a go?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment