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

SkipClient error while parsing with recommended syntax in studio #56

Open
GeCol1 opened this issue Sep 25, 2018 · 1 comment
Open

SkipClient error while parsing with recommended syntax in studio #56

GeCol1 opened this issue Sep 25, 2018 · 1 comment

Comments

@GeCol1
Copy link

GeCol1 commented Sep 25, 2018

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
└── [email protected]



##### **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.

@deepu105
Copy link
Member

@MathieuAA is this syntax supported?

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

2 participants