E1800: configuration cannot be loaded

View source

The manifest Actus.toml, its lockfile Actus.lock or its dependencies could not be turned into a configuration, and no more specific code of the E1800 range applies.

The manifest Actus.toml, its lockfile Actus.lock or its dependencies could not be turned into a configuration, and no more specific code of the E1800 range applies. The compiler stops before it reads any source file (ADR-0041). The report names the file that is at fault and, when the file can say where, the line and column of the offending key or value, as in Actus.toml: error[E1800] at 1:9: cannot parse the manifest: unclosed table, expected ]``. A lockfile that cannot be read, parsed or written, or that is out of date, is reported on Actus.lock, by check and by actus lock alike, and not on Actus.toml. A project that needs a lockfile (it has a dependency, uses the std runtime or sets source_limits = "limitless") and has none is reported on Actus.lock as Actus.lock is missing; run actus lock to create it, by check, watch, build, run, test and publish. None of them writes the lockfile; only actus lock does, and actus new and actus init write it with the project. The code is the same with and without --strict.

The same code reports a project that cannot be found because the current directory cannot be read, as error[E1800]: cannot read current directory: <reason>. That failure is about the environment and names no file.

The range holds the cases that have a code of their own: E1801 for the package name, E1804 and E1805 for the runtime profile, E1882 for the linker.

Example

A table header that is never closed:

toml
[package
name = "app"
version = "0.1.0"
actus
verb main() {
}

A source_root that is not a directory:

toml
[package]
name = "app"
version = "0.1.0"
source_root = "missing"
actus
verb main() {
}

A lockfile that does not match the manifest is reported on Actus.lock:

toml
[package]
name = "app"
version = "0.1.0"
toml
lockfile_version = 3
runtime = "core"

[[package]]
name = "extra"
version = "1.0.0"
actus
verb main() {
}

Fix

Correct the manifest at the place the report names. For a missing lockfile, run actus lock.

toml
[package]
name = "app"
version = "0.1.0"
actus
verb main() {
}

Run actus explain E1800 in your terminal to read this entry offline. Browse Strict & toolchain or all error codes.