rking / ag.vim

Vim plugin for the_silver_searcher, 'ag', a replacement for the Perl module / CLI script 'ack'
1.74k stars 131 forks source link

absolute path and relative path mix in the output #79

Open alexandnpu opened 9 years ago

alexandnpu commented 9 years ago

I am reading the code of reviewboard. https://github.com/reviewboard/reviewboard.git

The following output ag vim

you can see that , the second in the ag.vim output is one absolute path, where I expect it to be relative path.

The output of running the same command in shell gives the expected result.

Hettomei commented 9 years ago

Hi

:+1: same probleme here

iazel commented 9 years ago

Interesting. Do you had managers.py already open in a buffer? Some list of steps to reproduce it?

alexandnpu commented 9 years ago

@Iazel , I've changed my job, so i no longer have that configuration now. But I just cloned the latest ag.vim, it seems that the issue does not come out. I don't know whether it will come out later in my use.

Right now, I am using ags(https://github.com/gabesoft/vim-ags), which is better, I think, :)

Hettomei commented 9 years ago

Hi, for me I removed your plugin to only use vim with

set grepprg=ag\ --nogroup\ --nocolor\ --case-sensitive\ --path-to-agignore\ .agignorecustom

But, good news for you, I still have the problem with my custom command so I don't think it is related to this plugin.

2 absolute path

Thank you for writing vim plugins :)

losingkeys commented 9 years ago

Note: #99 introduces some code that has the same problem as this issue, so it needs to be checked too.

iazel commented 9 years ago

Is someone able to explain how to reproduce this?

Numkil commented 9 years ago

I've encountered this even with just setting grepprg to ag without this plugin just like @Hettomei so I assume it's a vim issue.

losingkeys commented 9 years ago

Strange. I guess it could be an ag issue too... But I've never seen ag mix the paths like this before. Maybe someone can make a small reproducible vim script and open a vim issue? I wonder if we can get other programs (like ack) to reproduce this.. On Jul 10, 2015 16:20, "Numkil" notifications@github.com wrote:

I've encountered this even with just setting grepprg to ag without this plugin just like @Hettomei https://github.com/Hettomei so I assume it's a vim issue.

— Reply to this email directly or view it on GitHub https://github.com/rking/ag.vim/issues/79#issuecomment-120532202.

Numkil commented 9 years ago

They are having the same issue on their issue tracker in github.

https://github.com/mileszs/ack.vim/issues/143

skywind3000 commented 6 years ago

guys, a patch for this is ready:

https://github.com/vim/vim/issues/2846

Hettomei commented 6 years ago

Thank you to inform us ! Vim just get better :)