Inmanta Compile Data Reference¶
This page documents the compile data output when compiling with the --export-compile-data flag. The structure
of this JSON is defined by inmanta.data.model.CompileData which inherits
from pydantic.BaseModel. To produce the JSON representation of the object, model.model_dump_json() is called. See the
pydantic documentation
for more information on how exactly a JSON is generated from a model.
- class inmanta.data.model.CompileData(*, errors: list[Error])[source]¶
Bases:
BaseModelTop level structure of compiler data to be exported.
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class inmanta.ast.export.Error(*, category: ErrorCategory = ErrorCategory.runtime, type: str, message: str, location: Location | None = None, **extra_data: Any)[source]¶
Bases:
BaseModelError occurred while trying to compile.
- category: ErrorCategory¶
Category of this error.
- message: str¶
Error message.
- model_config = {'extra': 'allow', 'validate_assignment': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- type: str¶
Fully qualified name of the actual exception.
- class inmanta.ast.export.ErrorCategory(*values)[source]¶
Bases:
str,EnumCategory of an error.
- parser = 'parse_error'¶
Error occurred while parsing.
- plugin = 'plugin_exception'¶
A plugin explicitly raised an
inmanta.plugins.PluginException.
- runtime = 'runtime_error'¶
Error occurred after parsing.
- class inmanta.ast.export.Location(*, uri: str, range: Range)[source]¶
Bases:
BaseModelLocation in a file. Based on the LSP spec 3.15
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- uri: str¶