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`.
Brian smith 2021-03-15T14:46:55.321Z

Hello, Calva friends! I've been doing Clojure development using Calva on and off for about a year now and have never run across this issue. I'm using clj-time to work with dates/times. When I spin up a REPL by jacking-in, when using the clj-time.local namespace to get local-now, I am getting a date the represents the UTC time zone instead of my local time zone. Is this a REPL problem? A PBCK problem? Thank you for any information!!!! I'm using Remote development to an Unbuntu WSL instance.

pez 2021-03-15T14:54:21.323600Z

Hi @brian.smith, happy to hear from you! Pretty sure it is not to do with the tooling. If you do some regular println testing with lein run (or equivalent), you should be able to confirm wether that is the case or not.

pez 2021-03-15T14:55:12.324600Z

I know I get all dizzy trying to figure timezone things out. Having struggled with that a lot in my work project recently. πŸ˜ƒ

Brian smith 2021-03-15T14:59:15.325600Z

Thanks @pez, I appreciate you responding. I am sure it isn't a problem with the tooling, just my understanding of it.

pez 2021-03-15T15:06:51.325700Z

FYI, Calva friends.

ericdallo 2021-03-15T15:11:39.326700Z

@brandon.ringe, about https://github.com/BetterThanTomorrow/calva/pull/981 clojure-lsp now has a way to disable all lints (clj-kondo and clojure-lsp new lint) https://clojure-lsp.github.io/clojure-lsp/settings/#diagnostics-linter πŸ™‚

πŸ‘ 1
bringe 2021-03-15T16:02:11.327300Z

Awesome! Thanks for letting me know.

πŸ‘ 1
seancorfield 2021-03-15T17:50:29.327700Z

@brian.smith I’m one of the maintainers of clj-time and I’d recommend not using it, but using the built-in Java Time via interop or one of the Java Time wrappers listed in clj-time’s README.

Brian smith 2021-03-15T19:56:11.328300Z

I thought I was going insane for a minute. Thank you for responding. All I've been attempting to do is to find the number of hours difference between two date-times...

seancorfield 2021-03-15T19:58:10.328500Z

Date/time stuff is hard and timezones doubly so.

sashton 2021-03-15T21:02:59.330100Z

I’m exploring calva, and trying out some clojure-lsp features. Calls: Show Call Hierarchy doesn’t work for me. Should it? But when I execute Go to Definition when I am already on the function definition, I do get a popup which shows call references.

bringe 2021-03-16T15:47:08.012200Z

Hmm, okay. I'll create a ticket to track this, since it seems to not work correctly atm.

ericdallo 2021-03-16T16:00:05.020100Z

Yes, it works properly on emacs:

πŸ‘ 1
bringe 2021-03-16T16:01:50.022400Z

We don't have any middleware related to that, but I also don't see those requests being made, which is strange. It's possible that feature was added in a newer version of the protocol, but our client uses an older version currently. We'll have to investigate.

ericdallo 2021-03-16T16:03:51.022600Z

yes, definitely that was added on latest protocol version, 3.16

bringe 2021-03-16T16:04:43.022800Z

Ah, that makes sense then. We'll need to upgrade