calva

pez 2025-03-19T11:21:11.484889Z

Dear Calva friends calva. To help the VS Code team see the huge problem with the latest Insiders version, please consider throwing your thumb up on this issue on VS Code: https://github.com/microsoft/vscode/issues/243923 πŸ™ ❀️

πŸ‘ 1
Tomas Brejla 2025-03-19T11:29:35.557069Z

Where does that [ 0, 0, 5, 10, 0 ] come from?

Tomas Brejla 2025-03-19T11:30:11.957649Z

+ is it important that the .clj is multiline?

#_[
]
vs
#_[]
?

pez 2025-03-19T11:47:25.850029Z

The [ 0, 0, 5, 10, 0 ] comes from clojure-lsp. It represents one semantic token. Each token can be viewed as a five-item tuple: 1. deltaLines (from previous token) 2. charStart (on its line) 3. tokenLength 4. tokenType (10 means comment when it comes from clojure-lsp) 5. modifier bitmap When VS Code reads this list of tokens it uses it to paint the tokens from the current theme. The length 5, is what you get if you select the whole form, including it’s ignore marker (and newline, could be that it is length 6 on DOS machines). So far I have only seen the freeze problem happen with multi-line tokens.

Thierry 2025-03-20T07:58:32.454969Z

Came here to check for a bug and this is exactly the issue I am having. Except I have downgraded Code-insiders and Calva already. Any tips for versions to have a work-around? Ps. upvoted the issue.

Thierry 2025-03-20T07:59:52.249809Z

Nvm, I see 1.99 is the culprit in the issue, reverting to 1.98

pez 2025-03-20T08:06:37.711589Z

@thierry572 if you download the VSIX found here https://app.circleci.com/pipelines/github/BetterThanTomorrow/calva/8582/workflows/f3977360-7536-405e-b32a-6a3dc3669457/jobs/47696/artifacts and install in VS Code 1.99 it should avoid this issue. I need some more testing on it, and you can help. πŸ˜ƒ

πŸ‘€ 1
Thierry 2025-03-20T08:07:11.551719Z

I also get a lot of these, but might be unrelated

Thierry 2025-03-20T08:07:27.472469Z

I can do that, let me shut down my repl

Thierry 2025-03-20T08:07:39.536839Z

need to reinstall newest vscode too

pez 2025-03-20T08:09:02.044549Z

VS Code Insiders, right? I hope it hasn’t reach the regular VS Code yet.

Thierry 2025-03-20T08:12:12.525239Z

yes I use insiders

Thierry 2025-03-20T08:21:51.668889Z

installing now

Thierry 2025-03-20T08:25:31.183489Z

Dunno if Calva related, but these weren't there in 1.98 and previous Calva version

Thierry 2025-03-20T08:26:16.095359Z

bunch of aggregate errors

Thierry 2025-03-20T08:26:31.089699Z

no dissapearing text uet

Thierry 2025-03-20T08:26:32.587069Z

yet*

Thierry 2025-03-20T08:54:22.792199Z

still going strong

Thierry 2025-03-20T08:54:40.821629Z

many FAILED event errors, but its still woprking

Thierry 2025-03-20T09:22:39.464209Z

Bunch of these too

pez 2025-03-20T10:49:27.304439Z

Yeah. We should clean up the errors. But they have been there for years, so unrelated.

Thierry 2025-03-24T07:56:22.746879Z

Unfortunately not fixed with latest Calva and vscode

pez 2025-03-19T21:56:41.891479Z

Dear Calva friends: https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.492 β€’ https://github.com/BetterThanTomorrow/calva/issues/2679 With flares we can trigger behaviour in VS Code from the REPL (any Calva connected REPL). This release ships with the first flare: #flare/html{…}, which lets you open a WebView using HTML or any URL. Read more about flares here: https://calva.io/flares/ Thanks, @timothypratley for adding this! ❀️ πŸ™ calva

Erkan 2025-03-20T13:51:10.983359Z

That is sick! it would be super cool if you could somehow get a hold of a html element - then you could render your reagent stuff in the repl 🀯 (tagged-literal 'flare/html {:html (rdom/render [:h1 "foo"] <???element???>), :title "Greeting" :key "example"})

1
🀘 1
Daniel Slutsky 2025-03-21T13:54:33.373569Z

Recently, @timothypratley and @pez collaborated on the new Flares feature, that allows opening the VSCode WebView as a result of a REPL evaluation. https://calva.io/flares/ https://github.com/BetterThanTomorrow/calva/pull/2680 Yesterday, @timothypratley used that and updated the https://scicloj.github.io/clay/#setup of the Clay tool. So now, with Clay, rendered forms and namespaces will open automatically inside the vscode webview. We will discuss this feature briefly in a couple of upcoming meetings (today and Monday): https://clojureverse.org/t/clojure-real-world-data-28/ https://clojureverse.org/t/visual-tools-meeting-31-workflow-demos-5/

2
πŸ‘€ 1
πŸŽ‰ 1
🀘 2
Daniel Slutsky 2025-03-21T13:58:33.342879Z

pez 2025-03-21T14:00:23.240669Z

🀯

πŸŽ‰ 1
πŸ™ƒ 1
pez 2025-03-19T01:48:52.928549Z

Some help with testing this VSIX would be greatly appreciated. ❀️ calva πŸ™