Fork me on GitHub
#calva
<
2021-03-23
>
Pratik17:03:00

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.

pez17:03:02

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/

Pratik06:03:59

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?

pez06:03:19

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.

Pratik06:03:52

cool thanks 👍

bringe22:03:11

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.

pez22:03:28

I’ll give it a spin tomorrow at work, @brandon.ringe.

❤️ 2
bringe22:03:14

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

ericdallo01:03:58

Fixed and released 🙂

bringe01:03:35

Works 😃

bringe23:03:38

@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

richiardiandrea00:03:21

will definitely check and do that - will post here

richiardiandrea00:03:24

wow you actually identified the problem with pedestal there, good job, var reloading is always a problem in this kind of things

bringe01:03:09

Oh, good to know I hit the mark!

bringe01:03:27

There could be some way around that with pedestal