This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-29
Channels
- # adventofcode (8)
- # babashka (12)
- # beginners (91)
- # calva (6)
- # cider (2)
- # circleci (11)
- # clj-kondo (19)
- # clojure (202)
- # clojure-australia (7)
- # clojure-brasil (1)
- # clojure-europe (123)
- # clojure-nl (2)
- # clojure-poland (24)
- # clojure-uk (6)
- # clojured (1)
- # clojurescript (91)
- # core-async (23)
- # cursive (16)
- # data-science (5)
- # datomic (26)
- # emacs (27)
- # events (2)
- # graalvm-mobile (50)
- # graphql (4)
- # honeysql (4)
- # instaparse (33)
- # lsp (24)
- # meander (22)
- # nrepl (3)
- # off-topic (26)
- # pedestal (1)
- # re-frame (15)
- # releases (1)
- # sci (1)
- # shadow-cljs (20)
- # tools-deps (22)
Upgrading to the latest version from 2021.02.26-13.58.48
seems to break the ignore-classpath-directories
feature in clojurescript. For example finding references to functions now also returns results from my target
directory
Hmm, this problem reappears in my huge production repo. But i cannot seem to reproduce it in a small example repo. Anything else i could do to provide some information?
Sorry but i'm not able to reproduce it.. cleaning the cache and db does not seem to work.
However adding source-paths
explicitly, seems to solve the problem - while this was not necessary to not include the target
directory in the 2021.02.26-13.58.48
version.
Mabye something was changed related to this
We improved the way we scan for source-paths, with this changed you don't need to include source-paths for most projects, but we didn't change anything related with the ignore-classpath-directories
Now i finally noticed that my project actually includes the target dir in :paths
. clojure-lsp using this setting seems to have been added after the February edition i was using previously, so it makes sense now
Figwheel seems to require that the "target" directory is on the classpath:
[Figwheel:WARNING] Attempting to dynamically add "target" to classpath!
[Figwheel:WARNING] Target directory "target" is not on the classpath
[Figwheel:WARNING] Please fix this by adding "target" to your classpath
I.E.
For Clojure CLI Tools in your deps.edn file:
ensure "target" is in your :paths key
so other clojurescript users might run into this problemYes it makes sense, it is just a gotcha when using clojurescript. Including the target directory will mess up finding references to and from functions since they are duplicated there
maybe ignore-classpath-directories
could be the truth even if the directory is on source-paths?