This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-11
Channels
- # aws (2)
- # beginners (38)
- # boot (21)
- # boot-dev (8)
- # cider (51)
- # cljsrn (3)
- # clojars (23)
- # clojure (99)
- # clojure-austin (7)
- # clojure-brasil (1)
- # clojure-dev (8)
- # clojure-dusseldorf (1)
- # clojure-estonia (20)
- # clojure-greece (4)
- # clojure-italy (3)
- # clojure-russia (1)
- # clojure-spec (28)
- # clojure-uk (47)
- # clojurescript (47)
- # core-logic (3)
- # cursive (9)
- # data-science (1)
- # datomic (50)
- # docs (12)
- # emacs (5)
- # fulcro (60)
- # graphql (33)
- # hoplon (8)
- # jobs-discuss (1)
- # keechma (31)
- # lein-figwheel (10)
- # leiningen (4)
- # off-topic (70)
- # om (1)
- # onyx (15)
- # pedestal (5)
- # re-frame (185)
- # reagent (14)
- # remote-jobs (8)
- # ring-swagger (7)
- # rum (17)
- # shadow-cljs (193)
- # specter (6)
- # sql (51)
- # unrepl (8)
Is there a way to get rid of this warning?
deftask my-task was overridden
It is preventing me from loading a file in Cursive's REPL.@kenny why is it preventing you from loading a file?
I attempt to load the file in the REPL and it never finishes. This is what is printed out:
Loading src/boot_tools_deps/core.clj...
deftask boot-tools-deps.core/deps was overridden
This means my changes were not loaded. The REPL should print out this:
Loading src/boot_tools_deps/core.clj... done
Further, I don't care about that warning at the REPL. It gets especially noisy when trying to develop several Boot tasks.
maybe something like this could work: https://github.com/boot-clj/boot/wiki/Snippets#re-using-a-built-in-task-name
but really I’d try to figure out why loading that file seems to not return
how are you loading the file? have you tried using just load-file
in a terminal?
does it behave the same way?
Not sure how Cursive loads the file but I assume it can't be much different than load-file
.
(load-file "src/boot_tools_deps/core.clj")
deftask boot-tools-deps.core/deps was overridden
=> #'boot-tools-deps.core/deps
@kenny I’m not bothered by it myself but if you want to look into making that configurable you’re welcome to do so, here’s a start: https://github.com/boot-clj/boot/blob/0d1c16f697cfd180ed3856ee808c41b2f0ce3f40/boot/core/src/boot/core.clj#L914-L919
I’m not sure what the best way to toggle this behavior would be though
Perhaps simply disabling the warning when in a REPL? Is there any use-case where you'd like to see that warning when in a REPL?
I feel like that might seriously confuse people who are used to it 🙂
Really? Not sure why that'd confuse people. It seems like a deftask
should behave just like any other symbol in the REPL.
We just (ns-unmap ...)
such symbols before referring in the task we're looking for I believe.
also, it is only text output with ansi colors, should not break things...unless it is an ansi escaping issue
there is a way to disable colors
@kenny I’m not attached to the warning, feel free to open an issue for further discussion, maybe encourage people to vote with Github’s reactions stuff
I am not attached to that too, but I remember that I was questioning once why it is important. We have a couple of warning in the boot build as well btw...I don't remember what @micha or @alandipert told me about that though