I’m on the latest version of 5.2 and I’ve been trying to get rid of all the errors while loading my main DSL rules file but there is one I’ve no idea how to locate. It reads like this:
INFO
org.openhab.core.model.core.internal.ModelRepositoryImpl
Validation issues found in DSL model 'defaultNew.rules', using it anyway: This expression is not allowed in this context, since it doesn't cause any side effects.
Also, it’s such odd wording I’ve no idea what to make of it. Maybe a declared but never used variable? Anyway, your thoughts are appreciated.
It would be easier if you showed the rule, but it basically means that you have some code that doesn’t do anything. I’ve seen it before if I comment out all code. For some reason DSL/Xtext doesn’t approve of code that does nothing.
You’d think it would just be happy; if I ask my wife to do nothing, there are no complaints
If it was one rule it would likely have been obvious but it’s one file with all my rules and I don’t really want to bother the group with 500 line of my code. Now that I’ve an idea of the meaning I’m sure I can find it. Just that the wording is so odd and it doesn’t connect it to a line or rule number.