Fork me on GitHub
#calva
<
2024-01-29
>
chromalchemy18:01:31

I’m trying to set up Repl connect sequence to add an env var to repl boot: ~/Library/Application Support/Code/User/settings.json in "calva.replConnectSequences"

{
            "name": "XTDB electric Fiddle dev",
            "projectType": "Clojure-CLI",
            "afterCLJReplJackInCode": "(dev/-main)(dev/load-fiddle! 'xtdb-demo)",
            "customJackInCommandLine": "XTDB_ENABLE_BYTEUTILS_SHA1=true clj -A:dev:xtdb-demo",
            "autoSelectForConnect": false
        }
But name is not showing up in Repl start menu.. See anything off? I have a normal connect sequence (not custom command line) that is working btw..

pez19:01:54

Can you show the full connect sequence settings? I don’t see anything wrong with what you have there.

chromalchemy14:01:17

This is the whole kv in user/settings.json

"calva.replConnectSequences": [
        {
            "name": "XTDB electric Fiddle dev",
            "projectType": "Clojure-CLI",
            "afterCLJReplJackInCode": "(dev/-main)(dev/load-fiddle! 'xtdb-demo)",
            "customJackInCommandLine": "XTDB_ENABLE_BYTEUTILS_SHA1=true clj -A:dev:xtdb-demo",
            "autoSelectForConnect": false
        },
        {
            "projectType": "deps.edn",
            "name": "dev deps nrepl",
            "cljsType": "none",
            "autoSelectForJackIn": false,
            "projectRootPath": [
                "."
            ],
            "menuSelections": {
                "cljAliases": [
                    "dev"
                ]
            }
        }
    ],

chromalchemy14:01:25

The second one shows up in menu

pez17:01:58

Very strange… can you try adding project root path to the first one? And also removing it from the second one. Maybe there’s a bug around that…

chromalchemy18:01:01

Ok tried that. Still same result. Only second one shows in repl menus.

"calva.replConnectSequences": [
        {
            "name": "XTDB electric Fiddle dev",
            "projectType": "Clojure-CLI",
            "afterCLJReplJackInCode": "(dev/-main)(dev/load-fiddle! 'xtdb-demo)",
            "customJackInCommandLine": "XTDB_ENABLE_BYTEUTILS_SHA1=true clj -A:dev:xtdb-demo",
            "autoSelectForConnect": false,
            "projectRootPath": [
                "."
            ],
        },
        {
            "projectType": "deps.edn",
            "name": "dev deps nrepl",
            "cljsType": "none",
            "autoSelectForJackIn": false,
            "menuSelections": {
                "cljAliases": [
                    "dev"
                ]
            }
        }
    ],
For reference, I have tried restarting vscode..

chromalchemy18:01:22

It’s not urgent. Just seeing if I was doing something wrong..