apple/pkl
Documented errors, page 2 of 6. Back to apple/pkl
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| The evaluator is no longer available | exception | error | lifecycle, evaluator-closed, cancelled |
| type mismatch | error_code | error | type-node, type-mismatch, structural-type, pkl |
classMustBeLocal classMustBeLocal | error_code | error | pkl, ast, amendment, class-definition |
invalidDependencyMetadata invalidDependencyMetadata | error_code | error | pkl, json, package-management, network |
| Unexpected character | exception | error | json, pkl, parser, trailing-content |
wrongHeaders ErrorMessages.create("wrongHeaders", messageArg) | exception | error | parser, pkl, syntax-error |
expectedNonEmptyCollection expectedNonEmptyCollection | error_code | error | pkl, collections, validation, schema |
cannotResolveInLocalDependencyNotGlobbableNorLocal cannotResolveInLocalDependencyNotGlobbableNorLocal | error_code | error | pkl, dependency-resolution, local-dependency, unsupported-scheme |
| Output file conflict: `output.files` entry `"$pathSpec"` in… | exception | error | cli, path-traversal, file-output |
| Cannot call both `setSecurityManager` and `setProject`… | validation | error | |
noPackageDefinedByProject ErrorMessages.create("noPackageDefinedByProject", project.projectFileUri) | error_code | error | cli, pkl, packaging, config |
| ':' | exception | error | json, parser, syntax-error, pkl |
externalReaderFailure externalReaderFailure | error_code | error | pkl, external-reader, import, process |
| Unsupported protocol: | exception | error | uri, protocol, graalvm, native-image |
| Could not find a source set for code generator | exception | error | gradle, configuration, codegen, source-set |
| Did not find expected Java class | exception | error | classpath, codegen, reflection, pkl, generated-code |
| Could not read annotation. Invalid object: | exception | error | json, package-metadata, annotations, pkl |
interpolationInConstant String constant cannot have interpolated values. | exception | error | parser, pkl, string-constant, interpolation |
notAUnion Only type unions can have a default marker (*). | error_code | error | parser, pkl, type-union, syntax-error |
commandOptionUnsupportedType commandOptionUnsupportedType | error_code | error | pkl, cli, type-arguments, unsupported-type |
| Error serializing annotation for PklProject: : cannot… | exception | error | pkl, serialization, unsupported-type |
| Failed to convert `pkl.semver#Version` to… | exception | error | pkl, java, semver, conversion, value-out-of-range |
cannotExtendExternalClass cannotExtendExternalClass | error_code | error | inheritance, external-class, class-definition, pkl |
invalidLineContinuationEscapeSequence Invalid line continuation escape sequence.
Line continuations are only allowed… | exception | error | pkl, parser, string-literal |
| 'LOCALAPPDATA' is an invalid path | console | error | |
notAModuleType notAModuleType | error_code | error | pkl, module, type-annotation, not-a-module-type |
| External reader process has already been closed. | exception | error | pkl, lifecycle, state, process |
| Failed to convert `pkl.base#String` to `java.net.URI`. | exception | error | pkl, java, uri, conversion, value-format |
| type mismatch: value is not of type List | exception | error | pkl, typecheck, list, type-mismatch |
cannotFindStdLibModule cannotFindStdLibModule | error_code | error | pkl, stdlib, import, module-not-found |
| Leaf node ` ` of type ` ` does not have a child named ` `. | exception | error | config, pkl, tree-navigation, scalar, missing-child |
yamlParseErrorTooManyAliases yamlParseErrorTooManyAliases | error_code | error | yaml, pkl, stdlib, security-limit |
| VmTypeMismatchException.Simple (value is not an Int8 in… | exception | error | pkl, type-mismatch, int8, value-out-of-range |
cannotExportValue cannotExportValue | error_code | error | pkl, export, type-mismatch, intseq |
packageAlreadyPublishedWithDifferentContents ErrorMessages.create("packageAlreadyPublishedWithDifferentContents", pkg.uri()… | error_code | error | packaging, checksum, publishing |
stringContentMustBeginOnNewLine The content of a multi-line string must begin on a new line. | error_code | error | parser, pkl, multi-line-string, syntax-error |
cannotAmendFixedProperty Cannot amend fixed property | exception | error | pkl, amends, fixed-property, immutability |
closingStringDelimiterMustBeginOnNewLine The closing delimiter of a multi-line string must begin on a new line. | error_code | error | parser, pkl, multi-line-string, syntax-error |
| I/O error writing file `$outputFile`. Cause | exception | error | io, file-write, filesystem |
ioErrorReadingTestOutputFile ioErrorReadingTestOutputFile | error_code | error | pkl, io, filesystem, testing |
| typeMismatch | exception | error | pkl, type-mismatch, function-result, boolean |
| Cannot call both `setSecurityManager` and… | validation | error | |
| Usage: pkl test [ ] ... Error: missing argument | exception | error | cli, missing-argument, testing |
abstractMethodInNonAbstractType abstractMethodInNonAbstractType | error_code | error | pkl, ast, abstract, class-definition |
| array | exception | error | cache, format-validation, json |
cannotInferParent cannotInferParent | error_code | error | pkl, type-inference, let |
| type mismatch: value is not of type Mapping | exception | error | pkl, typecheck, mapping, type-mismatch |
projectDependenciesOutOfDateInPackage projectDependenciesOutOfDateInPackage | error_code | error | pkl, dependencies, version-mismatch, transitive-dependency |
| type mismatch: value is not the expected string literal | exception | error | pkl, type-mismatch, string-literal, typecheck |
| valid string character | exception | error | json, parser, string-escaping, pkl |
projectDependenciesLocalDependencyOutOfSync projectDependenciesLocalDependencyOutOfSync | error_code | error | pkl, dependencies, version-mismatch, local-dependency |
| Could not find bundled certificates | exception | error | tls, certificates, classpath, cli |
| I/O error writing `$path`. | exception | error | io, file-write, kotlin |
invalidModuleOutput invalidModuleOutput | error_code | error | |
unexpectedTokenForType Unexpected token `)`. Expected a type. | error_code | error | parser, pkl, unexpected-token, type-syntax |
| Cannot convert Pkl object to Java object.%nPkl type | exception | error | config-mapping, missing-property, type-mapping, java, pkl |
| Failed to convert `pkl.base#String` to `java.nio.file.Path`. | exception | error | pkl, java, path, conversion, value-format |
| Invalid DataSize unit symbol: | exception | error | json, package-metadata, unit, datasize, pkl |
| Output file conflict: `output.files` entries | exception | error | cli, output-conflict, filesystem |
| Cannot substitute output path placeholder | exception | error | cli, output-path, placeholder-substitution |
cannotRenderNonStringMap cannotRenderNonStringMap | error_code | error | pkl, renderer, serialization, map-keys |
cannotResolveInLocalDependencyNotGlobbable cannotResolveInLocalDependencyNotGlobbable | error_code | error | pkl, dependency-resolution, glob-import, local-dependency |
classCannotExtendSelf classCannotExtendSelf | error_code | error | pkl, inheritance, self-reference, class |
objectCannotHaveElement Object of type ` ` cannot have an element. | error_code | error | pkl, typed-object, mapping, object-shape |
characterCodingException characterCodingException | error_code | error | pkl, bytes, encoding, charset |
nonLocalObjectPropertyCannotHaveTypeAnnotation nonLocalObjectPropertyCannotHaveTypeAnnotation | error_code | error | pkl, ast, amendment, type-annotation |
unresolvedProjectDependency unresolvedProjectDependency | error_code | error | pkl, dependencies, unresolved-dependency, lockfile |
| Error converting property | exception | error | config-mapping, type-mismatch, wrapped-exception, java, pkl |
notASubclassOfTyped notASubclassOfTyped | error_code | error | pkl, dynamic, typed, type-mismatch |
| VmTypeMismatchException.Reference (domain type check failed… | exception | error | pkl, type-mismatch, reference-type |
cannotInitHttpClient cannotInitHttpClient | exception | error | ssl, http-client, certificate, initialization |
| Expected structure to have at least slots, found | validation | error | msgpack, decoding, pkl-binary, malformed-input |
| Failed to parse Pkl module URI | validation | error | gradle, pkl, uri, parsing |
invalidPackageZipChecksum invalidPackageZipChecksum | error_code | critical | pkl, package-management, checksum, security |
| IO exception during decoding | exception | error | io, binary-decoding, stream |
| VmTypeMismatchException.Simple (value is not an Int32 in… | exception | error | pkl, type-mismatch, int32, value-out-of-range |
cannotConvertLargeFloat cannotConvertLargeFloat / cannotConvertNonFiniteFloat | error_code | error | pkl, float, truncating-division |
projectDependenciesOutOfDateInProject projectDependenciesOutOfDateInProject | error_code | error | pkl, dependencies, version-mismatch, lockfile |
| type mismatch (Nothing type) | error_code | error | nothing-type, type-mismatch, bottom-type, pkl |
wrongFunctionArgumentCount wrongFunctionArgumentCount | error_code | error | pkl, arity, function-call |
cannotAmendLocalPropertyDefinition cannotAmendLocalPropertyDefinition | error_code | error | pkl, parser, object-member, local-property |
charIndexOutOfRange charIndexOutOfRange | exception | error | pkl, string, index-out-of-range |
invalidCodePoint invalidCodePoint | exception | error | pkl, integer, unicode, code-point |
listingAmendmentCannotHaveParameters Expected a function that returns a `Listing`, but got a `Listing`. | exception | error | pkl, listing, amends, parameters |
| type mismatch: value is not of type Listing | exception | error | pkl, typecheck, listing, type-mismatch |
| Unexpected msgpack bin value | exception | error | msgpack, decoding, pkl-binary, malformed-input |
| Expected 3 fields in object member, found | validation | error | pkl, binary-decoder, corrupt-payload, malformed-input |
| Cannot decode Function value | exception | error | pkl-binary, decoding, unsupported-operation, function-value |
cannotFindCertFile cannotFindCertFile | exception | error | http, tls, configuration, file-not-found |
commandSubcommandConflict commandSubcommandConflict | error_code | error | pkl, cli, command-spec, naming |
notAParameterizableClass notAParameterizableClass | error_code | error | pkl, generics, type-annotation, type-arguments |
elementIndexOutOfRange Element index ` ` is out of range ` `..` `. | exception | error | pkl, listing, index-out-of-range, generator |
cannotResolveDependencyNoProject cannotResolveDependencyNoProject | error_code | error | |
| fatal: failed to attach response dispatch thread to isolate. | console | error | |
| Unexpected incoming one-way message | exception | error | pkl, protocol, reader, ipc |
| Cannot find Pkl module | exception | error | pkl, file-not-found, io |
cannotRenderType cannotRenderType | error_code | error | pkl, plist, renderer, unsupported-type, duration |
| <prints command help> | console | info | cli, pkl, help, usage |
| Unexpected incoming request message | exception | error | pkl, protocol, reader, ipc |
cannotInstantiateType Cannot instantiate type | error_code | error | pkl, instantiation, abstract-class, type-system |