Manage Illegal pattern Exception on a new Snapshot#3322
Manage Illegal pattern Exception on a new Snapshot#3322katysaintin merged 3 commits intoControlSystemStudio:masterfrom
Conversation
default_snapshot_name_date_format is set to a wrong format
@katysaintin, can you please clarify in regards to "previous version"? I cannot see in the history of the preferences file that is has been true/false. |
Yes I will check with @agaget , it was an old PR . I ll tell you that ASAP. |
georgweiss
left a comment
There was a problem hiding this comment.
Sure, it makes sense to handle invalid date format, but please add a line of logging when catching the exception so that one may find why a date stamp was not added to the name.
|
Yes of course, log warning message done ✔️ |
|
Ok @georgweiss we check with @agaget . In fact , the true or false value, was an old wrong configuration from his side. So the preference always have to be a valid date format. |
save_and_restore_preferences.properties
|
I finally found the problem for the preferences list documentation . And the python script conf.py based on the package name defined in the header to generate preferences documentation. Fix for #2927 |
Manage a java.lang.IllegalArgumentException: Illegal pattern
when default_snapshot_name_date_format preference is set to a wrong format
In the previous version default_snapshot_name_date_format was a flag true or false.
Now, it can be a Date format.
Our user receive this error and the application is freezing :
In addition, the preferences defined in save_and_restore_preferences.properties are not generated in the preferences list in the documentation https://control-system-studio.readthedocs.io/en/latest/preference_properties.html#saveandrestore .
This list is generated by https://github.com/ControlSystemStudio/phoebus/blob/master/docs/source/conf.py , I suppose that the script does not manage 2 preferences files in the same package.
The missing preferences are detected since PR #2927