-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
robe hangs Emacs #147
Comments
Hi! When it freezes, can you find out the Ruby stack trace? I.e. where the external process spends the time. See #121 (comment) for the recipe. |
So
|
I also tried launching an irf-ruby
|
Finally, I've noticed a similar issue with Emacs hanging and a stream of text in
The rbspy irb stacktrace:
|
Looks like some collision between Ruby 3.3 and Pry (all versions I've tried) when used inside Emacs. Does its prompt look good to you? It seems to double over here, like
You can try removing Pry from the project config, just to verify that things work without it. |
And in the |
I'm having trouble copy-pasting, so I apologize. The main prompt is |
I removed pry from the Gemfile, but now that causes an error if I run |
Ah, that sounds right.
Could you paste the error here? |
From
|
It seems But if I understand the situation right, it's still being called - perhaps by Anyway, if you are not working on a project with a fixed structure, such as a Rails project, or some gem (library), you're not getting much benefit from the automatic repl launch, and might as well start with the manual |
Eventually I will be using Rails projects, but I just started learning Ruby. pry is still installed. Here's my Gemfile:
Gemfile.lcok
|
Ok, I've pushed a change to inf-ruby which will make it behave differently when Meaning, it won't try to launch pry in this case. |
Regarding the use of Pry, it looks like you'll need to add This seems to be the closest upstream bug report: ruby/reline#616 |
Ok, here's what seems to be working now. I downgraded to Ruby 3.2. I deleted the Gemfile.lock. Now I'm having success with both a blank Gemfile and one listing pry and pry-doc.
|
Both Ruby 3.3 + Irb and Ruby 3.2 + Pry should remain supported configurations. Meaning, if you downgraded to Ruby 3.2, you should be able to keep Pry, if you prefer. That is for
As a Ruby developer, you normally keep
Sorry, I kinda forgot what repository we're in. For Robe, Pry remains a requirement, so when one wants to use it with Ruby 3.3, adding |
Just enabled the ruby module in Doom Emacs, which enables robe in lieu of lsp-mode. I can't type more than a letter or two without Emacs freezing up. With toggle-debug-on-error, I was able to extract a backtrace:
Here's my Gemfile:
Some info about my system:
New to Ruby, not Emacs. Happy to provide more information but unsure what is needed at this point.
The text was updated successfully, but these errors were encountered: