-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error specification doesn't support index for multi-valued features #64
Comments
Hi |
The argument is just a cross reference to a variable declaration so there's no EObject I could pass as the source. If I pass the referenced object, then the variable declaration is marked with an error, but that's not what I need. |
OK, I see. |
@LorenzoBettini I've actually had a similar issue. Is it possible to report a variable amount of errors with a validation rule? To take the example of @lwrage, suppose we defined a function syntax like |
IIRC it is currently not possible... have you tried that yourself? I guess that a rule exits as soon as an error is raised. |
@LorenzoBettini Yes, I noticed it indeed ends at the first error it encounters. That's a pickle... I have two cases where I need this: function calls and typed records. I guess that for now I will implement their validation manually in the validator class then. I'm just thinking aloud here: it would probably mean a big change in the code to support multiple errors, but would this be supported, I guess a posibility would be to allow stand-alone
Should I raise a seperate ticket? |
In a DSL I have a mechanism to pass arguments to a function. Each argument must be a variable, so in my metamodel the argument list consists of a list of references to variable declarations. I use Xsemantics to check if the type of the arguments matches the parameter type in the function declaration. However, if there is an error I have no way to associate it with the specific argument because I cannot pass an index to the error specification. As a result the whole argument list is underlined in the editor and not just the offending variable name inside the list.
The text was updated successfully, but these errors were encountered: