{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8611","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8611/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8611/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8611/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/8611","id":371903166,"node_id":"MDU6SXNzdWUzNzE5MDMxNjY=","number":8611,"title":"\"skipClient for Entity\" syntax doesn't work","user":{"login":"rubensa","id":1469340,"node_id":"MDQ6VXNlcjE0NjkzNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1469340?v=4","gravatar_id":"","url":"https://api.github.com/users/rubensa","html_url":"https://github.com/rubensa","followers_url":"https://api.github.com/users/rubensa/followers","following_url":"https://api.github.com/users/rubensa/following{/other_user}","gists_url":"https://api.github.com/users/rubensa/gists{/gist_id}","starred_url":"https://api.github.com/users/rubensa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubensa/subscriptions","organizations_url":"https://api.github.com/users/rubensa/orgs","repos_url":"https://api.github.com/users/rubensa/repos","events_url":"https://api.github.com/users/rubensa/events{/privacy}","received_events_url":"https://api.github.com/users/rubensa/received_events","type":"User","site_admin":false},"labels":[{"id":371241240,"node_id":"MDU6TGFiZWwzNzEyNDEyNDA=","url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/JDL","name":"JDL","color":"fbca04","default":false},{"id":1057688801,"node_id":"MDU6TGFiZWwxMDU3Njg4ODAx","url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/needs-reproduction","name":"needs-reproduction","color":"fce1c2","default":false}],"state":"closed","locked":false,"assignee":{"login":"MathieuAA","id":2753381,"node_id":"MDQ6VXNlcjI3NTMzODE=","avatar_url":"https://avatars3.githubusercontent.com/u/2753381?v=4","gravatar_id":"","url":"https://api.github.com/users/MathieuAA","html_url":"https://github.com/MathieuAA","followers_url":"https://api.github.com/users/MathieuAA/followers","following_url":"https://api.github.com/users/MathieuAA/following{/other_user}","gists_url":"https://api.github.com/users/MathieuAA/gists{/gist_id}","starred_url":"https://api.github.com/users/MathieuAA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MathieuAA/subscriptions","organizations_url":"https://api.github.com/users/MathieuAA/orgs","repos_url":"https://api.github.com/users/MathieuAA/repos","events_url":"https://api.github.com/users/MathieuAA/events{/privacy}","received_events_url":"https://api.github.com/users/MathieuAA/received_events","type":"User","site_admin":false},"assignees":[{"login":"MathieuAA","id":2753381,"node_id":"MDQ6VXNlcjI3NTMzODE=","avatar_url":"https://avatars3.githubusercontent.com/u/2753381?v=4","gravatar_id":"","url":"https://api.github.com/users/MathieuAA","html_url":"https://github.com/MathieuAA","followers_url":"https://api.github.com/users/MathieuAA/followers","following_url":"https://api.github.com/users/MathieuAA/following{/other_user}","gists_url":"https://api.github.com/users/MathieuAA/gists{/gist_id}","starred_url":"https://api.github.com/users/MathieuAA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MathieuAA/subscriptions","organizations_url":"https://api.github.com/users/MathieuAA/orgs","repos_url":"https://api.github.com/users/MathieuAA/repos","events_url":"https://api.github.com/users/MathieuAA/events{/privacy}","received_events_url":"https://api.github.com/users/MathieuAA/received_events","type":"User","site_admin":false}],"milestone":null,"comments":14,"created_at":"2018-10-19T10:41:38Z","updated_at":"2018-11-01T20:23:24Z","closed_at":"2018-11-01T20:09:02Z","author_association":"NONE","body":"<!--\r\n- Please follow the issue template below for bug reports and feature requests.\r\n- If you have a support request rather than a bug, please use [Stack Overflow](http://stackoverflow.com/questions/tagged/jhipster) with the JHipster tag.\r\n- For bug reports it is mandatory to run the command `jhipster info` in your project's root folder, and paste the result here.\r\n- Tickets opened without any of these pieces of information will be **closed** without any explanation.\r\n-->\r\n\r\n##### **Overview of the issue**\r\n\r\n<!-- Explain the bug or feature request, if an error is being thrown a stack trace helps -->\r\nI'm trying to skip client code generation for some entities.  \r\nFor app generation if using following JDL:\r\n```\r\napplication {\r\n  config {\r\n    applicationType monolith\r\n\tauthenticationType jwt\r\n    baseName demo\r\n\tbuildTool maven\r\n\tcacheProvider hazelcast\r\n\tclientFramework angularX\r\n\tclientPackageManager npm\r\n\tdatabaseType sql\r\n\tdevDatabaseType h2Disk\r\n\tenableHibernateCache true\r\n\tenableSwaggerCodegen false\r\n\tenableTranslation true\r\n\tjhiPrefix auto\r\n\tlanguages [en]\r\n\tmessageBroker false\r\n\tnativeLanguage en\r\n\tpackageName com.company.demo\r\n\tprodDatabaseType postgresql\r\n\tsearchEngine false\r\n\tserverPort 8080\r\n\tserviceDiscoveryType no\r\n\tskipServer false\r\n\tskipUserManagement false\r\n\ttestFrameworks []\r\n\tuseSass false\r\n\twebsocket false\r\n  }\r\n  entities *\r\n}\r\n\r\nentity EntityOne {\r\n    field1 String\r\n}\r\n\r\nentity EntityTwo {\r\n    field1 String\r\n}\r\n\r\nskipClient for EntityTwo\r\n```\r\n\r\nUsing sintax specified in [Doc](https://www.jhipster.tech/jdl/):\r\n```\r\nskipClient for A\r\n```\r\nbut **jhipster** complains with:\r\n```\r\nUsing JHipster version installed globally\r\nExecuting import-jdl src/model/Model.jdl\r\nOptions: from-cli: true\r\nThe JDL is being parsed.\r\nerror: Error message:\r\n        NoViableAltException: Expecting: one of these possible Token sequences:\r\n  1. ['@']\r\n  2. ['entity']\r\n  3. [COMMENT, 'entity']\r\n  4. ['relationship']\r\n  5. ['enum']\r\n  6. ['dto']\r\n  7. ['paginate']\r\n  8. ['service']\r\n  9. [COMMENT]\r\n  10. ['microservice']\r\n  11. ['search']\r\n  12. ['skipClient']\r\n  13. ['skipServer']\r\n  14. ['angularSuffix']\r\n  15. ['noFluentMethod']\r\n  16. ['filter']\r\n  17. ['clientRootFolder']\r\n  18. ['application']\r\n  19. [NAME]\r\nbut found: 'EntityTwo'\r\n        at line: 42, column: 16\r\nSyntaxError: Error: NoViableAltException: Expecting: one of these possible Token sequences:\r\n  1. ['@']\r\n  2. ['entity']\r\n  3. [COMMENT, 'entity']\r\n  4. ['relationship']\r\n  5. ['enum']\r\n  6. ['dto']\r\n  7. ['paginate']\r\n  8. ['service']\r\n  9. [COMMENT]\r\n  10. ['microservice']\r\n  11. ['search']\r\n  12. ['skipClient']\r\n  13. ['skipServer']\r\n  14. ['angularSuffix']\r\n  15. ['noFluentMethod']\r\n  16. ['filter']\r\n  17. ['clientRootFolder']\r\n  18. ['application']\r\n  19. [NAME]\r\nbut found: 'EntityTwo'\r\n        at line: 42, column: 16\r\nERROR! Error while parsing applications and entities from the JDL SyntaxError: Error: NoViableAltException: Expecting: one of these possible Token sequences:\r\n  1. ['@']\r\n  2. ['entity']\r\n  3. [COMMENT, 'entity']\r\n  4. ['relationship']\r\n  5. ['enum']\r\n  6. ['dto']\r\n  7. ['paginate']\r\n  8. ['service']\r\n  9. [COMMENT]\r\n  10. ['microservice']\r\n  11. ['search']\r\n  12. ['skipClient']\r\n  13. ['skipServer']\r\n  14. ['angularSuffix']\r\n  15. ['noFluentMethod']\r\n  16. ['filter']\r\n  17. ['clientRootFolder']\r\n  18. ['application']\r\n  19. [NAME]\r\nbut found: 'EntityTwo'\r\n        at line: 42, column: 16\r\n```\r\n\r\nLooks that syntax is wrong (obsolete) in some parts of the documentation (this needs to be fixed).\r\n\r\nIf I remove word **for** as seems to be the syntax if you look at [Unary Options](https://www.jhipster.tech/jdl/#all_options) in Doc:\r\n```xml\r\n<OPTION> <ENTITIES | * | all> except? <ENTITIES>\r\n```\r\n**Model.jdl**\r\n```\r\napplication {\r\n  config {\r\n    applicationType monolith\r\n\tauthenticationType jwt\r\n    baseName demo\r\n\tbuildTool maven\r\n\tcacheProvider hazelcast\r\n\tclientFramework angularX\r\n\tclientPackageManager npm\r\n\tdatabaseType sql\r\n\tdevDatabaseType h2Disk\r\n\tenableHibernateCache true\r\n\tenableSwaggerCodegen false\r\n\tenableTranslation true\r\n\tjhiPrefix auto\r\n\tlanguages [en]\r\n\tmessageBroker false\r\n\tnativeLanguage en\r\n\tpackageName com.company.demo\r\n\tprodDatabaseType postgresql\r\n\tsearchEngine false\r\n\tserverPort 8080\r\n\tserviceDiscoveryType no\r\n\tskipServer false\r\n\tskipUserManagement false\r\n\ttestFrameworks []\r\n\tuseSass false\r\n\twebsocket false\r\n  }\r\n  entities *\r\n}\r\n\r\nentity EntityOne {\r\n    field1 String\r\n}\r\n\r\nentity EntityTwo {\r\n    field1 String\r\n}\r\n\r\nskipClient EntityTwo\r\n```\r\nthen **jhipster** does not complain but generates all client code (there is Angular code for EntityTwo).\r\n\r\nBut, as you can see below **EntityTwo.json**, **skipClient** option is generated with value **true**.\r\n\r\n##### **Motivation for or Use Case**\r\n\r\n<!-- Explain why this is a bug or a new feature for you -->\r\nI want to be able to skip client code generation for some entities.\r\n\r\n##### **Reproduce the error**\r\n\r\n<!-- For bug reports, an unambiguous set of steps to reproduce the error -->\r\nUse provided Model.jdl versions to reproduce using `jhipster import-jdl Model.jdl`.\r\n\r\n##### **Related issues**\r\n\r\n<!-- Has a similar issue been reported before? Please search both closed & open issues -->\r\n#8561\r\n#7327\r\n\r\n##### **Suggest a Fix**\r\n\r\n<!-- For bug reports, if you can't fix the bug yourself, perhaps you can point to what might be\r\n  causing the problem (line of code or commit) -->\r\njhipster should take into account the value of skipClient.\r\n\r\n##### **JHipster Version(s)**\r\n\r\n<!--\r\nWhich version of JHipster are you using, is it a regression?\r\n-->\r\n5.5.0\r\n\r\n##### **JHipster configuration**\r\n\r\n<!--\r\nTo provide all information we need, you should run `jhipster info` in the project root folder, and\r\ncopy/paste the result here.\r\nThe `.yo-rc.json` file generated in the root folder is mandatory for bug reports. This will help us to replicate the scenario.\r\nYou should remove any sensitive information like the rememberMe key or the jwtSecretKey key.\r\n-->\r\nUsing JHipster version installed globally\r\nExecuting jhipster:info\r\nOptions: from-cli: true\r\nWelcome to the JHipster Information Sub-Generator\r\n\r\n##### **JHipster Version(s)**\r\n\r\n```\r\ndemo@0.0.0 /media/data/rubensa/development/vscode/workspace/autotriaje/pruebas\r\n└── generator-jhipster@5.5.0\r\n\r\n```\r\n\r\n\r\n##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**\r\n\r\n\r\n<details>\r\n<summary>.yo-rc.json file</summary>\r\n<pre>\r\n{\r\n  \"generator-jhipster\": {\r\n    \"clientPackageManager\": \"npm\",\r\n    \"databaseType\": \"sql\",\r\n    \"devDatabaseType\": \"h2Disk\",\r\n    \"enableHibernateCache\": true,\r\n    \"enableSwaggerCodegen\": false,\r\n    \"enableTranslation\": true,\r\n    \"jhiPrefix\": \"auto\",\r\n    \"languages\": [\r\n      \"en\"\r\n    ],\r\n    \"messageBroker\": false,\r\n    \"nativeLanguage\": \"en\",\r\n    \"packageName\": \"com.company.demo\",\r\n    \"packageFolder\": \"com/company/demo\",\r\n    \"prodDatabaseType\": \"postgresql\",\r\n    \"searchEngine\": false,\r\n    \"serviceDiscoveryType\": false,\r\n    \"skipClient\": false,\r\n    \"skipServer\": false,\r\n    \"testFrameworks\": [],\r\n    \"websocket\": false,\r\n    \"applicationType\": \"monolith\",\r\n    \"authenticationType\": \"jwt\",\r\n    \"baseName\": \"demo\",\r\n    \"buildTool\": \"maven\",\r\n    \"cacheProvider\": \"hazelcast\",\r\n    \"clientFramework\": \"angularX\",\r\n    \"serverPort\": \"8080\",\r\n    \"skipUserManagement\": false,\r\n    \"useSass\": false,\r\n    \"jhipsterVersion\": \"5.5.0\",\r\n    \"jwtSecretKey\": \"\"\r\n  },\r\n  \"entities\": [\r\n    \"EntityOne\",\r\n    \"EntityTwo\"\r\n  ]\r\n}\r\n</pre>\r\n</details>\r\n\r\n\r\n##### **JDL for the Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**\r\n\r\n<details>\r\n<summary>JDL entity definitions</summary>\r\n\r\n<pre>\r\nentity EntityOne {\r\n  field1 String\r\n}\r\nentity EntityTwo {\r\n  field1 String\r\n}\r\n\r\n</pre>\r\n</details>\r\n\r\n\r\n##### **Environment and Tools**\r\n\r\njava version \"1.8.0_181\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_181-b13)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)\r\n\r\ngit version 2.17.1\r\n\r\nnode: v8.11.3\r\n\r\nnpm: 5.6.0\r\n\r\nDocker version 18.06.1-ce, build e68fc7a\r\n\r\ndocker-compose version 1.21.2, build a133471\r\n\r\nCongratulations, JHipster execution is complete!\r\n\r\n##### **Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**\r\n\r\n<!--\r\nIf the error is during an entity creation or associated with a specific entity.\r\nIf you are using JDL, please share that configuration as well.\r\n-->\r\n**EntityOne.json**\r\n```json\r\n{\r\n    \"name\": \"EntityOne\",\r\n    \"fields\": [\r\n        {\r\n            \"fieldName\": \"field1\",\r\n            \"fieldType\": \"String\"\r\n        }\r\n    ],\r\n    \"relationships\": [],\r\n    \"changelogDate\": \"20181019103412\",\r\n    \"entityTableName\": \"entity_one\",\r\n    \"dto\": \"no\",\r\n    \"pagination\": \"no\",\r\n    \"service\": \"no\",\r\n    \"jpaMetamodelFiltering\": false,\r\n    \"fluentMethods\": true,\r\n    \"clientRootFolder\": \"\",\r\n    \"applications\": [\r\n        \"demo\"\r\n    ]\r\n}\r\n```\r\n\r\n**EntityTwo.json**\r\n```json\r\n{\r\n    \"name\": \"EntityTwo\",\r\n    \"fields\": [\r\n        {\r\n            \"fieldName\": \"field1\",\r\n            \"fieldType\": \"String\"\r\n        }\r\n    ],\r\n    \"relationships\": [],\r\n    \"changelogDate\": \"20181019103413\",\r\n    \"entityTableName\": \"entity_two\",\r\n    \"dto\": \"no\",\r\n    \"pagination\": \"no\",\r\n    \"service\": \"no\",\r\n    \"jpaMetamodelFiltering\": false,\r\n    \"fluentMethods\": true,\r\n    \"clientRootFolder\": \"\",\r\n    \"applications\": [\r\n        \"demo\"\r\n    ],\r\n    \"skipClient\": true\r\n}\r\n```\r\n\r\n##### **Browsers and Operating System**\r\n\r\n<!-- What OS are you on? is this a problem with all browsers or only IE8? -->\r\nLinux 4.15.0-36-generic Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n-   [x] Checking this box is mandatory (this is just to show you read everything)\r\n\r\n<!-- Love JHipster? Please consider supporting our collective:\r\n👉  https://opencollective.com/generator-jhipster/donate -->\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/435174309","html_url":"https://github.com/jhipster/generator-jhipster/issues/8611#issuecomment-435174309","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8611","id":435174309,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTE3NDMwOQ==","user":{"login":"MathieuAA","id":2753381,"node_id":"MDQ6VXNlcjI3NTMzODE=","avatar_url":"https://avatars3.githubusercontent.com/u/2753381?v=4","gravatar_id":"","url":"https://api.github.com/users/MathieuAA","html_url":"https://github.com/MathieuAA","followers_url":"https://api.github.com/users/MathieuAA/followers","following_url":"https://api.github.com/users/MathieuAA/following{/other_user}","gists_url":"https://api.github.com/users/MathieuAA/gists{/gist_id}","starred_url":"https://api.github.com/users/MathieuAA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MathieuAA/subscriptions","organizations_url":"https://api.github.com/users/MathieuAA/orgs","repos_url":"https://api.github.com/users/MathieuAA/repos","events_url":"https://api.github.com/users/MathieuAA/events{/privacy}","received_events_url":"https://api.github.com/users/MathieuAA/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T20:23:24Z","updated_at":"2018-11-01T20:23:24Z","author_association":"MEMBER","body":"Ah!! Awesome! Thanks :)"}}
{"actor":{"display_login":"MathieuAA"}}