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

Error running generator app: SyntaxError: Missing catch or finally after try while compiling ejs #357

Open
1 task done
egvimo opened this issue Nov 18, 2022 · 1 comment

Comments

@egvimo
Copy link
Contributor

egvimo commented Nov 18, 2022

Overview of the issue

Error generating app, when an Entity has an @Id String field (see JDL example below).

Error
✖ An error occured while running jhipster:bootstrap#commitFiles
Error running generator app: SyntaxError: Missing catch or finally after try while compiling ejs

If the above error is not helpful, you may want to try EJS-Lint:
https://github.com/RyanZim/EJS-Lint
Or, if you meant to create an async function, pass `async: true` as an option.
SyntaxError: Missing catch or finally after try while compiling ejs

If the above error is not helpful, you may want to try EJS-Lint:
https://github.com/RyanZim/EJS-Lint
Or, if you meant to create an async function, pass `async: true` as an option.
    at new Function (<anonymous>)
    at Template.compile (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\ejs\lib\ejs.js:673:12)
    at Object.compile (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\ejs\lib\ejs.js:398:16)
    at TemplateFile.compile (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\generator-jhipster\utils\multi-step-transform\template-file.js:43:26)
    at TemplateFileFs.add (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\generator-jhipster\utils\multi-step-transform\template-file-fs.js:31:18)
    at MultiStepTransform.queuedTransform (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\generator-jhipster\utils\multi-step-transform\index.js:21:50)
    at C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\p-transform\index.js:100:31   
    at run (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\p-queue\dist\index.js:157:104)
    at PQueue._tryToStartAnother (C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\p-queue\dist\index.js:105:17)
    at C:\...\nodejs\v16.13.1\node_modules\generator-jhipster-kotlin\node_modules\p-queue\dist\index.js:171:18  
ERROR! Missing catch or finally after try while compiling ejs

Reproduce the error

JDL:

application {
    config {
    baseName sample
    packageName sample
    applicationType microservice
    authenticationType oauth2
    serverPort 8081
    buildTool gradle
    cacheProvider no
    clientFramework no
    databaseType sql
    prodDatabaseType postgresql
    devDatabaseType postgresql
    serviceDiscoveryType no
    enableTranslation false
    messageBroker kafka
    skipClient true
    skipUserManagement true
  }
  entities *
}

entity Abc0 {
    @Id key String
    otherField String
}

Generated with: khipster import-jdl app.jdl --with-entities --skip-git --skip-install --force

KHipster Version(s)

1.16.0

  • Checking this box is mandatory (this is just to show you read everything)
@egvimo
Copy link
Contributor Author

egvimo commented Dec 16, 2022

Any news on that? We are currently a little blocked by this issue. 😞

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

1 participant