Stream: committers
Topic: Element needs a definition of its own
Rik Smithies (Nov 13 2020 at 16:20):
Can anyone tell me what the criteria for triggering this build error is. Something to do with definitions that have a long list of examples. But trial and error isn't helping me fix it.
Lloyd McKenzie (Nov 13 2020 at 16:58):
Can you share the full error?
Rik Smithies (Nov 13 2020 at 16:59):
that is pretty much the full error. An example is:
[java] INFORMATION: RegulatedAuthorization: A resource must have w5 mappings
[java] INFORMATION: RegulatedAuthorization: RIM Mapping is required
[java] WARNING: RegulatedAuthorization.regulator: Element needs a definition of its own
Lloyd McKenzie (Nov 13 2020 at 17:00):
Does the element have a definition?
Rik Smithies (Nov 13 2020 at 17:00):
yes
Rik Smithies (Nov 13 2020 at 17:01):
it's doing some sort of checks on the text. Some text is acceptable, and some is not. A heuristic. It's clever, but annoying :-)
Lloyd McKenzie (Nov 13 2020 at 17:02):
Is the definition the same as any other definition in the resource? Is the definition non-tautological?
Rik Smithies (Nov 13 2020 at 17:03):
as I say, it seems to happen when you add a list of examples to a definition e.g. like this, or like this or like this. It rejects that. Take that out and its ok.
Rik Smithies (Nov 13 2020 at 17:04):
But you do want examples sometimes, so I'd like to know what the rules are
Lloyd McKenzie (Nov 13 2020 at 17:04):
Can you share the definition that creates problems?
Lloyd McKenzie (Nov 13 2020 at 17:04):
(also @Grahame Grieve )
Rik Smithies (Nov 13 2020 at 17:04):
The regulatory authority or authorizing body granting the authorization, for example, European Medicines Agency (EMA), Food and Drug Administration (FDA), Health Canada (HC), etc.
Rik Smithies (Nov 13 2020 at 17:05):
that fails and this works: The regulatory authority or authorizing body granting the authorization
Grahame Grieve (Nov 13 2020 at 19:43):
short definition and full definition can't be the same
Grahame Grieve (Nov 13 2020 at 19:44):
this works: The regulatory authority or authorizing body granting the authorization
looks good for short definition
The regulatory authority or authorizing body granting the authorization, for example, European Medicines Agency (EMA), Food and Drug Administration (FDA), Health Canada (HC), etc.
looks good for the definition
Rik Smithies (Nov 13 2020 at 19:51):
in this case there is only a short definition. And it either works or doesn't work depending on what the wording is.
Grahame Grieve (Nov 13 2020 at 19:54):
you must have a definition
Lloyd McKenzie (Nov 13 2020 at 20:04):
Submit a bug that it works some of the time - it presumably shouldn't be working regardless of the language in the definition...
Rik Smithies (Nov 13 2020 at 21:14):
the short definition is mandatory and the long definition is optional. At least that is what the build enforces
Grahame Grieve (Nov 13 2020 at 21:21):
the long definition is only optional because of recalcitrant editors.
Rik Smithies (Nov 13 2020 at 21:21):
well I've never met one of those
Rik Smithies (Nov 13 2020 at 21:22):
ok so I will move all the definitions across and see if things improve or I can pin down the error
Rik Smithies (Nov 14 2020 at 12:04):
It seems the long text works in the definition but it is not allowed in the short definition. Presumably not a bug but a rule. It's just not clear what the rule is.
Lloyd McKenzie (Nov 14 2020 at 14:53):
The short text should be short :)
Last updated: Apr 12 2022 at 19:14 UTC