I have a rule file that starts with some comment lines and than a timer variable declaration. This declaration is flagged with an error The type DsmrRules is already defined in dsmr.rules.(org.eclipse.xtext.xbase.validation.IssueCodes.duplicate_type). For the record, there is no definition of “DsmrRules” anywhere in that file.
The first lines of the dsmr.rules
file:
////////////////////////////////////////////////////////////////////////////////
// Rules handling the data read from the Smart Meter (DSMR) for Gas and Power usage.
// The data is published to an MQTT topic and received and stored in Items via the MQTT
// binding.
//
// Some more comment lines...
////////////////////////////////////////////////////////////////////////////////
// Define global variables.
var Timer tmMidnight = null
I have not noticed this before installing the new 0.5.1 version.