| title | ModuleImport |
|---|
A Rascal module could not be imported.
Rascal programs are split up in modules. An import declaration is used to include one module in another. This error indicates that a module import failed. This can be caused by
- A misspelled name in the import statement.
- Starting a Rascal console from the wrong directory.
Remedies:
- Correct the mispelled name.
- At the command line, change directory to where the toplevel module of your program is located and then execute the Rascal Shell.
Here is a correct import of the library module List:
import List;
Here is the effect of a misspelled module name (assuming that you do not have a module Lis):
import Lis;