ModuleImport
rascal-0.42.2
Synopsis
A Rascal module could not be imported.
Description
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.
Examples
Here is a correct import of the library module List:
rascal>import List;
ok
Here is the effect of a misspelled module name (assuming that you do not have a module Lis):
rascal>import Lis;
[ERROR] Could not import module Lis: can not find in search path
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/ModuleImport|
ok