calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
bringe 2020-12-07T02:26:33.148700Z

Hello, how are you running the service and what action are you taking that results in the breakpoint not being hit? Are you starting it from the repl? Then are you hitting some endpoint of the service? If so, do you happen to be loading the file between setting the breakpoint (and evaluating the function where the breakpoint is) and hitting the endpoint? This could result in the breakpoint not being hit because of the load-file operation. If you have eval-on-save enabled this is also loading the file on save and will make the breakpoint not be hit afterward. If you provide detailed steps for when it's not working, I can better troubleshoot.

practicalli-john 2020-12-07T19:32:20.151300Z

I'd like to jack-in to a Clojure project using the user-wide configuration for Clojure CLI tools. I created a calva.replConnectSequences configuration in settings.json but in the terminal Task - Calva Jack-in output it says WARNING: Specified aliases are undeclared: [:inspect/portal-clj] Did I miss a step to tell Calva about my ~/.clojure/deps.edn aliases?

"calva.replConnectSequences": [
        {
            "name": "Inspect Portal",
            "projectType": "Clojure CLI",
            "cljsType": "none",
            "menuSelections": {
                "cljAliases": [
                    "env/dev",
                    "inspect/portal-clj"
                ]
            }
        }
    ],

practicalli-john 2020-12-07T19:42:28.154600Z

Hmm, I think Calva replConnectSequences doesn't like Clojure CLI tools aliases that use kebab case. Is that right? I added the inspect/portal-clj alias to the project deps.edn and the alias still reported as undeclared. Using the alias name :inspect/portal in the project deps.edn file works without issue.

practicalli-john 2020-12-07T19:47:23.157200Z

Yes, it seems a calva.replConnectSequences configuration in settings.json file does not like aliases in kebab case, like :inspect-portal or :inspect/portal-clj I removed the portal alias from the project deps.edn file and removed the dash in the name of the alias in the ~/.clojure/deps.edn file and the Inspect Portal sequence I created found the aliase.

pez 2020-12-07T20:17:38.158200Z

The warning does not come from Calva though…

bringe 2020-12-07T20:41:29.159100Z

Hmm.. I cannot reproduce. I tried your scenario as close as I could from what you said. The warning is coming from here in tools.deps: https://github.com/clojure/tools.deps.alpha/blob/b496c199388c5945f328c5d6aaf166a5cc4764d2/src/main/clojure/clojure/tools/deps/alpha/script/make_classpath2.clj#L55

bringe 2020-12-07T20:42:24.159800Z

There may be some difference in your system and mine, maybe a difference cli/tools.deps version or something.