Class DependencyInstalledOrError
java.lang.Object
org.ek9lang.compiler.phase1.DependencyInstalledOrError
- All Implemented Interfaces:
BiConsumer<String, EK9Parser.PackageBlockContext>
final class DependencyInstalledOrError
extends Object
implements BiConsumer<String, EK9Parser.PackageBlockContext>
Reports (E06263) each DIRECT dependency of a
defines package block that is not installed in the library
folder, on that dependency's own line in its deps or devDeps Dict - so the IDE, MCP, LSP and
ek9 -c tell the same truth, where only the CLI's resolver used to (exit 17). The rule "installed" is
IsDependencyInstalled, the one the resolver applies, over the library folder
FileHandling.getUsersHomeEk9LibDirectory() names. excludeDeps are not checked and
transitive dependencies stay the CLI's resolver's job. devDeps are checked always, as the CLI's resolver
resolves them always.-
Constructor Summary
ConstructorsConstructorDescriptionDependencyInstalledOrError(ErrorListener errorListener, Predicate<String> isInstalled) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(String moduleName, EK9Parser.PackageBlockContext ctx) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
DependencyInstalledOrError
DependencyInstalledOrError(ErrorListener errorListener, Predicate<String> isInstalled)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<String, EK9Parser.PackageBlockContext>
-