This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-23
Channels
- # announcements (2)
- # architecture (83)
- # asami (2)
- # babashka (49)
- # bangalore-clj (2)
- # beginners (235)
- # braveandtrue (1)
- # calva (17)
- # clojure (109)
- # clojure-australia (5)
- # clojure-czech (5)
- # clojure-dev (24)
- # clojure-europe (17)
- # clojure-germany (2)
- # clojure-nl (3)
- # clojure-serbia (13)
- # clojure-spain (1)
- # clojure-spec (1)
- # clojure-uk (20)
- # clojurescript (3)
- # community-development (34)
- # conjure (10)
- # cursive (21)
- # data-science (1)
- # datahike (1)
- # datalog (1)
- # datomic (12)
- # etaoin (3)
- # events (2)
- # fulcro (13)
- # graphql (8)
- # heroku (2)
- # lsp (58)
- # malli (32)
- # membrane (24)
- # off-topic (63)
- # parinfer (2)
- # pathom (14)
- # portal (14)
- # re-frame (16)
- # reagent (50)
- # releases (1)
- # rum (1)
- # shadow-cljs (10)
- # sql (6)
- # startup-in-a-month (1)
- # timbre (2)
- # tools-deps (61)
- # xtdb (4)
Hi! In my dev environment, I need to almost always jack-in using leiningen with my dev profile, so I was wondering if there is any option in (VSCode + calva) to pre-select these configurations already and when I select option “Start or connect to a Clojure REPL” (or its short cut) it just starts the REPL with my confs without needing to select them again and again.
Hello! Yes, we call them REPL Jack-in and Connection Sequences and they support what you ask for, and then some: https://calva.io/connect-sequences/
Hmm, with the help of this
"calva.replConnectSequences": [
{
"name": "My Defaults",
"projectType": "Leiningen",
"cljsType": "none",
"menuSelections": {
"leinProfiles": ["dev"],
}
}
]
I managed to remove one menu selection option about profile selection, but there are still 2 options I need to select manually.
1. Start your project with REPL server and connect(aka jack-in)
2. select a project type, to my custom project type
Is there any option to eliminate selecting them as well?Using the jack-in command should eliminate the first one. The second one, I don’t think so, but you can think of it as a chorded keyboard shortcut: ctrl+alt+c ctrl+alt+j enter
.
I've reworked the PR for using clojure-lsp native binaries (really just converted it to TypeScript). If anyone wants to help test that would be great. https://12326-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.182-use-clojure-lsp-native-binaries-9be4279e.vsix It should indicate that it's downloading then initializing clojure-lsp in the status bar. I've tested on briefly on Windows and Linux (Manjaro). Still could use a Mac test and any other testing would be nice.
I've run across an issue with that vsix with the completion request failing while editing a deps.edn file. Reported here: https://github.com/clojure-lsp/clojure-lsp/issues/381
@richiardiandrea I've added some info to this issue about using the debugger for endpoints in ring and pedestal services. If you have time to review the pedestal part (as I think that applied to your situation) and add add any info/questions/feedback that could help us to improve the docs around this or to fix something if needed, that would be very appreciated. https://github.com/BetterThanTomorrow/calva/issues/1049
will definitely check and do that - will post here
wow you actually identified the problem with pedestal there, good job, var reloading is always a problem in this kind of things