Skip to content

[analysis] Provide info about fqs not required #2531

@ericdallo

Description

@ericdallo

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

  • I have read the Clojure etiquette and will respect it when communicating on this platform.

Is your feature request related to a problem? Please describe.
Currently, for the following code:

(ns foo)
(clojure.java.io/file ".")

clj-kondo doesn't provide any analysis for the clojure.java.io/file symbol, even a full valid namespace, even not required, which makes clojure-lsp do not know about it, affecting some features:

  • definition: we cannot go to the function definition
  • hover: we cannot show the docs about it
  • semantic tokens: we cannot color the alias + function name as we do not know about it.
    and other less important

Describe the solution you'd like
any analysis about at least the ns + function name would help, I thought about something like a basic var-usage with something telling that it's unresolved.

Describe alternatives you've considered
Parse the code in clojure-lsp with rewrite-clj, but that's a no-go for performance reasons.

Additional context

Clojure-lsp issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions