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

Codenameone Initializr does not prepare Eclipse project properly #3724

Closed
ebardet opened this issue Aug 9, 2023 · 2 comments
Closed

Codenameone Initializr does not prepare Eclipse project properly #3724

ebardet opened this issue Aug 9, 2023 · 2 comments
Assignees

Comments

@ebardet
Copy link

ebardet commented Aug 9, 2023

After importing an Eclipse project prepared by the Initializr into the Eclipse IDE, Eclipse reports a java error in the ready to use application controller class.
image

To work out this, I found there's a couple of extra manual steps:

  1. Adding org.eclipse.m2e.apt.mode=jdt_apt to the ./common/.settings/org.eclipse.m2e.apt.prefs
    image

  2. Adding target/generated-sources/rad-views to the .classpath
    image

These could be generated by the Initializr.

@ebardet
Copy link
Author

ebardet commented Aug 10, 2023

All in the common directory.

Here is the .classpath (mind the JRE that is specific to my env)
classpath.txt
In the common/.settings directory, org.eclipse.jdt.apt.core.prefs and org.eclipse.m2e.apt.prefs:
prefs.zip

I don't think the other .prefs files are needed but if so, just ask.

shannah added a commit to shannah/cn1-maven-archetypes that referenced this issue Oct 21, 2023
@shannah
Copy link
Collaborator

shannah commented Oct 21, 2023

Thanks for sharing.
This is a bit involved to get this to automatically generate this in the initializr. As a half-measure, I've added a note to the documentation for CodeRAD:

https://shannah.github.io/CodeRAD/manual/#getting-started

image

I have added the same note to the default project readme for maven projects in the archetype, which will start appearing in projects starting next release.

Really appreciate you sharing as this will likely help many other users get started with CN1.

@shannah shannah closed this as completed Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants