bbatsov / helm-projectile

Helm UI for Projectile
329 stars 71 forks source link

helm-projectile does not find anything when running helm-projectile-grep #73

Closed jamiltron closed 7 years ago

jamiltron commented 7 years ago

Hello, when running helm-projectile-grep over a project in Windows 10 I get nothing back, even when searching over very common words such as function that are in unignored files.

Expected behavior

helm-projectile-grep returns a list of all occurrences of the word function in a Lua project.

Actual behavior

Nothing is returned, and once I press enter I get the following message:

Error running timer 'helm-projectile-grep-or-ack' (wrong-type-argument stringp nil)

Steps to reproduce the problem

Load a project on Windows 10, place cursor over common word, type C-c p s g, then hit RET.

Environment & Version information

Operating System

Windows 10 Enterprise 64 bit.

Emacs

Emacs 25.1

Packages

helm-projectile 20170202.1000

helm 20170309.105

projectile 20170309.30

xiongtx commented 7 years ago

Can you provide a more complete stacktrace using debug-on-error?

Do you get the same result using helm-projectile-ag?

jamiltron commented 7 years ago

The output with debug-on-error is pretty long and something in it is preventing easy copy-paste, so I've uploaded the output as a text file. debug.txt

jamiltron commented 7 years ago

helm-projectile-ag responds with helm-ag not available

xiongtx commented 7 years ago

To use helm-projectile-ag, install helm-ag.

If possible, can you upgrade to latest helm/helm-projectile and try this on a Unix-based system? Just want to narrow down whether this is a platform-specific issue. I don't have Windows 10 at hand, though I'll try on Windows 8.

xiongtx commented 7 years ago

According to @bbatsov, helm-projectile was never designed to support Windows.

It uses grep, so if you install Cygwin, it should work. Haven't tested it myself yet.

jamiltron commented 7 years ago

I ended up installing GnuWin32 grep which I thought was part of FindUtils but I guess wasn't, and that seems to work, although very very slowely (as in, have to wait several minutes after searching for a trivial word in my project).

I am currently trying to figure out if that's an indexing issue, search space issue, my setup, or something else.