UndeclaredModuleProvider
rascal-0.40.17
Synopsis
A scheme is used in a location for wich no provider has been registered.
Description
Locations provide very flexible ways to access files and external data sources.
There any many protocols (called schemes) that can be used (e.g., file
, http
, home
and many others).
This error is generated when an unknown scheme is used.
Remedy: Use an existing scheme.
Examples
Misspelling the scheme for Rascal's standard library (which is std
) gives an error when the location is used:
rascal>import IO;
ok
rascal>readFileLines(|standard:///demo/basic/Hello.rsc|);
|jar+file:///home/runner/.m2/repository/org/rascalmpl/rascal/0.40.17/rascal-0.40.17.jar!/IO.rsc|(20699,781,<611,0>,<626,24>): IO("Unsupported scheme \'standard\'")
at *** somewhere ***(|jar+file:///home/runner/.m2/repository/org/rascalmpl/rascal/0.40.17/rascal-0.40.17.jar!/IO.rsc|(20699,781,<611,0>,<626,24>))
at readFileLines(|jar+file:///home/runner/.m2/repository/org/rascalmpl/rascal/0.40.17/rascal-0.40.17.jar!/IO.rsc|(21439,15,<625,58>,<625,73>))
ok
This is fixed by using the proper scheme name:
rascal>readFileLines(|std:///demo/basic/Hello.rsc|);
|jar+file:///home/runner/.m2/repository/org/rascalmpl/rascal/0.40.17/rascal-0.40.17.jar!/IO.rsc|(20699,781,<611,0>,<626,24>): PathNotFound(|std:///demo/basic/Hello.rsc|)
at *** somewhere ***(|jar+file:///home/runner/.m2/repository/org/rascalmpl/rascal/0.40.17/rascal-0.40.17.jar!/IO.rsc|(20699,781,<611,0>,<626,24>))
at readFileLines(|jar+file:///home/runner/.m2/repository/org/rascalmpl/rascal/0.40.17/rascal-0.40.17.jar!/IO.rsc|(21439,15,<625,58>,<625,73>))
ok