-
Notifications
You must be signed in to change notification settings - Fork 1
IMP001
ricardoboss edited this page Nov 16, 2023
·
1 revision
The file that is being imported does not exist.
Example:
Suppose we have the following file structure:
main.step
lib/
lib.step
foo/
bar.step
If main.step
contains the following line:
import "lib.step"
Then this error will be thrown because lib.step
is not in the same directory as main.step
.
Check the file path and ensure that the file exists. The given path must be relative to the file importing it.
Example:
From main.step
we'd have to import lib/lib.step
like so:
import "lib/lib.step"
And bar.step
like this:
import "lib/foo/bar.step"
If lib.step
were to import bar.step
it would have to do so like this:
import "foo/bar.step"
This is because lib.step
is in the same directory as the foo
directory.
© 2023 Ricardo Boss • Licensed under MIT • Want to update this page? Edit it on GitHub and submit a pull request!