vim-ruby-debugger
vim-ruby-debugger copied to clipboard
Weird error
When I try to start vim-ruby-debugger within a rails 3.2.17 project with MacVim 7.4 and rbenv Ruby 2.0.0p353 like this
:Rdebugger 'bundle exec script/rails'
I get the following error
/Users/govindaf/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/debugger-xml-0.3.3/bin/rdebug-vim:28:in `debug_load'
/Users/govindaf/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/debugger-xml-0.3.3/bin/rdebug-vim:28:in `run'
/Users/govindaf/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/debugger-xml-0.3.3/bin/rdebug-vim:93:in `<top (required)>'
/Users/govindaf/.rbenv/versions/2.0.0-p353/bin/rdebug-vim:23:in `load'
/Users/govindaf/.rbenv/versions/2.0.0-p353/bin/rdebug-vim:23:in `<main>'
Uncaught exception: /Users/govindaf/.rbenv/shims/bundle:3: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
[ -n "$RBENV_DEBUG" ] && set -x
^
/Users/govindaf/.rbenv/shims/bundle:3: syntax error, unexpected ']', expecting end-of-input
[ -n "$RBENV_DEBUG" ] && set -x
^
And this from the logfile
im plugin, 00:43:07: Executing :Rdebugger...
Vim plugin, 00:43:07: Initializing Server object
Vim plugin, 00:43:07: Stopping, pid is: 42616
Vim plugin, 00:43:07: Killing server with pid 42616
Vim plugin, 00:43:07: Executing command: ruby -e 'Process.kill9,42616)'
Vim plugin, 00:43:08: Killed server with pid: 42616
Vim plugin, 00:43:08: Starting Server, command: "'/Users/govindaf/.rbenv/shims/bundle' exec script/rails server"
Vim plugin, 00:43:08: Executing command: rdebug-vim --file /Users/govindaf/.yadr/vim/bundle/vim-ruby-debugger/tmp/ruby_debugger --output /Users/govindaf/.yadr/vim/bundle/vim-ruby-debugger/tmp/ruby_debugger_output --socket /var/folders/jh/pc7g8tvx7wx6t22p9y5bgr2c0000gq/T/vyzTndG/50 --logger_file /Users/govindaf/.yadr/vim/bundle/vim-ruby-debugger/tmp/ruby_debugger_log --debug_mode 1 --vim_executable mvim --vim_servername VIM1 --separator ++vim-ruby-debugger-separator++ -- '/Users/govindaf/.rbenv/shims/bundle' exec script/rails server
debugger-xml, 00:43:08 : Going to daemonize
debugger-xml, 00:43:08 : Successfully daemonized
debugger-xml, 00:43:08 : Redirected stderr
debugger-xml, 00:43:08 : Started debugger
debugger-xml, 00:43:08 : Executing command: mvim --servername VIM1 -u NONE -U NONE --remote-send "<C-\\><C-N>:call RubyDebugger.establish_connection()<CR>"
Vim plugin, 00:43:08: PID: 43016
Vim plugin, 00:43:08: Waiting for starting debugger...
debugger-xml, 00:43:08 : Sent 'established_connection' command
Vim plugin, 00:43:08: Adding 'start' to queue
Any ideas/hints what could be wrong?
Bye the way is it possible to use https://github.com/deivid-rodriguez/byebug with vim-ruby-debugger?
Cheers, Govinda
I get the same error about the bundle shims on a completely unrelated project. Did you ever figure out what's causing this?
Any update on this?