Projectile: `projectile-replace` doesn't work.

Created on 22 Feb 2017  路  4Comments  路  Source: bbatsov/projectile

Expected behavior

M-x projectile-replace or C-c p r, replace the function name in the git project.

Actual behavior

It does nothing but put the message 'All files processed'.

Steps to reproduce the problem

It seems this command always act like that, and I don't know the command before.

Environment & Version information

Projectile version information

Projectile 20170106.606

Here is my configuration:

(use-package projectile
  :diminish projectile-mode
  :init
  (projectile-mode t)
  :config
  (add-to-list 'projectile-globally-ignored-files "*.png")
  (add-to-list 'projectile-globally-ignored-files "*.jpg")
  (add-to-list 'projectile-globally-ignored-files "*.zip")
  (setq projectile-require-project-root nil)
  (setq projectile-indexing-method 'native)
  (setq projectile-enable-caching t)
  (setq projectile-globally-ignored-directories
        (append '(
                  ".git"
                  ".svn"
                  "out"
                  "repl"
                  "target"
                  "venv"
                  "node_modules")
                projectile-globally-ignored-directories))
  (setq projectile-globally-ignored-files
        (append '(
                  ".DS_Store"
                  "*.gz"
                  "*.pyc"
                  "*.jar"
                  "*.tar.gz"
                  "*.tgz"
                  "*.zip")
                projectile-globally-ignored-files)))


Emacs version

25.1.1

Operating system

OS X 10.12.3

Besides, projectile-replace-regexp works well.

Most helpful comment

Bumping this as I have the same problem.

EDIT: for me (W10, Emacs 26.2) projectile-replace-regexp also doens't replace matches and goes straight to 'All files processed'

All 4 comments

I'm having the same problem on Linux. Both projectile-replace and projectile-replace-regexp silently skip lots of replacements.

This indeed seems broken for me too: the replacement starts presenting me the matches to replace and then exits midway. Is there a workaround?

+1. Could we reopen this?

Bumping this as I have the same problem.

EDIT: for me (W10, Emacs 26.2) projectile-replace-regexp also doens't replace matches and goes straight to 'All files processed'

Was this page helpful?
0 / 5 - 0 ratings