-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[jsscripting] Script dependency tracking will be disabled #12479
Comments
I believe this is a core issue. I have reports of similar issues with other JSR-223 languages that also relate to a missing |
I can confirm, this happened in my system, running openHAB 3.2 with docker. |
Confirmed still happening in OH 3.3 with docker. |
Still happening in 3.4.0.M1 on a fresh openhabian installation. Happens with every ecma 11 rule. |
After looking at the code again, I believe it might be an issue with the In the mean time reducing it to INFO might help, but as the warning suggests, this might get you into trouble if you use dependencies. |
Thanks for the explanation, I would propose to wait until your core PR is merged and see if that solves it. In the mean time, I’ll reduce the log level to info and have a look if I can add some more information (script name). |
I didn't read closely enough. If it's an UI only issue the WatchService can't be the problem. I'll check again. Edit: After checking the code it is clear that there is no dependency listener for UI scripts but it is needed. This is a bug which I believe should be solved in core. Can you open an issue for that? Thanks. |
|
Expected Behavior
To not see warning level log statements for things I can't change or correct. The fact they are at the warning level implies there is a potential problem.
Current Behavior
I've all of my rules in the UI. The first time these rules run, often I'll see the following warning in the logs.
It doesn't say what rule. It doesn't say what script dependency. And it doesn't seem to impact the running of the rule in any apparent way. The rule still works as expected.
Possible Solution
Change the level of the log statement to INFO.
Steps to Reproduce (for Bugs)
I'm not importing anything from my own libraries and depending on the automatic importation of openhab-js.
Context
It's not a big impact but I worry about users becoming alarmed when they see this warning in their logs.
Your Environment
The text was updated successfully, but these errors were encountered: