-
Notifications
You must be signed in to change notification settings - Fork 7
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
generating stubs fails #1529
Comments
in another project, I get this error: Error generating stubs for module : WARNING: Inst already refers to: #'clojure.core/Inst in namespace: schema.core, being replaced by: #'schema.core/Inst |
The second one there is #1515. For the original issue, can you describe a bit more what the project layout is? Why do you have clj files outside your project? How are they normally used by your project? |
Well it's a bit of a long story... This is a repo we have that has one shared module and 2 applications. we are not using lein-modules as we don't want versioning of the shared module. so, we use a custom lein middleware that basically munges the shared module project.clj with an Anyway, trying to cut this short, I have 2 cursive projects, each one excludes (intellij feature) the app it doesn't need to see and uses a generated project.clj that looks at the source dirs of the shared module and the app. |
So I think that should still work. If I understand correctly, each Cursive project should have source dirs (blue folders in the project view) corresponding to the shared source, is that right? Have you manually added an extra content root to handle the fact that those source folders will be outside the content root of the project (see #324)? |
yes cursive has the right source dirs. but instead of having the project at the level of the app, the project I may have tried the extra content root thing before, but I think I found On Tue, Sep 20, 2016 at 5:51 AM, Colin Fleming [email protected]
|
With that configuration, how do you manage to have the two projects with their root in the same directory? Do you check your repo out in two different locations and then override the |
I did have it checked out twice for a while, although that was a bit of a so now, one app is like this below, and the other one is similar but uses a App-A (generated project.clj) On Tue, Sep 20, 2016 at 10:37 AM, Colin Fleming [email protected]
|
Ok, and under the root App-A, the source dirs are something like |
yes On Tue, Sep 20, 2016 at 10:45 AM, Colin Fleming [email protected]
|
Ok. I'll try to set up a test project with a structure like this and see if I can reproduce your problem. How was the class that it couldn't find defined, and how was it referenced in the App-A source code? |
Cool. On generating stubs from App-A, the error was about a file located App-B/src/com/blah/xyz.clj and that file is referenced only from App-B. The error message was like On Tue, Sep 20, 2016 at 10:54 AM, Colin Fleming [email protected]
|
Ok, I'll do my best to reproduce this. If not, I might have to ask you to try to come up with a simple repro case. Hopefully I'll get to this tomorrow. |
One question, actually - in your App-A, does it also have |
no, just App-A and the shared source are in the source dirs. The repo/App-B directory is excluded. On Tue, Sep 20, 2016 at 11:20 AM, Colin Fleming [email protected]
|
I have this project where a folder with some clj files are not part of the lein project.
generating stubs failed with a message that it couldnt find a class generated from one of those files. deleting the directory temporarily, the stubs generated fine.
The text was updated successfully, but these errors were encountered: