Open aus-betz opened 4 weeks ago
I think that this may be the same concern as this issue: https://github.com/openscd/open-scd-core/issues/92
I believe this may be fixed this in a development version of core that we hope to see in the not too distance future. Can you confirm @ca-d?
Whilst trying to fix some validation errors introduced by an SEL-2440 ICD upgrade, I found that the validation did not work correctly when reloading the same file after making changes in an external editor. e.g. I can fix the errors in some text editor, select 'Open Project' in OpenSCD and then the 'Validating' option. The same validation errors are present as before. If I open a separate SCD and then open the fixed SCD, the 'Validating' option works correctly. Perhaps some buffer is not being cleared when the same file is opened? Note that I am not updating the history section of the file when I make the correction, in case that makes a difference.
Workaround: I am now in the habit of reloading a separate SCD file before reloading the project file as some editors don't seem to behave correctly when reloading the same file consecutively.