This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-22
Channels
- # beginners (43)
- # bristol-clojurians (2)
- # calva (11)
- # cider (10)
- # clj-kondo (3)
- # clojars (19)
- # clojure (93)
- # clojure-france (44)
- # clojure-nl (10)
- # clojure-uk (15)
- # clojuredesign-podcast (1)
- # clr (6)
- # core-typed (102)
- # data-science (1)
- # datomic (11)
- # docker (4)
- # emacs (12)
- # fulcro (27)
- # graalvm (6)
- # joker (1)
- # leiningen (4)
- # lumo (20)
- # nrepl (3)
- # off-topic (63)
- # parinfer (4)
- # reagent (40)
- # remote-jobs (2)
- # shadow-cljs (18)
- # spacemacs (7)
- # tree-sitter (7)
- # yada (3)
it seems like calva isn’t recognizing profiles set in ./profiles.clj
is that a known limitation?
I created a file .profiles.clj
at the root of my project with the following contents:
{:dev-local {:env {:port "8080"
:database-type "postgresql"
:database-name "devlocal"
:database-username "postgres"
:database-password "postgres"
:database-host "localhost"
:database-port "5432"}}
:test-local {:env {:port "9090"
:database-type "postgresql"
:database-name "testdb"
:database-username "postgres"
:database-password "mysecretpassword"
:database-host "localhost"
:database-port "5432"}}}
yet when i jack in, i don’t have dev-local
or test-local
availableOh. I wasn't aware about that kind of file. So it is a limitation, but was unknown to me until now. 😃 Please file an issue about it. Even better, a PR, but issue is fine too. Meanwhile you can do what @slack1038 suggests and reference your profiles in a custom connect sequence.
it’s built into lein so i don’t think i’m doing anything too crazy: https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md#declaring-profiles
@benny i guess you mean something other than the user profile when yes you need to define a custome connect sequence and in there you can define a list of leinProfiles
one example is here with REBL https://calva.readthedocs.io/en/latest/rebl.html#leiningen
@sogaiu, if you, in your #tree-sitter explorations, find some examples of files with crazy syntax, please share them with me. I'm about to release some fixes to Calva's structural editing parser, and am a bit on the defence about it.
Here's the latest build with the new rainbow parens/ignore highlighting, using the (updated) paredit parser, dear Calva-friends: https://4011-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.77-dev-9618fde1.vsix Consider it a release candidate and please help me test it. A visible change in this build is that I've decided that dimmed ignores should still be rainbowed. cc @slack1038, @brandon.ringe, @filipematossilva, @hoppy