Closed constraintAutomaton closed 6 months ago
Thanks for reporting!
So the error message here is very unclear when a component is used as param value, but this component is not defined yet.
We should make the error message clearer so that if 1) the param value is not a literal, and 2) the param value has no @type
, then the error message should indicate that the given component (by @id
) is undefined, and is missing an instantiation.
So the error message here is very unclear when a component is used as param value, but this component is not defined yet.
We should make the error message clearer so that if 1) the param value is not a literal, and 2) the param value has no
@type
, then the error message should indicate that the given component (by@id
) is undefined, and is missing an instantiation.
The mediator was defined it's the new actor that was in the process of definition. So I think the error was plain wrong, since erasing the actor from the actors-rdfjs.json
file solve the error which has nothing to do with the existence of the mediator component.
The mediator was defined it's the new actor that was in the process of definition. So I think the error was plain wrong, since erasing the actor from the actors-rdfjs.json file solve the error which has nothing to do with the existence of the mediator component.
Yes, it was defined in that file, but the file was not being loaded in your case, which is why the mediator ended up not being defined for Components.js.
The mediator was defined it's the new actor that was in the process of definition. So I think the error was plain wrong, since erasing the actor from the actors-rdfjs.json file solve the error which has nothing to do with the existence of the mediator component.
Yes, it was defined in that file, but the file was not being loaded in your case, which is why the mediator ended up not being defined for Components.js.
Maybe it's because I don't understand well components.js
but I feel like this error should not had happen in the first place, because I don't think the import of component inside comunica should have an influence into their internal liking to other components. so the problem, in my opinion, is less the clarity of the error message but more on the linking of components.
Related to this: errors such as Invalid predicate IRI: mediatorDereferenceRdf
may indicate incorrect component @type
's.
Issue type:
Description:
In comunica I was in the process of including a new actor into the default engine more precisely in the
rdf-resolve-quad-pattern
configuration. When adding my actor into the fileactors-rdfjs.json
, my actor was not able to recognize its mediator and no error was provided to indicate that the problem came fromactors-rdfjs.json
. Meanwhile the inclusion into the file actors.json didn't cause any problem and I was able to integrate my actor.This behavior probably should not happen and even if it should happen a clear error should be provided instead of not recognizing existing components.
Environment:
Components.js: 5.0.1 Node.js: v16.17.0 Operating system: Ubuntu 22.04.1 LTS
Crash log:
Error
Beginning of the
componentsjs-error-state
file