{"action":"opened","issue":{"url":"https://api.github.com/repos/jhipster/jhipster-core/issues/210","repository_url":"https://api.github.com/repos/jhipster/jhipster-core","labels_url":"https://api.github.com/repos/jhipster/jhipster-core/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/jhipster-core/issues/210/comments","events_url":"https://api.github.com/repos/jhipster/jhipster-core/issues/210/events","html_url":"https://github.com/jhipster/jhipster-core/issues/210","id":317734226,"number":210,"title":"\"skipClient Entity\" works with \"jhipster import-jdl\", but fail in JDL-Studio","user":{"login":"danielmenezesbr","id":5949657,"avatar_url":"https://avatars1.githubusercontent.com/u/5949657?v=4","gravatar_id":"","url":"https://api.github.com/users/danielmenezesbr","html_url":"https://github.com/danielmenezesbr","followers_url":"https://api.github.com/users/danielmenezesbr/followers","following_url":"https://api.github.com/users/danielmenezesbr/following{/other_user}","gists_url":"https://api.github.com/users/danielmenezesbr/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmenezesbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmenezesbr/subscriptions","organizations_url":"https://api.github.com/users/danielmenezesbr/orgs","repos_url":"https://api.github.com/users/danielmenezesbr/repos","events_url":"https://api.github.com/users/danielmenezesbr/events{/privacy}","received_events_url":"https://api.github.com/users/danielmenezesbr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-25T18:01:23Z","updated_at":"2018-04-25T18:01:23Z","closed_at":null,"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### The issue\r\n\r\n\"skipClient Entity\" works with \"jhipster import-jdl\", but fail in JDL-Studio.\r\nJDL-Studio needs change to \"skipClient for Entity\"\r\n\r\n<!-- Explain the bug or feature request, if an error is being thrown a stack trace helps -->\r\n\r\n---\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\n\r\n---\r\n\r\n### Reproduce the error\r\n\r\n - Create a JDL [like it](https://github.com/danielmenezesbr/jhipster_oracle_limits_and_skipclient/blob/master/model.jh)  (without the word **for** after skipClient).\r\n\r\n - Import JDL. It's work fine. Look [here](https://gist.github.com/danielmenezesbr/c4839f6db0b9e608da745c784f50463e#file-jhispter_log-L576)\r\n\r\n - When open the [same file](https://github.com/danielmenezesbr/jhipster_oracle_limits_and_skipclient/blob/master/model.jh) into JDL-Studio, it shows `Expected \"for\" but \"A\" found. -> line: 20`\r\n\r\n- If you try to import a JDL with \"skipClient for Entity\", the following error occurs:\r\n\r\n```\r\nUsing JHipster version installed locally in current project's node_modules\r\nExecuting jhipster:import-jdl C:\\desv\\jhipster_oracle_limits_and_skipclient\\model.jh\r\nOptions:\r\nThe jdl is being parsed.\r\nerror: An error has occurred:\r\n        SyntaxError\r\nerror: Error message:\r\n        Expected \"*\", \"all\", ['\\n'|'\\t'|'\\r'|' '| | ], or [A-Z] but \"f\" found.\r\nerror: Position:\r\n        At l.20.\r\nError: SyntaxError: Expected \"*\", \"all\", ['\\n'|'\\t'|'\\r'|' '| | ], or [A-Z] but \"f\" found.\r\nevents.js:160\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nError: \u001B[31m\u001B[1mERROR!\u001B[22m\u001B[39m\r\nError while parsing entities from JDL\r\n\r\n    at Environment.error (C:\\desv\\jhipster_oracle_limits_and_skipclient\\node_modules\\yeoman-environment\\lib\\environment.js:157:40)\r\n    at error (C:\\desv\\jhipster_oracle_limits_and_skipclient\\node_modules\\generator-jhipster\\generators\\generator-base.js:2064:18)\r\n    at parseJDL (C:\\desv\\jhipster_oracle_limits_and_skipclient\\node_modules\\generator-jhipster\\generators\\import-jdl\\index.js:113:26)\r\n    at Object.<anonymous> (C:\\desv\\jhipster_oracle_limits_and_skipclient\\node_modules\\yeoman-generator\\lib\\index.js:399:25)\r\n    at C:\\desv\\jhipster_oracle_limits_and_skipclient\\node_modules\\run-async\\index.js:25:25\r\n    at C:\\desv\\jhipster_oracle_limits_and_skipclient\\node_modules\\run-async\\index.js:24:19\r\n    at self.env.runLoop.add.completed (C:\\desv\\jhipster_oracle_limits_and_skipclient\\node_modules\\yeoman-generator\\lib\\index.js:400:11)\r\n    at runCallback (timers.js:672:20)\r\n    at tryOnImmediate (timers.js:645:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:617:5)\r\n```\r\n\r\n<!-- For bug reports, an unambiguous set of steps to reproduce the error -->\r\n\r\n---\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\r\n---\r\n\r\n### Suggest a Fix\r\n\r\nSame behavior between `JDL-Studio` and `jhispter import-jdl`\r\n\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\n\r\n---\r\n\r\n### The JDL file\r\n\r\n```\r\nentity NucleoEtapaSubtipoProcesso(ne_subtipoproc) {\r\n    posicao Integer required,\r\n    dataInicio LocalDate,\r\n    dataFim LocalDate,\r\n    status Boolean\r\n}\r\n\r\nentity SubtipoProcesso {\r\n\r\n}\r\n\r\nentity ABC {\r\n\r\n}\r\n\r\nrelationship ManyToOne {\r\n    NucleoEtapaSubtipoProcesso{subtipoProcesso required}  to SubtipoProcesso\r\n}\r\n\r\nskipClient ABC\r\n```\r\n\r\n<!--\r\n    You have to add it, we can't help you otherwise.\r\n    If you can't pass it, send it via mail at mathieu.aa@free.fr\r\n-->\r\n\r\n---\r\n\r\n### Versions \r\n<!-- You have to specify the version. -->\r\n| JHipster           |\r\n| ------------------ |\r\n| `v4.14.3` |\r\n\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"}}
{"actor":{"display_login":"danielmenezesbr"}}