Skip to content

Project analysis is constrained to .clj files #396

@vemv

Description

@vemv

means that
(defn warm-ast-cache []
(doseq [f (tracker/project-files-in-topo-order true)]
(try
(ns-ast (slurp f))
(catch Throwable th
(when (System/getProperty "refactor-nrepl.internal.log-exceptions")
(-> th .printStackTrace))
nil ; noop, ast-status will be reported separately
)))
(ast-stats))
will only see .clj files.

That's mostly desired behavior, since tools.analyzer only works for JVM Clojure.

However, we could also pick up .cljc files and tell tools.analyzer, if needed, to read them with :read-cond :allow :features #{:clj}.

This would result in a more complete analysis which therefore would be less prone to errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions