Fork me on GitHub
#calva
<
2023-10-31
>
chromalchemy20:10:07

I have a repl connect sequence that works beautifully to load the repl in one command. Can I make this the default to auto-start when the project loads?

chromalchemy20:10:46

"calva.replConnectSequences": [
        {
            "projectType": "deps.edn",
            "name": "GBO Server",
            "cljsType": "none",
            "autoSelectForJackIn": true,
            "projectRootPath": ["."],
            "menuSelections": {
                "cljAliases": ["dev" "flowstorm"]
            }
          }
    ]

pez20:10:06

So you made it the default. If you want it to autoomatically jack-in, there’s no configuration for that. You can make #joyride do it, by executing the calva.jackIn command in the workspace_activate.cljs script. You find some info about the jack-in command here: https://calva.io/customizing-jack-in-and-connect/#options-for-the-jack-in-command

chromalchemy21:10:38

Ok, thanks. I’ll try the Joyride script.

joyride 1
metal 1
pez21:10:58

The jackIn command is one of Calva’s activation events, so I don’t think you need to wait for Calva to be activated before that command works. (Like with some other things needing the Calva API. There’s some example code in either the user or workspace activations scripts around how to do this. (And that I hope you won’t need for this.)

chromalchemy20:10:10

Can I prevent the Output panel with “Welcome to Calva. Happy Clojure and ClojureScript coding!…” from automatically showing on every project loading?

seancorfield20:10:55

Yes, look for Calva Says in the settings:

chromalchemy21:10:15

Thanks. Didnt’ see that one.