jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.56k stars 4.02k forks source link

"import-jdl" subgenerator is not generating correct imports #3871

Closed jdubois closed 8 years ago

jdubois commented 8 years ago

This is using JHipster 3.5.0, where the "import-jdl" sub-generator is back.

It looks like the importJsonignore variable is not correctly set up when using the "import-jdl" sub-generator, which ends up with missing imports.

-> this is very easy to correct for an end-user (just import the missing class), but it's a major issue for us as there is a compilation error on first run, for a fresh project using our sample application. So that's really a bad first experience with JHipster for new users. -> Easy work-around is to use JHipster UML directly

@MathieuAA @deepu105 I know you worked on this, do you have any idea about this bug? I will have time until Monday afternoon, after that I won't have Internet access for one week, so if we do an emergency release it should be pretty quick

MathieuAA commented 8 years ago

This is weird. JUML uses JHipster (plain ol' yo jhipster:entity <NAME>) to generate entities. @deepu105, how does the generator do it? I see this so I think you use the generator directly instead of the command, am I right?

deepu105 commented 8 years ago

@MathieuAA its equivalent of using the command directly. Thats not the issue. Seems like the issue is with the ejs imports not being used when an entity is being generated from json file. Im getting the same issue when i run yo jhipster:entity on any json. looking further into it

deepu105 commented 8 years ago

OK I found the issue. Seems like its coming from the jhipster-core. ill push a fix immediately.

deepu105 commented 8 years ago

@MathieuAA can you do a patch release please, may be along with fix for https://github.com/jhipster/generator-jhipster/issues/3870

deepu105 commented 8 years ago

ill push a lib update for jhipster as soon as the core patch is released

deepu105 commented 8 years ago

Im ashamed that I didnt do an mvn test when doing this earlier :(

jdubois commented 8 years ago

I'll be able to do a patch release during the week-end, just ping me when you're ready

MathieuAA commented 8 years ago

Where is the issue?

Le 22 juillet 2016 18:31:59 GMT+02:00, Deepu K Sasidharan notifications@github.com a écrit :

OK I found the issue. Seems like its coming from the jhipster-core. ill push a fix immediately.


You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/jhipster/generator-jhipster/issues/3871#issuecomment-234591546

Mathieu ABOU-AICHI

deepu105 commented 8 years ago

look at the commit above

MathieuAA commented 8 years ago

If everything works, can you make a quick patch release?

Le 22 juillet 2016 18:31:59 GMT+02:00, Deepu K Sasidharan notifications@github.com a écrit :

OK I found the issue. Seems like its coming from the jhipster-core. ill push a fix immediately.


You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/jhipster/generator-jhipster/issues/3871#issuecomment-234591546

Mathieu ABOU-AICHI

deepu105 commented 8 years ago

@MathieuAA you havent added me as npm colloborator in the project

MathieuAA commented 8 years ago

Really? I thought I did. Sorry. Releasing v1.1.2 (I think) in 5 minutes.

deepu105 commented 8 years ago

can you also add me to the npm project

MathieuAA commented 8 years ago

What's your NPM name Deepu?

deepu105 commented 8 years ago

deepu105

Thanks & Regards, Deepu

On Fri, Jul 22, 2016 at 10:40 PM, Mathieu ABOU-AICHI < notifications@github.com> wrote:

What's your NPM name Deepu?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jhipster/generator-jhipster/issues/3871#issuecomment-234600482, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDlF_QQIt3Hm2FwvlLCiPZeZo3HTEQkks5qYPlrgaJpZM4JSxNm .

MathieuAA commented 8 years ago

Done, I'll release in a bit... just need to add one more test.

MathieuAA commented 8 years ago

v1.1.2 is released.

deepu105 commented 8 years ago

@jdubois I have tested with the sample JDL from the studio and all seems good. In either case please check once if you have time coz another set of eyes are always better