mileszs / ack.vim

Vim plugin for the Perl module / CLI script 'ack'
Other
3.08k stars 396 forks source link

Error detected while processing ack.vim #101

Closed smancill closed 10 years ago

smancill commented 10 years ago

I just updated the plugin to last commit (3e32da1), and when I start Vim I get this error:

Error detected while processing /home/smancill/.vim/bundle/ack.vim/plugin/ack.vim:
line   31:
E15: Invalid expression: 
Press ENTER or type command to continue

git-bisect shows commit fbe476c as the first bad commit.

Vim version:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 12 2013 00:23:33)
lithammer commented 10 years ago

This happens when you manually set g:ackprg in your .vimrc. At least the problem goes away when I commented out this part:

let g:ackprg = 'ag --nogroup --nocolor --column'
kassio commented 10 years ago

Are you using ack 2.0?

lithammer commented 10 years ago
$ ack --version
ack 2.12
Running under Perl 5.16.2 at /usr/bin/perl

Copyright 2005-2013 Andy Lester.

This program is free software.  You may modify or distribute it
under the terms of the Artistic License v2.0.
kassio commented 10 years ago

I do not understand, and my last question didn't help. Are you using ack or ag? in your first comment you said that you have: let g:ackprg = 'ag --nogroup --nocolor --column' on your vimrc, is this right?

If you are using ag you need to disable let g:ack_wildignore = 0, as you can see on README.

I'll close it for now, but if it is not the case, please reopen that can investigate.