jshint.vim
jshint.vim copied to clipboard
Error loading plugin in Windows XP
I'm getting the following error message when trying to load the plugin using pathogen:
Error detected while processing function <SNR>29_JSHint: line 41: could not invoke JSHint!
I'm running Windows XP (at work). I have node v0.10.4 in my path. Hallett's jslint plugin was working on this machine. I tried rolling back to https://github.com/wookiehangover/jshint.vim/commit/8196b2acbd380610c2a8f36a5faa935c2a24a1fe but get the same errror message.
I'm not familiar with debugging plugins yet so if you need anything else, please let me know. Thanks!
looks like there's a hard-coded path to look for /.jshintrc
which is likely making windows choke. I don't have a VM setup for testing environment specific stuff to XP, but if you're able to figure this out, please make a pull request.
https://github.com/wookiehangover/jshint.vim/blob/master/ftplugin/javascript/jshint.vim#L72 this is probably a good place to start.
I believe that part of the problem is that jshint.vim (in FindRc) checks whether the path is of length "1" before defaulting to the .jshintrc in the home directory. However, on Windows the shortest possible path (e.g. "C:") is two characters rather than one, so there ends up being an infinite loop.