Closed hizmarck closed 5 years ago
Just reproduced and discovered a major issue here.
The problem comes from your JDL which is incorrect. In fact, your entity can't end with Detail
. See this code: https://github.com/jhipster/generator-jhipster/blob/master/generators/entity/index.js#L270
But the problem is major, as all error are not displayed any more.
Just try: jhipster entity 999
, and the result is:
INFO! Executing jhipster:entity 999
INFO! Options: from-cli: true
INFO! Congratulations, JHipster execution is complete!
Using git bisect
, I got this result:
18b42dda1888de796a0128cb43b12e05edd45d08 is the first bad commit
commit 18b42dda1888de796a0128cb43b12e05edd45d08
Author: Panayiotis Vlissidis
Date: Thu Feb 14 18:27:55 2019 +0200
Update yeoman dependencies
:100644 100644 11ff0c967ede1ce8938380d51ce0fb7b13771249 13e1595573a5576c2157f47111e170bb5955bfc0 M package.json
It seems an issue with yeoman-environment
.
If I downgrade to from 2.3.4
to 2.3.0
, it works
This commit can probably help here: https://github.com/yeoman/environment/commit/78afb921b47ef0d2d985e4671189c68c1ca500af
Maybe we need to handle the error better in the generator to solve this. I'm putting a bug bounty, as I think it's an important issue.
cc @jhipster/developers
I think I have the fix. I'll try to finish my dev today. Not sure, but maybe we need a patch release for that ?
@pascalgrimaud Yep clearly this needs a release... nice catch
Bounty claimed at https://opencollective.com/generator-jhipster/expenses/8123
Overview of the issue
I had used JHipster online to generate .jh file, when I used the option "Apply", then I got this response:
When I checked the generated branch, and compare with my actual branch:
How can you see, the classes didn't generate right.
Motivation for or Use Case
Well, How you can see, JHipster online doesn't show me that error happened.
Reproduce the error
Used JHipster Online with this diagram:
yo-rc.json
Related issues
Suggest a Fix
I changed the name of entity 'LogTaskDetail' to -> 'LogTaskDetailZF'
JHipster Version(s)
JHipster configuration
package.json
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
Version 74.0.3729.131 (Official Build) (64-bit)
Ubuntu 18.04.2 LTS
openjdk version "1.8.0_191" OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12) OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
Node v10.15.3
npm 6.4.1
[x ] Checking this box is mandatory (this is just to show you read everything)