How to register annotations ?
fungiboletus opened this issue · comments
Antoine Pultier commented
Annotation @nodejs_package is not registered. Non-registered annotations will be deprecated in a future version.
Brice Morin commented
You can follow the same procedures as for the others: https://github.com/TelluIoT/ThingML/blob/master/language/thingml/src/org/thingml/annotations/AnnotationRegistry.java
Antoine Pultier commented
I tried without success:
annotations.put("nodejs_package", new Annotation(
"nodejs_package",
"If present, the configuration is compiled as a NodeJS NPM package",
new EClass[] {ThingMLPackage.eINSTANCE.getConfiguration()}
));
and
configuration Canard
@nodejs_package
{
...
Annotation is still marked as unregistered :(
Brice Morin commented
Hmmm.... strange. Try compiling from root and from ./language
Antoine Pultier commented
I did. Didn't really mind. However I since rebooted for another reason and I can see that it's working.