This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
In the leiningen docs it says "Profiles specified in profiles.clj will override profiles in project.clj” my experience is that this is quite literal, i.e. it doesn’t just override by values specified in profiles.clj but the presence of profiles.clj means the corresponding section in project.clj is ignored. Anyone know if this should be how it works?
for example my dependencies in project.clj :profiles section are ignored while profiles.clj is present (and without those dependencies)
@sandbags: that's not how it should work
dependencies should be additive
@pesterhazy: it did seem a bit odd to me
can you show you profiles.clj
?
lein actually allows you to specify how keys should be merged if they are present in multiple profiles: https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md
but for dependencies it should definitely do the right thing by default
unfortunately thinking this is how it worked i moved everything from project.clj :profiles into profiles.clj
also check out lein pprint
for debugging: https://github.com/technomancy/leiningen/tree/master/lein-pprint
well, pprint should make it obvious where the error is
if profiles.clj
overrides your project.clj
, there must be a typo/error somewhere. With pprint
you should be able to experiment to see where it is
i’m not clear how :dependencies as a key can get lost when it wasn’t specified in profiles.clj at all
but at least now that I know that it’s meant to work how i expected, i can hunt for the problem. thank you
you're welcome
yes now i see what you mean, just took a different way of looking at it … i can see the problem
when profiles.clj exists the :dependencies from the :profiles section of project.clj do not get copied into the main :dependencies
Hi all, for a little fun this weekend I made a Clojure library that allows you to encode videos and used it to create some procedural animations. Hope you find it interesting! https://www.youtube.com/watch?v=XKV209VfkTk
Hi. Is it possible to create a custom type with either deftype or defrecord and extend it in such a way that i could be cast to a numerical value? So it could for example be used like this: (+ 1 myrecord)
@danielsu: no. Number is a class, not an interface and you can't extend deftypes/defrecords to a class
hi, any known ways you gals/guys aware to get all the protocols defined by a given namespace?
anyone have any like using the like operator wildcard with honeysql?
["SELECT DISTINCT artist_canonical AS id, artist AS name FROM tracks WHERE (id like ?) ORDER BY id " "%"]
works
["SELECT DISTINCT artist_canonical AS id, artist AS name FROM tracks WHERE (id like ?) ORDER BY id " "a%"]
does notand I have data in there....
[ {:id "a guy called gerald", :name "A Guy Called Gerald"} {:id "a minor forest", :name "A Minor Forest"} {:id "a present day nightmare", :name "A PRESENT DAY NIGHTMARE"} {:id "aavikko", :name "Aavikko"} {:id "abiodun oyewole", :name "Abiodun Oyewole"} {:id "able baker fox", :name "Able Baker Fox"} {:id "abscess", :name "Abscess"} {:id "abysmal dawn", :name "Abysmal Dawn"} {:id "ac dc", :name "AC DC"} {:id "ac/dc", :name "AC/DC"} {:id "accept", :name "Accept"} {:id "adam and the ants", :name "Adam And The Ants"} {:id "adam ant", :name "Adam Ant"} {:id "adam west", :name "Adam West"} {:id "adebisi shank", :name "Adebisi Shank"} {:id "adolescents", :name "Adolescents"} {:id "adrenalin od", :name "Adrenalin OD"} {:id "adrenaline o.d.", :name "Adrenaline O.D."} {:id "aerosmith", :name "Aerosmith"} {:id "aesop rock", :name "Aesop Rock"} {:id "afghan whigs", :name "Afghan Whigs"} {:id "afx", :name "AFX"} {:id "agenda of swine", :name "Agenda of Swine"} {:id "agent orange", :name "Agent Orange"} {:id "agoraphobic nosebleed", :name "Agoraphobic Nosebleed"} {:id "akimbo", :name "Akimbo"} {:id "alabama thunderpussy", :name "Alabama Thunderpussy"} {:id "alcest", :name "Alcest"} {:id "alcest", :name "ALCEST"} {:id "alchemist", :name "Alchemist"} {:id "aldonova", :name "Aldonova"}]