You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 */ } in resolve_file_paths should fix it, though I'm not sure if the exists() call will fail for relative paths.
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.rusty/compiler/plc_project/src/project.rs
Lines 305 to 320 in 73f559d
The text was updated successfully, but these errors were encountered: