This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-29
Channels
- # announcements (1)
- # beginners (176)
- # biff (3)
- # calva (7)
- # clojure (68)
- # clojure-europe (18)
- # clojure-nl (1)
- # clojure-norway (12)
- # clojure-uk (6)
- # community-development (4)
- # conjure (1)
- # core-async (5)
- # datomic (21)
- # events (1)
- # fulcro (5)
- # funcool (3)
- # hyperfiddle (35)
- # leiningen (18)
- # malli (3)
- # nbb (20)
- # overtone (20)
- # pedestal (1)
- # polylith (68)
- # portal (6)
- # releases (1)
- # shadow-cljs (6)
- # slack-help (7)
- # squint (6)
- # vim (4)
- # xtdb (4)
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..Can you show the full connect sequence settings? I don’t see anything wrong with what you have there.
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"
]
}
}
],
The second one shows up in menu
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…
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..It’s not urgent. Just seeing if I was doing something wrong..