calva

chaploud 2025-07-10T11:05:44.300589Z

No `:unresolved-namespace` diagnostic shown in editor for shadow-cljs project (ns :require []) Thank you for the amazing extension! • I've created a shadow-cljs project and used Calva to Jack-in to the shadow-cljs REPL. • My issue is that when I specify a non-existent namespace in a :require (for example, reagent.dommmmm in the screenshot), I expect to see an error diagnostic underline, but it doesn't appear. • Expected Behavior: The editor should show a warning or error for requiring a namespace that does not exist. The shadow-cljs build output in the REPL correctly shows the warning message:

The required namespace "reagent.dommmmm" is not available, it was required by "main/core.cljs".
• I might be missing some configuration. Is there a setting I need to enable to get these unresolued wrong namespace diagnostics to show up in the editor? Any help would be greatly appreciated! P.S. The .clj-kondo and .lsp directories haven't been changed since they were auto-generated upon opening the project.

chaploud 2025-07-10T11:40:20.181119Z

OK I will try >> Files are linted as they're being edited. If you want to lint the whole project, use the clj-kondo cli command. See https://github.com/borkdude/clj-kondo for more info on that.

🥲 1
borkdude 2025-07-10T11:59:35.591419Z

Unresolved namespace is not about wrong names in :require but about namespaces mentioned in the code that are not in :require

chaploud 2025-07-10T12:07:18.573049Z

@borkdude Thank you! The title was misleading. Essentially, I want the editor to show an error for invalid namespaces in the :require statement.

chaploud 2025-07-10T14:20:08.395819Z

I believe there's currently no feature to warn when files for namespaces in (ns :require [nonexist.blur]) don't exist. Please correct me if I'm wrong.

borkdude 2025-07-10T14:20:47.473019Z

I think you're correct

👍 1
🙇 1