-
-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Hi!
I’m trying Spacemacs a second time, trying to use it instead of my neovim config and I have a hard time making things work as I want them regarding specs and binding.pry.
First I found that I had to do C-x C-q in the compilation buffer to make it work with ruby-inf but then I have another problem:
2.6.6 (#<RSpec::ExampleGroups::Device::Locale::WhenDevicesHaveTheSameLocale:0x000055873d281580>):0 > 1
1
2.6.6 (#<RSpec::ExampleGroups::Device::Locale::WhenDevicesHaveTheSameLocale:0x000055873d281580>):0 > 11
2.6.6 (#<RSpec::ExampleGroups::Device::Locale::WhenDevicesHaveTheSameLocale:0x000055873d281580>):0 > 3
3
2.6.6 (#<RSpec::ExampleGroups::Device::Locale::WhenDevicesHaveTheSameLocale:0x000055873d281580>):0 > 33
2.6.6 (#<RSpec::ExampleGroups::Device::Locale::WhenDevicesHaveTheSameLocale:0x000055873d281580>):0 >
It seems characters are echoed back by the buffer/ruby-inf/whatever instead of being displayed normally. I have a custom Pry prompt but even when reverting it it still behaves in the same way.
By the way I tried to add a customization for my prompt but to no avail (documentation is a bit hard to follow on this 😅). I’ve put this in my .spacemacs config file but it doesn’t work (regex should be valid so it’s weird):
(add-hook 'inf-ruby-mode-hook
(lambda() (let ((p "[:digit:]\\.[:digit:]\\.[:digit:] ?\\([^(]+\\):[:digit:]+ ?(*|>)"))
(setq inf-ruby-first-prompt-pattern (concat inf-ruby-first-prompt-pattern p))
(setq inf-ruby-prompt-pattern (concat inf-ruby-prompt-pattern p)))))Anyone able to help me with these please? 🙂