atom-narrow icon indicating copy to clipboard operation
atom-narrow copied to clipboard

ag is not available in your PATH (windows)

Open Allegathor opened this issue 7 years ago • 5 comments

Hello!

I have ag installed via chocolatey in windows 10. Chocolatey store .exe files in bin folder (C:\ProgramData\Chocolatey\bin). I already have ag in the PATH, so it works fine through the console. But narrow throw the warning "ag not available in your PATH". Also I want to notice that previous versions worked as expected (less than 0.3 at least).

I have latest version of narrow now (0.54.5). Atom version: 1.21.1

Allegathor avatar Dec 21 '17 14:12 Allegathor

I'm having issues on windows as well and I'm not sure if it's related. I'm not seeing any output from the search command using ag. Same setup as above. I'm not seeing any errors logged...

heftyfunseeker avatar Apr 02 '18 21:04 heftyfunseeker

I've just update narrow and it works like a charm now.

Allegathor avatar Apr 03 '18 09:04 Allegathor

looks like ripgrep works great though. Ag still silently failing for me. Nothing in the dev tools window being logged from what I can see...

heftyfunseeker avatar Apr 10 '18 19:04 heftyfunseeker

@heftyfunseeker How do you run search via rigrep? Did I miss something? Is there a way to ensure, that narrow is using ag provider, but not the other one?

Also, try to execute atom from a terminal and then run 'narrow search'. It helped me earlier.

Allegathor avatar Apr 11 '18 18:04 Allegathor

You can set which searcher to use from settings-view of narrow.

"Settings View: Open" > Packages > Narrow > Click "Search" > you should find image below

image

t9md avatar Jun 11 '18 12:06 t9md