Projects with GlobalTextList entries in TwinCAT projects would previously raise:
RuntimeError: Unsupported xml type for TcSource: <Element TcPlcObject at 0x7f70fc315340>
For one, that exception message has been improved to include a bit more context:
UnsupportedSourceFileError: Unsupported xml type for TcSource: TcPlcObject/GlobalTextList
If loaded directly with the TcSource.from_filename utility method, the above will be raised.
If loaded as part of a solution/tsproj, the unsupported source file will just be ignored.
Test suite changes
Update blark-twincat-root project to have some more unsupported file formats (and make sure blark doesn't fall over)
Fix module-level pytest.skip error when users (or I) accidentally forget to clone recursively
Fix
GlobalTextList
loading bugProjects with
GlobalTextList
entries in TwinCAT projects would previously raise:RuntimeError: Unsupported xml type for TcSource: <Element TcPlcObject at 0x7f70fc315340>
For one, that exception message has been improved to include a bit more context:UnsupportedSourceFileError: Unsupported xml type for TcSource: TcPlcObject/GlobalTextList
If loaded directly with the
TcSource.from_filename
utility method, the above will be raised. If loaded as part of a solution/tsproj, the unsupported source file will just be ignored.Test suite changes
pytest.skip
error when users (or I) accidentally forget to clone recursively.
ofAND iq_stValve. THEN
is syntactically incorrect)