Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Expression in Line 31 #104

Closed
yths opened this issue Mar 14, 2014 · 10 comments
Closed

Invalid Expression in Line 31 #104

yths opened this issue Mar 14, 2014 · 10 comments
Labels

Comments

@yths
Copy link

yths commented Mar 14, 2014

Something is wrong with this line:
let s:ackprg_version = eval(matchstr(system(g:ackprg . " --version"), '[0-9.]+'))

When I start vim it tells me, that in line 31 (the one above) is an invalid expression.

@bitboxer
Copy link
Contributor

I have the same error on my system

@kassio kassio closed this as completed in 08a3494 Mar 14, 2014
@dfreedm
Copy link

dfreedm commented Mar 14, 2014

I'm still seeing this issue even after 08a3494

@bitboxer
Copy link
Contributor

It's fixed for me.

@kassio
Copy link
Contributor

kassio commented Mar 14, 2014

@azakus which version of ack and vim are you using? and did you change your g:ackprg?

@kassio kassio reopened this Mar 14, 2014
@dfreedm
Copy link

dfreedm commented Mar 14, 2014

ack 2.12, vim 7.4 patches 1-135

I have not set g:ackprg

@kassio
Copy link
Contributor

kassio commented Mar 14, 2014

@azakus sorry didn't ask it in first time, but which OS are you using and how is set your wildignore?

@dfreedm
Copy link

dfreedm commented Mar 14, 2014

OS: Arch x86_64
wildignore = *.o, *~

https://github.com/azakus/davesdots/blob/master/vimrc#L37

@eddiemonge
Copy link

Its now line 32.

ack 2.12

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb 11 2014 09:12:41)
MacOS X (unix) version
Included patches: 1-52
Compiled by Homebrew

set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/tmp/*,*.so,*.swp,*.zip

Error detected while processing /Users/eddie/.vim/bundle/ack.vim/plugin/ack.vim:
line   32:
E15: Invalid expression:

@kassio kassio added the bug label Mar 14, 2014
@eddiemonge
Copy link

Adding: let g:ack_wildignore = 0 to my .vimrc did make the error go away but I'm not sure what that does.

@kassio
Copy link
Contributor

kassio commented Mar 14, 2014

I'm starting to think that was not a good idea try to respect wildignore with the plugin:

  1. It is not a simple parse the plugin has to do, and it impedes to use ag as search tool.
  2. You can set the ignore settings on your ~/.ackrc

I'll remove this feature for now, and we can try use it in future.

related with #93.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants