If the entries in include_path are invalid (i.e. the path doesn't exist), plc build config/plc.json will fail building if functions are used from the library. While this is expected, an additional error message telling the user "path xyz is invalid" would be great and reduce the time investigating the issue for them.
Describe the bug Given the following configuration file
If the entries in
include_path
are invalid (i.e. the path doesn't exist),plc build config/plc.json
will fail building if functions are used from the library. While this is expected, an additional error message telling the user "path xyz is invalid" would be great and reduce the time investigating the issue for them.Additional context Something along
if !input.exists() { /* error */ }
inresolve_file_paths
should fix it, though I'm not sure if theexists()
call will fail for relative paths. https://github.com/PLC-lang/rusty/blob/73f559dbf15b11cf167b28b2d1f46d8fe1bcb127/compiler/plc_project/src/project.rs#L305-L320