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`.
metehan 2021-02-22T00:02:06.027600Z

this zip doesn't contain .vsix file do I do something wrong ?

bringe 2021-02-22T00:05:18.027800Z

Clicking that link above should download a .vsix file for you. It did for me. Does it not for you?

metehan 2021-02-22T00:05:56.028Z

I got a zip: calva-2.0.174-1040-getting-started-repl-c61e5e6e.zip

metehan 2021-02-22T00:08:11.028800Z

I've manually convereted .zip to .vsix I got an error

pez 2021-02-22T00:08:27.029300Z

Converted?

metehan 2021-02-22T00:09:07.030100Z

I mean just changed extension (converted was wrong word)

pez 2021-02-22T00:09:12.030300Z

You should get away with just changing the file extension.

pez 2021-02-22T00:09:30.030700Z

What was the error you got?

metehan 2021-02-22T00:09:46.030900Z

pez 2021-02-22T00:11:30.032600Z

Strange. I'm afk and can't test this myself. Let's see if someone else can. Never had that happen before...

1✔️
seancorfield 2021-02-22T02:43:05.032900Z

@m373h4n I just downloaded that on Windows, got the zip, changed .zip to .vsix, and then in VS Code > Extensions > ... > Install from VSIX... and selected the newly renamed .vsix file and it installed fine for me.

1❤️
jlmr 2021-02-22T08:08:29.033200Z

clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version,"0.8.3"},cider/cider-nrepl {:mvn/version,"0.25.8"}}}' -A:add-libs:reveal-nrepl-middleware:dev -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
WARNING: When invoking clojure.main, use -M
nREPL server started on port 49526 on host localhost - <nrepl://localhost:49526>
This is the output I’m getting. No errors, but I do see a WARNING about invoking clojure.main

pez 2021-02-22T09:20:18.033800Z

Maybe the file got corrupted in your download @m373h4n. I just tried it (on Mac, but anyway) and vscode happily just uses it.

ingesol 2021-02-22T10:59:53.036900Z

I’m trying to write a clj-kondo hook to use inside calva. Put it in .clj-kondo/hooks/my_ns.clj. Pointed at that file from .clj-kondo/config.edn, which I have pointed to from calva. Starting out by trying to get stuff printed to output, or even crashing by throwing an exception from the hook. No luck so far, no crash and nothing in the log from my prn statements. Looking at output, choosing “Log (extension host)“. Any ideas?

borkdude 2021-02-22T11:01:15.037200Z

@ingesol Try from the command line first maybe

Ben 2021-02-22T11:01:41.037600Z

Good points. Upon second thought, it’s not clear how to speed it up. I think my (perceived) issue was that adding #_ is much slower than doing cmd-slash. But that’s not a fair comparison, because cmd-slash does not comment out structurally …

borkdude 2021-02-22T11:01:47.037900Z

Also, disable linting in Calva (now possible in latest release) and try with the clj-kondo vscode plugin to determine if this is a Calva or LSP issue

Ben 2021-02-22T11:02:14.038500Z

I think I should simply get into the habit of using alt+left/right and then type #_.

ingesol 2021-02-22T11:02:17.038700Z

@borkdude Thanks! Those things make sense, trying ASAP

ingesol 2021-02-22T11:02:40.039200Z

just never tried from the command line, so just picked the easy way first 🙂

ingesol 2021-02-22T11:39:39.039600Z

I got contact by running from the command line, thanks!

bringe 2021-02-22T17:39:20.039700Z

I see. What about in the output.calva-repl window?

bringe 2021-02-22T17:44:56.040500Z

@borkdude I wonder if the above is an issue with clojure-lsp?

borkdude 2021-02-22T17:45:18.040700Z

could be.

borkdude 2021-02-22T17:48:29.041400Z

needs a repro, @ingesol - welcome to post an issue I guess

1☝️
metehan 2021-02-22T22:27:11.041800Z

again I got Element 'Identity' has invalid value for attribute 'Version' ---&gt; System.FormatException: Input string was not in a correct format. but np I'll wait normal release 🙂