Skip to content

clojure-expected-ns and custom :source-paths #372

@aiba

Description

@aiba

(clojure-expected-ns) returns the wrong ns if you organize project.clj with :source-paths ["src/server" "src/client" "src/common"]. clojure-expected-ns just chops off the "src/" from the path and makes a ns out of the rest, so it adds an extra e.g. "server." prefix.

It already special-cases "src/clj" and "src/cljs" via a regexp. What if we just made that regexp a defcustom for people who organize their project with custom source-paths?

If that's the right fix, I'd be happy to take a stab at a PR. If there's a better way, I'd love to hear it!

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