Consider the script
{-1-} CONTEXT Session IN DUTCH LATEX
{-2-}
{-3-} persoonRol :: Persoon* Rol
{-4-} sessionUser:: SESSION * Persoon [UNI] -- ingelogde actor
{-5-} sessionRol :: SESSION * Rol -- geactiveerde rollen in de sessie
{-6-}
{-7-} RULE "Activeren van rollen": sessionUser;persoonRol |- sessionRol
{-8-} VIOLATION (TXT "Er is iets aan de hand met", TGT persoonRol)
{-9-}
{-10-} ENDCONTEXT
Which produces the error message
Error(s) found:
Type error, cannot match:
the concept "Persoon" (Src of persoonRol)
and concept "Rol" (Tgt of sessionUser;persoonRol |- sessionRol)
if you think there is no type error, add an order between concepts "Persoon" and "Rol".
Error at symbol RULE in file test.adl at line 7 : 1
Errorlevel = 10 - prototype files will not be installed
Note that the error message points to the line where the rule is defined, but the rule is OK. The error message should point to the line that contains the VIOLATION (the type error is in 'TGT persoonsRol'. While in this example this mis-reference is relatively easy to spot, this may not be the case when you actively document your rules with meanings, and the error is the result of the rule having been edited.
Ik pak deze wel op.
Related
Tickets: #437
How's this as a message? (The numbering in your original script added 6 characters at the beginning of each line) Will try to send a pull request asap.
Error(s) found:
Type error, cannot match:
the concept "Persoon" (Src of persoonRol, line 8 : 56)
and concept "Rol" (Tgt of sessionUser;persoonRol |- sessionRol)
if you think there is no type error, add an order between concepts "Persoon" and "Rol".
Error at symbol RULE in file test.adl at line 7 : 7
Just created a pull-request (which can be merged automatically). I believe my work is done now. Please confirm this, or instruct me what to do.