Fork me on GitHub
#calva
<
2020-10-29
>
pez10:10:08

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

😄 6
❤️ 3
borkdude11:10:18

@pez Can you make a screenshot of that?

pez12:10:29

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

calva 3
Stefan13:10:20

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

pez16:10:21

Not available. 😎

bringe16:10:15

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.

pez20:10:31

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

bringe17:10:23

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

Stefan11:10:04

Yeah that’s absolutely awesome superpower.

pez11:10:52

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.

bringe00:11:33

I may have some time in the next couple days

Stefan07:11:41

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

pez09:11:29

Here’s hoping the release goes well!

☝️ 3
pez09:11:09

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.

bringe17:11:38

Team work makes the dream work

❤️ 3
Stefan20:11:46

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

👍 3
pez21:11:05

Sounds great!

paulbutcher15:10:35

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).

bringe16:10:40

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.

bringe16:10:10

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

paulbutcher17:10:43

% 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)

bringe17:10:35

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)

bringe17:10:06

@pez, any idea about this?

bringe18:10:20

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.

paulbutcher18:10:52

Thank you 👍 - really appreciate your help.

pez19:10:06

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