Fork me on GitHub
#calva
<
2022-09-27
>
Jakub Holý (HolyJak)06:09:53

Hello awesome Calva crowd! Question about "menuSelections" at https://calva.io/connect-sequences/ - I suppose that cljsDefaultBuild, cljsLaunchBuilds also apply to the shadow-cljs project type, not just raw cljs. Its that correct?

pez06:09:22

That's correct. Please help update the docs if they are not clear on this. I'm not even sure how this would work with ”raw cljs” (though I am pretty sure it works, haha). I've only used it with shadow and figwheel main.

👍 1
pez14:09:33

Looks a lot like in my copy of the workshop 😃

"calva.replConnectSequences": [
    {
      "name": "Fulcro Intro Workshop",
      "projectType": "shadow-cljs",
      "afterCLJReplJackInCode": "(do (require-resolve 'fulcro-todomvc.server) (fulcro-todomvc.server/http-server))",
      "cljsType": "shadow-cljs",
      "menuSelections": {
        "cljsLaunchBuilds": [
          "todomvc"
        ],
        "cljsDefaultBuild": "todomvc"
      }
    }
  ],

Jakub Holý (HolyJak)15:09:31

Damn, I completely forgot about that one! Btw you could simplify to ((requiring-resolve 'fulcro-todomvc.server/http-server)), which is a neat idea

metal 1
otwieracz07:09:40

Hello. It seems to me like Calva is running linter for every letter I type (so typing (defn create [config] I receive 5 subsequent warnings on that line, one after another, for unused binding c, co, con, conf, confi and config. This takes a second or two to complete, makes everything feel a little sluggish and it also seems like any completion prompts only appear after all the queued lints complete. Is there a way to set a delay for a linter, so it will run only after I stop typing?

1
pez08:09:31

I'm unsure. What do you think, @U9A1RLFNV, @UKFSJSM38?

ericdallo11:09:28

Pretty weird, is it possible to test with nightly clojure-lsp? We made some bug perf improvements and I'd like to see if changes anything for you

otwieracz22:09:50

OK, so I think it is truly the first time that try updating to nightly seem to have resolved any of my issues.

😀 1
otwieracz22:09:24

Will give it a longer run, but on first glance it seems to be fixed! @UKFSJSM38

🎉 1
ericdallo22:09:27

Glad you tried one more time :) cool