Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
CLI: Add "--strict" option #583
$ librepcb-cli open-library LibrePCB_Connectors.lplib --all --strict Open library 'LibrePCB_Connectors.lplib'... - Non-canonical file: LibrePCB_Connectors.lplib/library.lp Process 0 component categories... Process 0 package categories... Process 198 symbols... Process 514 packages... Process 198 components... Process 514 devices... - Non-canonical file: LibrePCB_Connectors.lplib/dev/0b53aefa-f8fb-4f31-bfa2-24325a58428b/.librepcb-dev - Non-canonical file: LibrePCB_Connectors.lplib/dev/0b53aefa-f8fb-4f31-bfa2-24325a58428b/device.lp Finished with errors!
Well @ubruhin mentioned it above: "files which would be modified when saving the opened project or library element".
So other ways to say it may be "non-standard" or "not properly formatted" / "ill-formatted". I guess it is mostly about order and whitespace issues, right @ubruhin?
OK, few next questions:
Canonical are occasionaly used in folder/file path string before are unified but in file format.... I don't know (I don't met until now).
A non-canonical file is not wrong, it just means that LibrePCB would format it differently. This means that if you change something in a library element that would just affect a single line, the whole file will be reformatted, causing a lot of changes and a large diff in version controlled files.
When you generate your own files for private use, non-canonical files are not a problem at all. When contributing files to the standard library, they should be in canonical format.