-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Script files are loaded before scripting engine is available #1983
Comments
Could you analyse what causes these scripts to be reloaded? Although this seems to be a good feature here, I am not really clear on what causes it. |
I believe that scripts which are of a type not (yet) registered are stored and then executed when a script engine becomes available. In this case, the ScriptFileWatcher is processing the scripts before the python script engine is available. Once it's available, they are all processed. TBH I'm surprised that there are no issues with scripts referencing things that come up after the engine itself (like #1991). |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/jython-helper-libraries-for-oh3/110734/35 |
I can confirm that this issue is solved by #2222. I no longer see the mentioned info in my logs during startup. Thanks @jpg0 for fixing it. I am wondering if #1991 has been solved too because I randomly saw similar error messages (like the following one) in my logs which seem to be gone too:
|
I am using Jython Scripting and installed the bundle for it. During OH3 restarts I am seeing the following info in my logs. One message for each physical file. Approximately 5 min later all the files are reloaded and the rules can be used without an issue. This looks like we can implement a small improvement here.
The text was updated successfully, but these errors were encountered: