S0062: module not found
Generated from rellum-diagnostics/src/db.rs.
Explanation
Imports are resolved against the module interfaces produced from files in the project source tree. If the requested module path has no matching source file and interface, the importing module cannot know which names or types are available.
Common causes
- importing a module whose file does not exist
- using the wrong module path for a nested source file
- building only one file when the import requires a project build
Canonical fixes
- create the module file at the path named by the import
Before:
import geometry { Point }
After:
src/geometry.rlm
- correct the import path to match the source layout
Before:
import util.math { add }
After:
import utils.math { add }
Code example
import geometry { Point }