You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A jdl blueprint errors when run using the .blueprint/generators/generate-sample/generator.mjs
command: jhipster-<blueprintName> generate-sample sample.jdl
No change to package.json was detected. No package manager install will be executed.
ERROR! An error occured while running jhipster-adikkal:jdl#checkOptions
ERROR! ERROR! At least one jdl file is required.
Error: At least one jdl file is required.
at default.checkOptions (file:///home/dwarka/develop/code/brmaStr/basepack/generator-jhipster-adikkal/node_modules/generator-jhipster/dist/generators/jdl/generator.js:88:27)
at default.executeTask (file:///home/dwarka/develop/code/brmaStr/basepack/generator-jhipster-adikkal/node_modules/yeoman-generator/dist/actions/lifecycle.js:244:26)
at env.queueTask.once (file:///home/dwarka/develop/code/brmaStr/basepack/generator-jhipster-adikkal/node_modules/yeoman-generator/dist/actions/lifecycle.js:218:56)
at runLoop.add.once (file:///home/dwarka/develop/code/brmaStr/basepack/generator-jhipster-adikkal/node_modules/yeoman-environment/dist/environment-base.js:395:23)
at Immediate.<anonymous> (/home/dwarka/develop/code/brmaStr/basepack/generator-jhipster-adikkal/node_modules/grouped-queue/lib/subqueue.js:48:34)
at process.processImmediate (node:internal/timers:478:21)
Motivation for or Use Case
It should be possible to use generate-sample devBlueprint to generate samples.
Reproduce the error
Create a blueprint for jdl and try running the command jhipster-<blueprintName> generate-sample sample.jdl
@mshima this is much better than what I had suggested. I was a little hesitant to use _agrs (although it was used in parseJHipsterArguments) from yeoman. Your solution has fixed the problem for all blueprint generators. This is great and thank you so much.
I tested both cli & generate-sample, both works like a charm. Once again thank you so much...
Overview of the issue
A jdl blueprint errors when run using the .blueprint/generators/generate-sample/generator.mjs
command:
jhipster-<blueprintName> generate-sample sample.jdl
Motivation for or Use Case
It should be possible to use generate-sample devBlueprint to generate samples.
Reproduce the error
Create a blueprint for jdl and try running the command
jhipster-<blueprintName> generate-sample sample.jdl
Related issues
None.
Suggest a Fix
Change this to
await this.composeWithBlueprints('jdl', { generatorArgs: (this.options as any).jdlFiles });
similar to language generator
jdl generator can be composed as follows,
JHipster Version(s)
main branch
JHipster configuration
.yo-rc.json file
Environment and Tools
openjdk version "17.0.8" 2023-07-18
OpenJDK Runtime Environment Temurin-17.0.8+7 (build 17.0.8+7)
OpenJDK 64-Bit Server VM Temurin-17.0.8+7 (build 17.0.8+7, mixed mode, sharing)
git version 2.34.1
node: v20.11.1
npm: 10.2.4
Docker version 25.0.3, build 4debf41
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
The text was updated successfully, but these errors were encountered: