TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
101 stars 32 forks source link

How to register annotations ? #290

Closed fungiboletus closed 4 years ago

fungiboletus commented 4 years ago
Annotation @nodejs_package is not registered. Non-registered annotations will be deprecated in a future version.
brice-morin commented 4 years ago

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

fungiboletus commented 4 years ago

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 4 years ago

Hmmm.... strange. Try compiling from root and from ./language

fungiboletus commented 4 years ago

I did. Didn't really mind. However I since rebooted for another reason and I can see that it's working.