Processing of things file hits problem, possibly with REGEX, and stops parsing .things file #2863
Comments
note: the rule seems to stop because of a " after the timeout value. But I would expect a warning about the one line, and not stopping the entire file from loading. |
No, tis has nothing to do with the regex. The problem in your case is the Please fix the syntax of your file. Apart from that, I don't see any bugs here. |
After I found the issue that you mentioned, I was partially okay. My current issue is that it happened silently, instead of issuing some kind of warning. I can see people making a mistake like that and not being able to notice it. Why would the parsing need to deal with any strings that go beyond one line without some kind of concatenation? |
Afaik, the problem of having no warnings on parsing errors exists for all model files, i.e. items, rules, things, scripts and persistence. |
Thanks @kaikreuzer. Apart from that I can really recommend using the Eclipse Smarthome/openHAB Designer to edit your files. There, you won't miss syntactical errors like this. |
Upgraded to a new version of OpenHab on 14 Jan's nightly build, included eclipse.smarthome.
At the time, I added the following lines to my .things file:
when added in this order, the following lines are output as part of the logs:
At this point, the REGEX from the ping will not work, and the check will not be scheduled and not produce any output.
However, if I put the TP-PlugPing line at the end, both lines will load, the check will be active and it's REGEX will work, and the ping will still be scheduled, but not apply the REGEX to the input.
The text was updated successfully, but these errors were encountered: