Skip to content

Orca profile validator

Latest
Compare
Choose a tag to compare
@SoftFever SoftFever released this 28 Feb 13:26
8497c12

Usage:
-h [ --help ] help
-p [ --path ] arg profile folder
-v [ --vendor ] arg Vendor name. Optional, all profiles present in the folder will be validated if not specified
-l [ --log_level ] arg (=2) Log level. Optional, default is 2 (warning). Higher values produce more detailed logs.

Example:
./OrcaSlicer_profile_validator -p ~/codes/OrcaSlicer/resources/profiles -l 2 -v Custom

Sample result when there are errors:

PS D:\codes\OrcaSlicer> ."D:/codes/OrcaSlicer/build/src/Release/OrcaSlicer_profile_validator.exe" --path d:\codes\OrcaSlicer\resources\profiles -l 2 -v Custom
[2024-02-28 21:23:06.102138] [0x0000a4e8] [error]   Slic3r::ConfigBase::load_from_json: parse d:\codes\OrcaSlicer\resources\profiles/Custom/machine/fdm_klipper_common.json got a nlohmann::detail::parse_error, reason = [json.exception.parse_error.101] parse error at line 9, column 38: syntax error while parsing object - unexpected string literal; expected '}'
[2024-02-28 21:23:06.102638] [0x0000a4e8] [error]   Slic3r::PresetBundle::load_vendor_configs_from_json::<lambda_f009681bdd0a38b81e2c712578770ed5>::operator (): load config file d:\codes\OrcaSlicer\resources\profiles/Custom/machine/fdm_klipper_common.json Failed!
[2024-02-28 21:23:06.102638] [0x0000a4e8] [error]   Slic3r::PresetBundle::load_vendor_configs_from_json, got error when parse printer setting from d:\codes\OrcaSlicer\resources\profiles/Custom/machine/fdm_klipper_common.json
[2024-02-28 21:23:06.103138] [0x0000a4e8] [error]   Failed loading configuration file d:\codes\OrcaSlicer\resources\profiles/Custom/machine/fdm_klipper_common.json
Suggest cleaning the directory d:\codes\OrcaSlicer\resources\profiles firstly
Validation failed

Once all errors are fixed, you should be able to see this result:

PS D:\codes\OrcaSlicer\build\src\RelWithDebInfo> ."D:/codes/OrcaSlicer/build/src/Release/OrcaSlicer_profile_validator.exe" --path d:\codes\OrcaSlicer\resources\profiles -l 2 -v Custom
Validation completed successfully

Note:
OrcaSlicer_profile_validator for Ubuntu
OrcaSlicer_profile_validator.exe for Windows