projectile icon indicating copy to clipboard operation
projectile copied to clipboard

projectile-replace-regexp stops after encountering a missing file.

Open didibus opened this issue 6 years ago • 2 comments

When using projectile-replace-regexp, it seems that if a given file being scanned is missing, the command just stops. Ideally, it should just skip the missing file and continue with the replace operation.

next-file: Opening input file: No such file or directory, /workplace/src/Package/src/com/company/product/Command.java

didibus avatar Oct 19 '19 01:10 didibus

same issue here.

Debugger entered--Lisp error: (file-missing "Opening input file" "No such file or directory" "/Users/zhangjun/docs/docs/java/images/.#2020-05-22_21-01-40_Figure-1.png") insert-file-contents("/Users/zhangjun/docs/docs/java/images/.#2020-05-22..." nil nil nil nil) insert-file-contents-literally("/Users/zhangjun/docs/docs/java/images/.#2020-05-22..." nil nil nil nil) apply(insert-file-contents-literally ("/Users/zhangjun/docs/docs/java/images/.#2020-05-22..." nil nil nil nil)) image-file-call-underlying(insert-file-contents-literally insert-file-contents "/Users/zhangjun/docs/docs/java/images/.#2020-05-22..." nil nil nil nil) insert-image-file("/Users/zhangjun/docs/docs/java/images/.#2020-05-22..." nil nil nil nil) apply(insert-image-file ("/Users/zhangjun/docs/docs/java/images/.#2020-05-22..." nil nil nil nil)) image-file-handler(insert-file-contents "/Users/zhangjun/docs/docs/java/images/.#2020-05-22..." nil nil nil nil) insert-file-contents("/Users/zhangjun/docs/docs/java/images/.#2020-05-22..." nil) fileloop-next-file(t) fileloop-continue() project-query-replace-regexp("telnet2" "telnet") funcall-interactively(project-query-replace-regexp "telnet2" "telnet") call-interactively(project-query-replace-regexp record nil) command-execute(project-query-replace-regexp record) helm-M-x-execute-command(project-query-replace-regexp) helm-execute-selection-action-1() helm-execute-selection-action()

opsnull avatar Aug 02 '20 06:08 opsnull

Is there any workaround for this? Is there some cache that I can delete to stop projectile from looking for the removed file?

scottgrayson avatar Jan 07 '21 20:01 scottgrayson