kchmck/vim-coffee-script — Issue #57: CoffeeMake incorrectly escapes paths *sometimes*
Author: doits
Created: 2011-10-16 17:24:33+00:00
State: open

Really a weird issue, maybe even a bug of vim or in combination with some other plugin, but maybe you can help.

Installed the plugin via pathogen, just updated my checkout.

When I open a "*.coffee" file, compiling simply works. :CoffeeMake gives:

:!coffee -c search.coffee 2>&1| tee /tmp/vIrbcXK/2

Then I add one empty line somewhere in the document (or change anything) and save it (:w). Now with :CoffeeMake i get this

:!coffee\ -c\ \ search.coffee 2>&1| tee /tmp/vNlsNOU/5
/bin/bash: coffee -c search.coffee: command not found

notice the backslashes before each whitespace?

I have to close an reopen the file to have it compiled by the plugin again.

Now the weird part: sometimes, the bug is *not* triggered. I can change the file, save it, compile it etc. and it goes on nicely. Then, at some point, the bug triggers again and I cannot compile it after I change the file. I have to reopen it to compile it, then I can work on. Sometimes, the bug vanishes after some few more changes, sometimes I have to reopen the file multiple times until I can compile it after changing it.

I've really no idea why the bug is triggered sometimes and sometimes not.

Any idea what is causing this behaviour?

(
I've installed the following vim-plugins, if you need that info:
checksyntax_vim dbext quickfixsigns_vim scss-syntax.vim vim-bundler vim-coffee-script vim-fugitive vim-javascript vim-rails
)