This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-22
Channels
- # announcements (1)
- # beginners (27)
- # calva (11)
- # cider (37)
- # clj-kondo (44)
- # clojure-europe (14)
- # clojure-nl (1)
- # clojure-norway (6)
- # clojure-uk (4)
- # clojurescript (6)
- # cursive (17)
- # data-science (1)
- # datomic (27)
- # duct (4)
- # events (1)
- # fulcro (3)
- # graphql (14)
- # lingy (3)
- # lsp (1)
- # malli (16)
- # off-topic (23)
- # portal (19)
- # reitit (10)
- # releases (2)
- # ring (4)
- # ring-swagger (2)
- # scittle (22)
- # shadow-cljs (33)
- # sql (19)
- # testify (1)
hi, I have a compilation failure because of a missing class and I don't know which part of the code is causing it. Isn't Calva supposed to show the full stack trace or the line that caused the compilation failure? Context: Trying to work out a project with ring-adapter with jetty 11
; Evaluating file: main.clj
;
; ; clj snm.main
; Execution error (ClassNotFoundException) at jdk.internal.loader.BuiltinClassLoader/loadClass (BuiltinClassLoader.java:641).
; org.eclipse.jetty.util.Attributes
; Evaluation of file main.clj failed: class clojure.lang.Compiler$CompilerException
I think we don’t give access to the stack trace when loading the file. Evaluating the ns
form should, though. It’ll be a small button below the error message.
I did not manage to do that. I looked for a command to evaluate ns = could not find it. I positioned cursor after ns parens and evaluated current form - that did not work either - same error. no stack trace
It was positioning the cursor by the form and evaluating it that I was suggesting. You should get a small button Show stacktrace, I don’t understand why you don’t get that. But there’s also a command for it. See if that works.
But you don’t need Calva for it. Evaluating *e
after getting the error message works too. Calva’s stacktrace is basically the same, just a bit curated.