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`.
practicalli-john 2021-01-17T00:09:28.102100Z

Oh, the standard practice has always been a double semi-colon for start of a line since I started with Clojure in 2010. I think this comes from lisp too, so it's even longer practice for lisp languages The Clojure style guidesl defines ;; as a comment line and ; as a comment after code on a line Formatting tools that follow the Clojure style guide will move singe ; comments half way along the screen. Cider does this too. So a developer using Calva may cause a lot of format changes for others developers they work with.

Eric Uitbeijerse 2021-01-17T08:40:02.103900Z

Hi, I've been using Calva for >2 months now but for some reason I cannot get the VS Code 'Outline view' to work. Any tips?

Eric Uitbeijerse 2021-01-18T17:05:48.133100Z

Must be something in my code/project, if I setup a new project outline view does work. Will investigate and let you know the root cause (if I find it:wink:).

๐Ÿ‘ 1
pez 2021-01-18T17:13:46.133800Z

Great. Hereโ€™s hoping you find it. As I said, this is new functionality and we certainly has quirks to find.

Eric Uitbeijerse 2021-01-18T22:31:49.152900Z

I'm able to reproduce the issue. I've uploaded a small example to https://github.com/eu400000/Calva-VSC-Outline-Issue. The readme file has the details to reproduce the issue. Not sure if this is Calva related. I did remove the VSC 'Better comments' extension to rule that out as possible cause (no effect). Hope the example makes sense to you.

pez 2021-01-18T22:34:44.153200Z

Thanks!

pez 2021-01-18T22:35:25.153400Z

Whatโ€™s your take on this, @ericdallo?

ericdallo 2021-01-18T22:39:47.153600Z

Sorry but I don't known how Calva outline view works, it should shows symbols of the current ns? do you know what lsp method Calva request to clojure-lsp?

pez 2021-01-18T22:41:10.153800Z

Not really. It just magically appears when we hook up the lsp. ๐Ÿ˜ƒ

pez 2021-01-18T22:42:00.154Z

But I can investigate it some. Or maybe if @brandon.ringe has the time, he is more in the know of this than I am.

bringe 2021-01-18T22:49:08.154200Z

I believe VS Code is using the response from the textDocument/symbols lsp request, which I'm assuming is not returning symbols or something. I'll have to look at the trace logs for this when I have time

bringe 2021-01-18T22:50:43.154400Z

Thanks for the repro project! Made an issue to track it here: https://github.com/BetterThanTomorrow/calva/issues/962

๐Ÿ‘ 1
ericdallo 2021-01-18T22:51:17.154700Z

Yeah, probably it's what @brandon.ringe said ๐Ÿ™‚

pez 2021-01-17T08:52:18.105600Z

Hello, two months ago it wasn't enabled in Calva. But now it should work. Which version of Calva are you using?

Eric Uitbeijerse 2021-01-17T09:08:14.105800Z

v2.0.151. I reinstalled earlier today to see if that fixed the issue (it didn't)

Eric Uitbeijerse 2021-01-17T09:46:12.106Z

(on Windows 10 btw)

pez 2021-01-17T10:44:56.106200Z

Thatโ€™s the latest and greatest. We have had Windows issues lately. Maybe this is one. Can you create a minimal repro that we can look at?

Eric Uitbeijerse 2021-01-17T10:51:44.106400Z

You mean in github (I normally use Azure DevOps GIT)?

clyfe 2021-01-17T20:38:26.110Z

My awkward current https://github.com/clyfe/vscode: โ€ข Sexp movement via ctrl+arrows. โ€ข Word selection via shift+ctrl+arrows. โ€ข Movement sometimes via word selection (in-sym/kw/str use) โ€ข killListForwardToClipboard used for delete, cut, or copy sexp list Should be pretty usable for folks that haven't used paredit before.

๐Ÿ‘ 2
pez 2021-01-17T20:41:15.110300Z

Iโ€™m not picky. ๐Ÿ˜ƒ But a repository we can clone that exposes the error.