Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for pry #227

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

Support for pry #227

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

Comments

@ni-ka
Copy link

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.

@ashish-d
Copy link

+1

1 similar comment
@itmammoth
Copy link

+1

@SebastianVomMeer
Copy link

+1. This would be great.

@marcferna
Copy link

+1

1 similar comment
@lucasmartins
Copy link

+1

@stefanosc
Copy link
Contributor

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.

@laurentqro
Copy link

+1

1 similar comment
@obromios
Copy link

obromios commented May 8, 2015

+1

@obromios
Copy link

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
Copy link

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
…ome-terminal, xcfe4-terminal, konsole, xterm, lxterminal
@brenoperucchi
Copy link

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
Copy link

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 [email protected]
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

@mickael28
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests