calva 2025-07-10

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.

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

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

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

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.

I think you're correct

👍 1
🙇 1