Comments (5)
Yep, I've also seen the pry hooks error, but didn't have time to look into it.
Any suggestions how to fix it?
from robe.
Sorry, I'm just starting out with emacs/elisp , so no suggestions off the top my head :)
I'll try more fiddling
from robe.
This seems to help:
diff --git a/inf-ruby.el b/inf-ruby.el
index e6b55be..61cea16 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -229,8 +229,17 @@ The following commands are available:
(when (eq system-type 'windows-nt)
(setq comint-process-echoes t))
(compilation-shell-minor-mode t)
+ (inf-ruby-set-window-size)
+ (add-hook 'window-configuration-change-hook 'inf-ruby-set-window-size nil t)
(run-hooks 'inf-ruby-mode-hook))
+(defun inf-ruby-set-window-size ()
+ (let ((proc (get-buffer-process (current-buffer))))
+ (when proc
+ (set-process-window-size
+ proc (window-text-height) (1- (window-body-width))))))
+
(defun inf-ruby-output-filter (output)
"Check if the current prompt is a top-level prompt."
(unless (zerop (length output))
Although I do wonder if that's something Pry should handle itself. It's not like it ends up using the returned values in any meaningful way, AFAICS.
from robe.
I've reverted the workaround, but see the update in the inf-ruby
README now.
from robe.
Ya, I finally wound up turning off pager too. It's shame that Pry just
checks for nil window size before triggering the default.
On Wed, Jul 30, 2014 at 10:02 PM, Dmitry Gutov [email protected]
wrote:
I've reverted the workaround, but see the update in the inf-ruby README
now.—
Reply to this email directly or view it on GitHub
#37 (comment).
from robe.
Related Issues (20)
- Cannot load such file pry HOT 2
- Is there a way to show docs in completions popup/eldoc summary? HOT 1
- Autocompletion not working? HOT 1
- Stuck at cpu 100% HOT 6
- Robe cannot autostart: "No matching directory found" HOT 4
- Robe not working on Ruby 2.7.1 HOT 3
- robe make emacs freeze on 27 on large projects HOT 16
- Non-string path in LOAD_PATH HOT 3
- Emacs freezes when robe is called while byebug is active on console HOT 3
- How to disable robe? HOT 2
- Get search failed message when run robe-jump. HOT 19
- `Can't find the location` when try to search a class defined on current project. (but can in irb) HOT 6
- `find-tag-marker-ring` breaks `robe-jump` on Emacs 28. HOT 2
- Environment variables HOT 1
- Can't jump to the nested module's class in `enh-ruby-mode`, but ruby-mode works HOT 29
- robe-jump returns error file doesnt exists - but it exists HOT 11
- [Help Request] Not robe issue, just need some professional help on crystal-mode. HOT 10
- CPU spikes during rails process buffer completion HOT 7
- Allow for configurable specificity of `robe-jump` entries HOT 9
- Should be possible to change Robe errors buffer from inf-ruby buffer to another buffer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robe.