question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

can't use import-jdl with jdl generated in online JDL-Studio

See original GitHub issue
Overview of the issue

When i run jhipster import-jdl jhipster-jdl.jh i get the following stacktrace:

The jdl is being parsed. events.js:160 throw er; // Unhandled ‘error’ event ^

Error: ERROR! Error while parsing entities from JDL

at Environment.error (D:\projetos\pessoal\jw-meeting-manager\node_modules\yeoman-environment\lib\environment.js:157:40)
at error (D:\projetos\pessoal\jw-meeting-manager\node_modules\generator-jhipster\generators\generator-base.js:1676:18)
at parseJDL (D:\projetos\pessoal\jw-meeting-manager\node_modules\generator-jhipster\generators\import-jdl\index.js:105:26)
at Object.<anonymous> (D:\projetos\pessoal\jw-meeting-manager\node_modules\yeoman-generator\lib\index.js:399:25)
at D:\projetos\pessoal\jw-meeting-manager\node_modules\run-async\index.js:25:25
at D:\projetos\pessoal\jw-meeting-manager\node_modules\run-async\index.js:24:19
at self.env.runLoop.add.completed (D:\projetos\pessoal\jw-meeting-manager\node_modules\yeoman-generator\lib\index.js:400:11)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
Motivation for or Use Case

I’m not being able to import JDL although this is only a small test and i’ve only 3 entities. No error in JDL-STUDIO

JHipster Version(s)

JHipster Generator v4.9.0

JHipster configuration

jhipster info:

Using JHipster version installed locally in current project’s node_modules Executing jhipster:info Options: Welcome to the JHipster Information Sub-Generator

JHipster Version(s)
jwmeetingmanager@0.0.0 D:\projetos\pessoal\jw-meeting-manager
+-- generator-jhipster@4.9.0
`-- UNMET PEER DEPENDENCY popper.js@^1.11.0

JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "pt.goncalo"
    },
    "jhipsterVersion": "4.9.0",
    "baseName": "jwmeetingmanager",
    "packageName": "pt.goncalo",
    "packageFolder": "pt/goncalo",
    "serverPort": "8080",
    "authenticationType": "jwt",
    "hibernateCache": "ehcache",
    "clusteredHttpSession": false,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "mysql",
    "prodDatabaseType": "mysql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": "eureka",
    "buildTool": "maven",
    "enableSocialSignIn": true,
    "enableSwaggerCodegen": false,
    "jwtSecretKey": "replaced-by-jhipster-info",
    "clientFramework": "angularX",
    "useSass": false,
    "clientPackageManager": "yarn",
    "applicationType": "monolith",
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "enableTranslation": false
  }
}
JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions





Environment and Tools

java version “1.8.0_144” Java™ SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot™ 64-Bit Server VM (build 25.144-b01, mixed mode)

git version 2.6.3.windows.1

node: v6.11.4

npm: 3.10.10

bower: 1.8.2

gulp: [18:24:12] CLI version 1.2.1

yeoman: 2.0.0

yarn: 1.2.0

Execution complete

Browsers and Operating System

Windows 7

  • [ X] Checking this box is mandatory (this is just to show you read everything)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
MathieuAAcommented, Oct 10, 2017

Hi, I’ll test it. It may have been a regression…

Checking this out right now.

On 10/10/2017 19:30, Gonçalo wrote:

      *Overview of the issue*

When i run jhipster import-jdl jhipster-jdl.jh i get the following stacktrace:

The jdl is being parsed.
events.js:160
throw er; // Unhandled 'error' event
^

Error: ERROR!
Error while parsing entities from JDL

|at Environment.error
(D:\projetos\pessoal\jw-meeting-manager\node_modules\yeoman-environment\lib\environment.js:157:40)
at error
(D:\projetos\pessoal\jw-meeting-manager\node_modules\generator-jhipster\generators\generator-base.js:1676:18)
at parseJDL
(D:\projetos\pessoal\jw-meeting-manager\node_modules\generator-jhipster\generators\import-jdl\index.js:105:26)
at Object.<anonymous>
(D:\projetos\pessoal\jw-meeting-manager\node_modules\yeoman-generator\lib\index.js:399:25)
at
D:\projetos\pessoal\jw-meeting-manager\node_modules\run-async\index.js:25:25
at
D:\projetos\pessoal\jw-meeting-manager\node_modules\run-async\index.js:24:19
at self.env.runLoop.add.completed
(D:\projetos\pessoal\jw-meeting-manager\node_modules\yeoman-generator\lib\index.js:400:11)
at runCallback (timers.js:672:20) at tryOnImmediate
(timers.js:645:5) at processImmediate [as _immediateCallback]
(timers.js:617:5) |


      *Motivation for or Use Case*

I’m not being able to import JDL although this is only a small test and i’ve only 3 entities. No error in JDL-STUDIO

      *JHipster Version(s)*


      *JHipster configuration*

jhipster info:

Using JHipster version installed locally in current project's
node_modules
Executing jhipster:info
Options:
Welcome to the JHipster Information Sub-Generator


          *JHipster Version(s)*

|jwmeetingmanager@0.0.0 D:\projetos\pessoal\jw-meeting-manager +--
generator-jhipster@4.9.0 `-- UNMET PEER DEPENDENCY popper.js@^1.11.0 |


          *JHipster configuration, a |.yo-rc.json| file generated
          in the root folder*

