calva

seancorfield 2025-03-16T20:02:24.809219Z

This seems to break connecting to a running REPL: TypeError: n.projectRootPath is not iterable (cannot read property undefined) v2.0.490 works fine but v2.0.491 throws this error on connection for all my projects.

seancorfield 2025-03-16T20:04:01.168329Z

This is from my settings:

"calva.replConnectSequences": [
      {
        "name": "Loaded deps.edn Jack-In",
        "projectType": "deps.edn",
        "cljsType": "none",
        "autoSelectForJackIn": false,
        "projectRootPath": ["."],
        "menuSelections": {
          "cljAliases": ["1.12", "dev/repl", "portal", "test", "no-main"]
        }
      },
      {
        "name": "Assumed deps.edn Connect",
        "projectType": "deps.edn",
        "autoSelectForConnect": true
      }
    ],

seancorfield 2025-03-16T20:06:47.438459Z

Ah, it seems that projectRootPath is required now -- I updated the auto-connect setting to the following and now it works with v2.0.491:

{
        "name": "Assumed deps.edn Connect",
        "projectType": "deps.edn",
        "projectRootPath": ["."], // was not needed in v2.0.490 and earlier
        "autoSelectForConnect": true
      }

pez 2025-03-16T20:35:06.663929Z

Thanks! That’s not intended. I’ll have a look at at least catching that error and give a better error message.

Slackbot 2025-03-15T23:58:05.962559Z

This message was deleted.

Jon Hancock 2025-03-16T03:29:11.211159Z

deleted and reposted solution in https://clojurians.slack.com/archives/C03RZMDSH/p1742095899673799