Generating eclipse descriptors before compiling is unsupported #23
Comments
@ignasi35 should we be adding this to the IDE docs in Lagom rather than here? |
That's a good point. I'd say we add it both places:
|
On second thought... this issue applies to sbt+play+eclipse only and it's already documented in Play docs (see link above). I would only document it here. |
Alternatively we could have the |
@ignasi35 what's the symptom of this bug? It seems to import successfully for me (after running |
Freshly clone, run There's missing folders created when a Play compilation happens which were not included into Eclipse descriptor files causing Eclipse to complain. I've tried to reproduce today and failed. This could be fixed as a side effect of bumping I'll close this until we observe it again. |
Reproduction
Expected BehaviorwebGateway project should be imported successfully with no errors.
Actual BehaviorwebGateway includes 2 packages:
webGateway is imported but shows this 16 errors.
|
I think I tried that today but I did pull latest changes first.
Also, I was using a newer Scala IDE (installed couple of days ago) than
what I had installed when I detected the issue.
Can you specify the commit SHA-1 of your local copy and the eclipse version?
|
Scala IDE version: 4.5.0-vfinal |
I can see the problem now... I didn't have Scala IDE installed at all. @ignasi35 are you using a fresh clone or fully cleaned repo? |
My Scala IDE version is: Scala IDE for Eclipse 4.4.1.v-2_11-201605041057-92a3ed3 |
I don't know why it installed that version rather than 4.5, but I have updated now and I can still reproduce the errors. It did take a while... you need to wait for it to finish "Building workspace". @ignasi35 could that explain why you didn't see the errors? In any case, I can confirm now that @yg-apaza's change does fix the problem. There are only a few unrelated warnings reported now. Thank you for the detailed reproduction steps! I'll go ahead and merge the pull request. |
BTW I do also get errors in online-auction-java. I'll port the change in #32 over to that project. |
I can't. I tried reproducing the issue in |
I do remember removing all |
Importing a play project into eclipse requires (https://www.playframework.com/documentation/2.5.x/IDE#Setup-sbteclipse):
sbt clean compile eclipse
instead of simply
sbt eclipse
That is because
compile
creates some sources thatsbt eclipse
must also consider when creating the eclipse project files.This is currently undocumented.
NOTE: does it affect
online-auction-java
too?The text was updated successfully, but these errors were encountered: