Closed bdealey closed 5 years ago
Forgot to mention that the JDL directive of "istioRoute" is still documented on the JDL web page: https://www.jhipster.tech/jdl/
I think its removed in new version. May be docs are not updated yet. IstioRoutes are generated by default now
On Wed, 22 May 2019, 6:38 pm bdealey, notifications@github.com wrote:
Forgot to mention that the JDL directive of "istioRoute" is still documented on the JDL web page: https://www.jhipster.tech/jdl/
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jhipster/jhipster-core/issues/330?email_source=notifications&email_token=AAIOKF4VBDXXVGX4RN46ACDPWVZJJA5CNFSM4HOWC222YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV7UONY#issuecomment-494880567, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIOKF2N5JOJ4D6HPIS4I3DPWVZJJANCNFSM4HOWC22Q .
This is taken care of. Thanks for reporting this
Overview of the issue
The JDL file worked fine in jhipster 5.8. This JDL was taken from a jhipster kubernetes demo. Since upgrading to jhipster 6.0.1, it now gives the following error. Taking out the following two JDL directives will successfully generate the project. istio autoInjection istionRoute true
But these two are needed. Again this worked perfectly in jhipster 5.8
❯ jhipster import-jdl jhipster-app.jdl --debug INFO! Using JHipster version installed globally INFO! Debug logging is on DEBUG! Executing CLI only script DEBUG! cmd: import-jdl from ./import-jdl DEBUG! args: jhipster-app.jdl, commands: Object, options: Object, _execs: Object, _allowUnknownOption: true, _args: Object, _name: import-jdl, _noHelp: false, parent: Object, _description: Create entities from the JDL file passed in argument. By default everything is run in parallel. If you like to interact with the console use '--interactive' flag., _argsDescription: undefined, _events: Object, _eventsCount: 1 INFO! Executing import-jdl jhipster-app.jdl INFO! Options: debug: true, from-cli: true DEBUG! JDLProcessor started with jdlFiles: jhipster-app.jdl and options: debug: true, from-cli: true INFO! The JDL is being parsed. error: Error message: MismatchedTokenException: Expecting --> '}' <-- but found --> 'istionRoute' <-- at line: 225, column: 3 DEBUG! Error: SyntaxError: Error: MismatchedTokenException: Expecting --> '}' <-- but found --> 'istionRoute' <-- at line: 225, column: 3 ERROR! Error while parsing applications and entities from the JDL SyntaxError: Error: MismatchedTokenException: Expecting --> '}' <-- but found --> 'istionRoute' <-- at line: 225, column: 3 SyntaxError: Error: MismatchedTokenException: Expecting --> '}' <-- but found --> 'istionRoute' <-- at line: 225, column: 3 at callApiMethod (/usr/local/Cellar/jhipster/6.0.1/libexec/lib/node_modules/generator-jhipster/node_modules/jhipster-core/lib/reader/jdl_reader.js:88:11) at parse (/usr/local/Cellar/jhipster/6.0.1/libexec/lib/node_modules/generator-jhipster/node_modules/jhipster-core/lib/reader/jdl_reader.js:72:10) at Object.parseFromFiles (/usr/local/Cellar/jhipster/6.0.1/libexec/lib/node_modules/generator-jhipster/node_modules/jhipster-core/lib/reader/jdl_reader.js:41:10) at parseFiles (/usr/local/Cellar/jhipster/6.0.1/libexec/lib/node_modules/generator-jhipster/node_modules/jhipster-core/lib/jdl/jdl_importer.js:82:20) at JDLImporter.import (/usr/local/Cellar/jhipster/6.0.1/libexec/lib/node_modules/generator-jhipster/node_modules/jhipster-core/lib/jdl/jdl_importer.js:64:30) at JDLProcessor.importJDL (/usr/local/Cellar/jhipster/6.0.1/libexec/lib/node_modules/generator-jhipster/cli/import-jdl.js:76:41) at JDLProcessor.importJDL (/usr/local/Cellar/jhipster/6.0.1/libexec/lib/node_modules/generator-jhipster/cli/import-jdl.js:292:38) at module.exports (/usr/local/Cellar/jhipster/6.0.1/libexec/lib/node_modules/generator-jhipster/cli/import-jdl.js:446:21) at Command.command.allowUnknownOption.description.action.args (/usr/local/Cellar/jhipster/6.0.1/libexec/lib/node_modules/generator-jhipster/cli/cli.js:72:36) at Command.listener (/usr/local/Cellar/jhipster/6.0.1/libexec/lib/node_modules/generator-jhipster/node_modules/commander/index.js:315:8)
Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix
JHipster Version(s)
jhipster 6.0.1
JHipster configuration
Below is the jhipster info output. There is no .yo-rc.json as error is seen in the jhipster import-jdl command. ❯ jhipster info INFO! Using JHipster version installed globally INFO! Executing jhipster:info INFO! Options: from-cli: true Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
cat: no such file or directory: .yo-rc.json
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
java version "1.8.0_192" Java(TM) SE Runtime Environment (build 1.8.0_192-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.192-b12, mixed mode)
git version 2.21.0
node: v10.14.1
npm: 6.9.0
yeoman: 2.0.5
Docker version 18.09.2, build 6247962
docker-compose version 1.23.2, build 1110ad01
INFO! Congratulations, JHipster execution is complete!
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL file attached. Added .txt extension to it to allow it to be attached for this form.
Browsers and Operating System
OS: MacOS There is no browser as this error is generated from the command ine
] Checking this box is mandatory (this is just to show you read everything)