jhipster / generator-jhipster-quarkus

Quarkus blueprint for JHipster
https://www.jhipster.tech/blueprints/quarkus/
Apache License 2.0
141 stars 56 forks source link

"no file name or template provided" when importing from JDL file #304

Closed amatosg closed 8 months ago

amatosg commented 1 year ago

Describe the bug when running jhipster-quarkus jdl my-entities.jh, it fails with following error:

WARNING! /home/alejandro/projects/quarkus/node_modules/generator-jhipster-quarkus/generators/entity-server/templates/quarkus/src/main/java/package/domain/Entity.java.ejs
✖ An error occured while running jhipster-quarkus:entity-server#writeServerFiles
Error running generator entities: Error: /home/alejandro/projects/quarkus/node_modules/generator-jhipster-quarkus/generators/entity-server/templates/quarkus/src/main/java/package/domain/Entity.java.ejs:317
    315|     @JoinColumn(name = "<%= getColumnName(relationships[idx].relationshipName) %>_id")
    316| <%_ if (relationshipValidate) { _%>
 >> 317|     <%- include(fetchFromInstalledJHipster('entity-server/templates') + '/src/main/java/package/domain/relationship_validators', {
    318|         idx: idx,
    319|         relationships: relationships
    320|     }) -%>

Internal EJS error: no file name or template provided

To Reproduce Steps to reproduce the behavior:

  1. Generate a base project
  2. Import a JDL file
  3. See error

Expected behavior Generate all files

Desktop (please complete the following information):

Smartphone (please complete the following information):

Doesn't apply

Additional context Using node 16 because of #298

mraible commented 8 months ago

Can you please provide the contents of your my-entities.jh file?

mraible commented 8 months ago

Closing due to lack of response. Please reopen if this is still an issue.