Fork me on GitHub
#calva
<
2020-02-22
>
benny05:02:33

it seems like calva isn’t recognizing profiles set in ./profiles.clj is that a known limitation?

pez07:02:24

Can you give an example, @benny ?

benny17:02:58

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 available

pez17:02:03

Oh. 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.

benny22:02:05

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

pez07:02:11

Not crazy at all. It makes sense that Calva should read there.

😥 1
kstehn07:02:39

@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

pez08:02:27

@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.

pez09:02:57

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

👍 1