spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
Karol W贸jcik 2020-10-10T07:40:37.058800Z

How do you ignore directories using projectile so that SPC p f does not shows the resources directory? I don't want to put this directory in .gitignore for obvious reasons. Tried switching to 'native indexing method, adding .projectile file, specifying ignored directories via projectile-globally-ignored-directories seems to not work either. 馃槥

practicalli-john 2020-10-10T07:44:37.062500Z

@karol.wojcik a .projectile file that contains ignore patters is what I would used. Reopen any open files from the project for the .projectile file to be loaded (or restart Emacs).

Karol W贸jcik 2020-10-10T07:45:47.062600Z

@jr0cket do you use ivy?

practicalli-john 2020-10-10T07:46:14.062800Z

No, I use Helm.

Karol W贸jcik 2020-10-10T07:49:03.063Z

Maybe that's the issue.

Karol W贸jcik 2020-10-10T07:49:07.063200Z

I'm using Ivy

practicalli-john 2020-10-10T07:50:27.063400Z

I also have repgrip installed. From a quick search there is mention of invalidating the cache (not sure how) Also mention of using a .ignore file with patterns to exclude

Karol W贸jcik 2020-10-10T07:53:10.063600Z

@jr0cket Actually there is no difference. Tried helm with the following .projectile content:

-resources
Regarding repgrip I got it installed as well and using .ignore file works perfect when using SPC / . I think that it's some kind of projectile issue which is not respecting the .projectile file in alien mode.

Karol W贸jcik 2020-10-10T07:53:49.063800Z

To be frank I had it working for few searches when using native mode then it switched back to indexing "resources". 馃槥

Karol W贸jcik 2020-10-10T07:54:34.064Z

@jr0cket When it comes to invalidating the cache you can do it by using SPC p I

practicalli-john 2020-10-10T07:56:04.064200Z

If invalidating the cache doesn't work then I am out of ideas, sorry. Probably should raise a bug on Spacemacs

Karol W贸jcik 2020-10-10T07:57:38.064400Z

Will do. Thank you very much though!

practicalli-john 2020-10-10T07:57:51.064600Z

I'll see if I can replicate the issue later when I get to the computer.

Karol W贸jcik 2020-10-10T08:07:31.064800Z

Sure thing!

Karol W贸jcik 2020-10-10T08:27:45.065100Z

Got a workaround:

(progn
                     (make-local-variable 'projectile-globally-ignored-directories)
                     (add-to-list 'projectile-globally-ignored-directories "resources")
                     (set 'projectile-globally-ignored-directories projectile-globally-ignored-directories)

                     (defun f/invalidate-resources-cache ()
                       (interactive)
                       (projectile-purge-dir-from-cache "resources"))

                     (f/invalidate-resources-cache))

Karol W贸jcik 2020-10-10T08:28:01.065300Z

As long as you don't invalidate cache of the project it will work 馃槃