Skip to content

Problems when generating stubs due to interactions with user.clj #2808

@cursive-ghost

Description

@cursive-ghost

When Cursive generates stubs, it currently creates a classpath for the module as if it were running a REPL. However, this can cause issues due to user.clj files which may be on the classpath and will be automatically executed by Clojure. Since stubs are only generated for library code, the classpath for stub generation should only include the library roots, and not source roots.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMarks issues describing bugsreleasedMarks issues which have had the fixes released in a stable build

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions