Skip to content

SkipClient error while parsing with recommended syntax in studio #56

Description

@GeCol1

Hello,

I want to use the skipClient. Based on issue #10 it should be supported.
When I use it like that (with for all)
jdl-studio-02
and when I import it with jhipster import-jdl jhipster-jdl.jh I get the following error:

The JDL is being parsed.
error: Error message:
	NoViableAltException: Expecting: one of these possible Token sequences:
  1. ['@']
  2. ['entity']
  3. [COMMENT, 'entity']
  4. ['relationship']
  5. ['enum']
  6. ['dto']
  7. ['paginate']
  8. ['service']
  9. [COMMENT]
  10. ['microservice']
  11. ['search']
  12. ['skipClient']
  13. ['skipServer']
  14. ['angularSuffix']
  15. ['noFluentMethod']
  16. ['filter']
  17. ['clientRootFolder']
  18. ['application']
  19. [NAME]
but found: 'all'
	at line: 10, column: 16

So I tried like that:
jdl-studio-01

and in that case it works but there is a warning message in the studio.
Here is my jhipster version:

Executing jhipster:info
Options: from-cli: true
Welcome to the JHipster Information Sub-Generator

##### **JHipster Version(s)**

/home/djay
└── generator-jhipster@5.3.4



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


<details>
<summary>.yo-rc.json file</summary>
<pre>
{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "com.mycompany.myapp",
      "nativeLanguage": "en"
    },
    "jhipsterVersion": "5.3.4",
    "applicationType": "monolith",
    "baseName": "srv1",
    "packageName": "com.mycompany.myapp",
    "packageFolder": "com/mycompany/myapp",
    "serverPort": "8080",
    "authenticationType": "jwt",
    "cacheProvider": "ehcache",
    "enableHibernateCache": true,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "postgresql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "maven",
    "enableSwaggerCodegen": false,
    "jwtSecretKey": "bXktc2VjcmV0LXRva2VuLXRvLWNoYW5nZS1pbi1wcm9kdWN0aW9uLWFuZC10by1rZWVwLWluLWEtc2VjdXJlLXBsYWNl",
    "enableTranslation": true,
    "nativeLanguage": "en",
    "languages": [
      "en"
    ]
  }
}
</pre>
</details>


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

<details>
<summary>JDL entity definitions</summary>

<pre>
entity Region {
  regionName String
}
dto Region with mapstruct
service Region with serviceImpl

</pre>
</details>


##### **Environment and Tools**

openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)

git version 2.18.0

node: v8.11.4

npm: 6.4.1

yeoman: 2.0.4

yarn: 1.9.4

Docker version 18.06.1-ce, build e68fc7a215

docker-compose version 1.22.0, build f46880fe

Congratulations, JHipster execution is complete!

Let me know if you need something else.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions