Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cursive-ide opened this issue Jun 30, 2023 · 0 comments
Closed

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

cursive-ide opened this issue Jun 30, 2023 · 0 comments
Labels
bug Marks issues describing bugs released Marks issues which have had the fixes released in a stable build
Milestone

Comments

@cursive-ide
Copy link
Owner

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.

@cursive-ide cursive-ide added this to the 1.13.0-eap3 milestone Jun 30, 2023
@cursive-ide cursive-ide added the bug Marks issues describing bugs label Jun 30, 2023
@cursive-ide cursive-ide added the released Marks issues which have had the fixes released in a stable build label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Marks issues describing bugs released Marks issues which have had the fixes released in a stable build
Projects
None yet
Development

No branches or pull requests

1 participant