After upgrading to OpenHab 1.8.2 including Designer, Designer strangely states that “now” cannot be resolved.
However, the rules are working and are creating no runtime errors.
For example:
RainFall_Last24h_GA_WeatherStation.postUpdate(RainFall_GA_WeatherStation.sumSince(now.minusHours(24)))
This line show the error message
Multiple markers at this line
Couldn’t resolve reference to JvmIdentifiableElement ‘now’.
Couldn’t resolve reference to JvmIdentifiableElement ‘minusHours’.
In Reply To
wolf_from_the_north
April 8
yup i have the same issue here on my side , even with 1.8, it appears
when changing something to a current rule that has such appliance in it.
kindest regards
Visit Topic or reply to this email to respond
To stop receiving notifications for this particular topic, click here. To
unsubscribe from these emails, change your user preferences
Please close the Designer, backup %USERPROFILE%.eclipse and remove everything in that directory. Open Designer and open your configuration.
This fixed it for me. This behaviour is with Eclipse (not Openhab Designer).
Strange answer as the same configuration works well with designer 1.8.0 and not with designer 1.8.3 …
I tried all the pointed cleanup actions, but none of them work.
I also tried to clean all the Java installation …
So the only solution for me is to keep running with the 1.8.0 designer … I guess that does not change much, bit still it would be great if a good fix could be found !
Your user profile path can be found by typing set at the DOS / Command prompt.
It is usually something like C:\User\MaxG\ and in this case C:\User\MaxG\eclipse. Replace MaxG with your login name.