.yo-rc.json file

{
   "generator-jhipster": {
     "promptValues": {
       "packageName": "pt.goncalo"
     },
     "jhipsterVersion": "4.9.0",
     "baseName": "jwmeetingmanager",
     "packageName": "pt.goncalo",
     "packageFolder": "pt/goncalo",
     "serverPort": "8080",
     "authenticationType": "jwt",
     "hibernateCache": "ehcache",
     "clusteredHttpSession": false,
     "websocket": false,
     "databaseType": "sql",
     "devDatabaseType": "mysql",
     "prodDatabaseType": "mysql",
     "searchEngine": false,
     "messageBroker": false,
     "serviceDiscoveryType": "eureka",
     "buildTool": "maven",
     "enableSocialSignIn": true,
     "enableSwaggerCodegen": false,
     "jwtSecretKey": "replaced-by-jhipster-info",
     "clientFramework": "angularX",
     "useSass": false,
     "clientPackageManager": "yarn",
     "applicationType": "monolith",
     "testFrameworks": [],
     "jhiPrefix": "jhi",
     "enableTranslation": false
   }
}


          *JDL for the Entity configuration(s) |entityName.json|
          files generated in the |.jhipster| directory*

JDL entity definitions



          *Environment and Tools*

java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

git version 2.6.3.windows.1

node: v6.11.4

npm: 3.10.10

bower: 1.8.2

gulp:
[18:24:12] CLI version 1.2.1

yeoman: 2.0.0

yarn: 1.2.0

Execution complete


      *Browsers and Operating System*

Windows 7

  • [ X] Checking this box is mandatory (this is just to show you read everything)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jhipster/generator-jhipster/issues/6501, or mute the thread https://github.com/notifications/unsubscribe-auth/ACoDZarGWaPW-Y7GMMh7Qw60R51Oag6Mks5sq6mwgaJpZM4P0TEA.

0reactions
MathieuAAcommented, Oct 11, 2017

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

JHipster Domain Language (JDL) - Getting Started
If you do not want to regenerate your entities while importing a JDL, you can use the --json-only flag to skip the entity...
Read more >
Jhipster import-jdl not generating entities
I am trying to generate entities for microservices application. All I get is. The jdl is being imported. but nothing else. I used...
Read more >
jhipster/JDL
for some reason I can't import a JDL file, it says there are no changes =( ... to that to add additional information...
Read more >
Create a simple file storage through database with JHipster
For this article we will use a simple JDL. Copy/paste it into JDL studio and select « create new JDL model » in...
Read more >
Jhipster for beginners
JHipster :JHipster is a development platform to generate ,develop and ... You can use our online JDL-Studio or one of the JHipster IDE ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found