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

In the toolset, A code generator accepts invalid vorto models #300

Closed
aedelmann opened this issue Jun 26, 2016 · 0 comments
Closed

In the toolset, A code generator accepts invalid vorto models #300

aedelmann opened this issue Jun 26, 2016 · 0 comments

Comments

@aedelmann
Copy link
Contributor

aedelmann commented Jun 26, 2016

A user tries to generate an invalid model
Expected: The generation process aborts and should inform the user that the model is invalid.
Actual: The generator is executed which could potentially result in a non-correct output.

Confirmations:

  • Validation Service in the Vorto Core Bundle that is shared among Toolset and Repository
  • When a user invokes a generator for an invalid model in the toolset using the Eclipse Toolset Generators, the console prints out validation error(s) and aborts the generation process.
@aedelmann aedelmann added this to the 0.9.0 M2 milestone Jun 26, 2016
@aedelmann aedelmann changed the title A code generator only accepts valid vorto models In the toolset, A code generator only accepts valid vorto models Jun 27, 2016
@aedelmann aedelmann changed the title In the toolset, A code generator only accepts valid vorto models In the toolset, A code generator accepts invalid vorto models Jul 8, 2016
erlemantos pushed a commit to bosch-io/vorto that referenced this issue Jul 11, 2016
…ons by Alex to not make the 'generator menu' disappear but clicking it when an error is present will make it throw out an error in the console.

Signed-off-by: Erle Czar Mantos <erleczar.mantos@bosch-si.com>
aedelmann pushed a commit that referenced this issue Jul 12, 2016
* Never return a NULL parsing result.

Signed-off-by: Erle Czar Mantos <erleczar.mantos@bosch-si.com>

* Partial fix to #243.

Signed-off-by: Erle Czar Mantos <erleczar.mantos@bosch-si.com>

* Partial fix to #243.

Signed-off-by: Erle Czar Mantos <erleczar.mantos@bosch-si.com>

* Partial fix to #243 - remove commented out codes.

Signed-off-by: Erle Czar Mantos <erleczar.mantos@bosch-si.com>

* Fixes #243 - Recursive model references causes error during generation

Signed-off-by: Erle Czar Mantos <erleczar.mantos@bosch-si.com>

* String literals to constants.

Signed-off-by: Erle Czar Mantos <erleczar.mantos@bosch-si.com>

* Fixes #243. Also fixes #300. This incorporates suggestions by Alex to not make the 'generator menu' disappear but clicking it when an error is present will make it throw out an error in the console.

Signed-off-by: Erle Czar Mantos <erleczar.mantos@bosch-si.com>
@aedelmann aedelmann modified the milestones: 0.9.0 M1, 0.9.0 Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant