Closed rmuslimov closed 1 year ago
Thanks for the detailed report!
Unfortunately for your intent, the ignore-paths most likely don't work that way. Specifically, they're not forwarded to tools.analyzer.
Analysis works at namespace level, not a directory level, so if anywhere in your ns tree there's a reference to the problematic ns, t.ana will analyze it no matter what.
However https://github.com/AppsFlyer/pronto/pull/15 is on its way.
Cheers - V
Issue
I'm trying to avoid building AST for certain file which has unfortunately incorrect entry (we have previous issue describing it). I'm setting ignore path via:
Assuming this var will be picked up when refactor-nrepl is called. When I call "cljr-rename-symbol" in the project after it still fails with exception
Message contains
:ignore-paths [.*mappers.clj],
, so I assume it passed properly. Am I doing something wrong with regex syntax, why this file still used for AST building?I also tried corner case example of putting ".*" as regex, and error still occurs
Expected behavior
Once ignore-paths is set, file shouldnt' be used for AST building
Actual behavior
However, it is still used
Steps to reproduce the problem
above
This is extremely important! Providing us with a reliable way to reproduce a problem will expedite its solution.
Environment & Version information
clj-refactor.el and refactor-nrepl version information
clj-refactor 3.6.0 (package: 20221023.1644), refactor-nrepl 3.6.0
CIDER version information
Include here the version string displayed when CIDER's REPL is launched. Here's an example:
deps.edn version
{:deps {io.github.clojure/tools.build {:git/tag "v0.8.1" :git/sha "7d40500"}}
Emacs version
GNU Emacs 28.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2022-09-12
Operating system
Macos Ventura 13.01