tpope / vim-bundler

bundler.vim: Lightweight support for Ruby's Bundler
https://www.vim.org/scripts/script.php?script_id=4280
404 stars 29 forks source link

vim-rails and vim-bundle E488 #21

Closed antonjn closed 11 years ago

antonjn commented 11 years ago

Error detected while processing QuickFixCmdPost Auto commands for "make": E488: Trailing characters

I get the error (running :Rake test) when both vim-rails and vim-bundle are installed (pathogen). If I remove vim-bundle, the error disappears.

tpope commented 11 years ago

Do you still get this error if you go back one commit?

On Wed, Apr 17, 2013 at 3:58 PM, Anton Jonsson notifications@github.comwrote:

Error detected while processing QuickFixCmdPost Auto commands for "make": E488: Trailing characters

I get the error (running :Rake test) when both vim-rails and vim-bundle are installed (pathogen). If I remove vim-bundle, the error disappears.

— Reply to this email directly or view it on GitHubhttps://github.com/tpope/vim-bundler/issues/21 .

antonjn commented 11 years ago

Yes

sigvei commented 11 years ago

I too see this. On MacVim 7.3. Relevant portion of :20verb Rake:

Executing QuickFixCmdPost Auto commands for "make"
autocommand if &makeprg =~# '^bundle' && exists('b:bundler_root') |   call s:pop_command() |   call s:project().paths("refresh") | endif
line 0: if &makeprg =~# '^bundle' && exists('b:bundler_root') |   call s:pop_command() |   call s:project().paths("refresh") | endif
line 0:    call s:pop_command() |   call s:project().paths("refresh") | endif
line 0:    call s:project().paths("refresh") | endif
Exception thrown: Vim(call):E488: Trailing characters
function <SNR>48_Rake..<SNR>48_make aborted
chrismetcalf commented 11 years ago

+1. I'm seeing this too.

tpope commented 11 years ago

A bisect to find the commit causing the problem would help me diagnose and fix it.

bpinto commented 11 years ago

There you go! Thanks @tpope

➜ vim-bundler git bisect bad
ff2a956a43a19463fb9ba86736020dcfcd07a462 is the first bad commit
commit ff2a956a43a19463fb9ba86736020dcfcd07a462
Author: Tim Pope <code@tpope.net>
Date:   Tue Mar 19 12:00:51 2013 -0400

    Remove old Ruby powered lock parser

    It's been disabled by default for a while now without issue.

:040000 040000 60607bcea31867b200a827c90328ff5246e4ea0d fc147b4b6c5a842d7a42c48be7a8b952071433e7 M  plugin
jodosha commented 11 years ago

+1

johnsyweb commented 11 years ago

I have been having the same issue when using Syntastic, even when working on non-Ruby projects, hence the pull request. I hope it helps.

johnsyweb commented 11 years ago

This appears to be a problem with older Vim builds (older than version 7.3.097). Upgrading Vim to include at least patch 97 should solve your problem.

If, for whatever reason, you're unable to upgrade Vim, PR #24 works around the issue.

Since the PR has now been merged, I guess this issue can be closed...

tpope commented 11 years ago

@johnsyweb correct. Are people still having this issue?

jodosha commented 11 years ago

@tpope It works for me now, thanks!