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`.
pez 2020-10-29T10:27:08.025600Z

So good with the new stack traces, @brandon.ringe! I almost smile when my code crashes now. 😃

❤️ 1
😄 2
borkdude 2020-10-29T11:27:18.025900Z

@pez Can you make a screenshot of that?

pez 2020-10-29T12:58:29.027300Z

I can do better than a screenshot (because @brandon.ringe is so awesome) 😀 https://calva.io/output/#stack-traces

1
borkdude 2020-10-29T13:32:20.028100Z

nice!

Stefan 2020-10-29T13:32:20.028200Z

Somebody just whispered into my ear that clj-kondo can do “find usages”. Is this available as a command in Calva somehow?

bringe 2020-10-30T17:28:23.039700Z

I can't wait to get clojure-lsp merged in and add features with it!

Stefan 2020-10-31T11:56:04.047700Z

Yeah that’s absolutely awesome superpower.

pez 2020-10-31T11:58:52.048100Z

I am not sure how to go about it. If you two guys have some time to have a video chat we can discuss what the shape of this challenge is and maybe formulate a plan to tackle it.

bringe 2020-11-01T00:12:33.064200Z

I may have some time in the next couple days

Stefan 2020-11-02T07:59:41.085600Z

I’m super busy for work atm, release coming up… 😞

pez 2020-11-02T09:25:29.085800Z

Here’s hoping the release goes well!

☝️ 1
pez 2020-11-02T09:28:09.086Z

I’m fine with waiting for your plate to clear up a bit. I think that if we talk about this task a bit, the three of us, we can find a better plan than just one or two of us would.

bringe 2020-11-02T17:41:38.086600Z

Team work makes the dream work

❤️ 1
Stefan 2020-11-02T20:43:46.087Z

Thanks @pez! I’m looking at coming weekend if that suits you guys.

👍 1
pez 2020-11-02T21:08:05.087600Z

Sounds great!

Stefan 2020-10-29T13:32:40.028600Z

(👋 @borkdude) 🙂

paulbutcher 2020-10-29T15:21:35.033500Z

I’m just getting started with Calva, so please forgive rookie errors. I’m getting loads of errors in the terminal whenever I jack-in (I don’t know how many because they exceed the number of lines the terminal retains). The errors are all of the form:

java.lang.NullPointerException: Cannot invoke "jdk.javadoc.internal.doclets.formats.html.HtmlConfiguration.getOptions()" because "this.configuration" is null
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDoclet.getSupportedOptions(HtmlDoclet.java:292)
        at jdk.javadoc/jdk.javadoc.doclet.StandardDoclet.getSupportedOptions(StandardDoclet.java:93)
        at cider.nrepl.inlined_deps.orchard.v0v5v5.orchard.java.parser$parse_java$reify__3373.getSupportedOptions(parser.clj:77)
        at jdk.javadoc/jdk.javadoc.internal.tool.Start.getSupportedOptionsOf(Start.java:645)
        at jdk.javadoc/jdk.javadoc.internal.tool.Start.consumeDocletOption(Start.java:593)
        at jdk.javadoc/jdk.javadoc.internal.tool.Start.parseArgs(Start.java:799)
        at jdk.javadoc/jdk.javadoc.internal.tool.Start.parseAndExecute(Start.java:497)
        at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:399)
        at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:361)
        at jdk.javadoc/jdk.javadoc.internal.api.JavadocTaskImpl.call(JavadocTaskImpl.java:104)
        at cider.nrepl.inlined_deps.orchard.v0v5v5.orchard.java.parser$parse_java.invokeStatic(parser.clj:87)
        at cider.nrepl.inlined_deps.orchard.v0v5v5.orchard.java.parser$parse_java.invoke(parser.clj:64)
        at cider.nrepl.inlined_deps.orchard.v0v5v5.orchard.java.parser$source_info.invokeStatic(parser.clj:299)
        at cider.nrepl.inlined_deps.orchard.v0v5v5.orchard.java.parser$source_info.invoke(parser.clj:290)
        at clojure.lang.Var.invoke(Var.java:384)
        at cider.nrepl.inlined_deps.orchard.v0v5v5.orchard.java$class_info_STAR_.invokeStatic(java.clj:196)
        at cider.nrepl.inlined_deps.orchard.v0v5v5.orchard.java$class_info_STAR_.invoke(java.clj:187)
        at cider.nrepl.inlined_deps.orchard.v0v5v5.orchard.java$class_info.invokeStatic(java.clj:234)
        at cider.nrepl.inlined_deps.orchard.v0v5v5.orchard.java$class_info.invoke(java.clj:226)
        at cider.nrepl.inlined_deps.orchard.v0v5v5.orchard.java$eval3592$fn__3593.invoke(java.clj:376)
        at clojure.core$binding_conveyor_fn$fn__5754.invoke(core.clj:2030)
        at clojure.lang.AFn.call(AFn.java:18)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)
I saw a mention in the slack archive from a few weeks back where the suggestion was to start VSCode from the command line using code but that’s how I always start VSCode, and I still get these errors. The weird thing is that even though I get errors, everything still seems to work - I can still execute code and see results within my editor windows. I’ve tested against a brand-new project created with lein new and still see the same problem, so I don’t think it’s anything weird about my project. Suggestions gratefully received (thanks in advance).

pez 2020-10-29T16:32:21.034200Z

Not available. 😎

bringe 2020-10-29T16:41:15.034700Z

It's actually used by Calva for adding debugger decorations to instrumented functions and their usages. This part uses clj-kondo as a library. So, I guess it could be used in a more explicit feature for finding usages.

bringe 2020-10-29T16:47:40.035100Z

What's your OS, lein version, and java version? I haven't seem this before, that I remember. It seems to be something related to Java though, system-specific.

bringe 2020-10-29T16:48:10.035400Z

Especially if you say you got that with a lein new project template

paulbutcher 2020-10-29T17:19:43.035600Z

% uname -v      
Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64
% lein --version
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Leiningen 2.9.4 on Java 15 OpenJDK 64-Bit Server VM
% java -version 
openjdk version "15" 2020-09-15
OpenJDK Runtime Environment AdoptOpenJDK (build 15+36)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15+36, mixed mode, sharing)

bringe 2020-10-29T17:57:35.035900Z

Thanks. I don't think I've used an open jdk version that high before. I wonder if that has something to do with it, and maybe in relation to the orchard library which seems to be throwing an error in some parse function (part of cider-nrepl which jack-in injects as a dependency)

bringe 2020-10-29T17:59:06.036500Z

@pez, any idea about this?

bringe 2020-10-29T18:00:25.036700Z

Oh, seems this is a known issue: https://github.com/clojure-emacs/orchard/issues/100

bringe 2020-10-29T18:03:20.037Z

For now, if you want to stop seeing those errors, you could downgrade your JDK version. I think 11 should work fine. I'm not sure about the others.

paulbutcher 2020-10-29T18:12:52.037700Z

Thank you 👍 - really appreciate your help.

bringe 2020-10-29T18:15:48.037900Z

No prob!

pez 2020-10-29T19:56:06.038100Z

Good find, @brandon.ringe. Hope you'll find Calva useful and nice, @paulbutcher, welcome!

pez 2020-10-29T20:15:31.038300Z

I think clojure-lsp has a lot of nice stuff that Calva users would like.

pez 2020-10-29T20:18:24.038500Z

Just try this old VSIX and you'll feel the power 😃 https://8510-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.80-feat-lsp-client-27da0c33.vsix

pez 2020-10-29T21:05:54.038700Z

Or try this one which has 995 additional commits merged 😃 https://8515-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.131-feat-lsp-client-0efee118.vsix

pez 2020-10-29T21:26:05.038900Z

And here is one with the latest clojure-lsp, which includes clj-kondo https://8520-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.131-feat-lsp-client-679f33ff.vsix