Hello Duncan,
how are you using ruby interpreter ? Via RVM or just "native" (without RVM)?
I ask this since I've only seen this issue when using Ruby via RVM and
it has been annoying me, but I just didn't have time to poke it
further...
Aleksandar
https://github.com/eschulte/rinari/commit/235f14b4c10312297cfaed29d45456ba361b2ddf
Please let me know if it doesn't work for you.
-Steve
Thank you Steve, I'll have a look at it later today
thanks again for providing this fix. However it doesn't work in some cases.
I've posted a gist here: https://gist.github.com/1033069 outlining a
solution for me and a slight tweak to the regexp.
It might be a good idea to get the inf-ruby/irb prompts for all the
versions of ruby, in order to have a catch all solution.
The only reason I posted the above as a gist and not in the comments
of your diff is because the comment text box at github was escaping
some of the regexp's escape characters...
Aleksandar
Thanks! I've modified the regexp again so that it matches all of your
examples, but I've purposely kept it a little more conservative than
your proposed alternative. I think it should handle all the likely cases
now.
-Steve
Hi Duncan,
What does your irb prompt look like (outside rinari, on a console)?
Can you run inf-ruby mode without issues?
Hello,
Can you do the following:
1. describe your whole session, from the start until the crash
2. Separately, run "M-x inf-ruby". Do you experience any issues?
Thanks
Please try "M-x toggle-debug-on-error" before triggering the error, then
post the traceback you get.
-Steve
Do things work if you open a file inside your rails project, and execute
rinari-console while your cursor is in the buffer for that file?
-Steve
default-directory is a variable defined in `C source code'.
Its value is "/home/duncan/git/Scraper-Node/"
Local in buffer Rakefile; global value is nil
Automatically becomes buffer-local when set in any fashion.
This variable is safe as a file local variable if its value
satisfies the predicate `stringp'.
Documentation:
Name of default directory of current buffer. Should end with slash.
To interactively change the default directory, use command `cd'.
https://github.com/eschulte/rinari/issues/8
-Steve
-Steve
-Steve
Any buffer in which 'rinari-launch has been called, I think. So normally you'd
have something like this:
(add-hook 'ruby-mode-hook 'rinari-launch)
and then in any ruby buffer inside a Rails source tree, rinari-console
should do the right things.
-Steve
-Steve