kex oops docs ↗ kex.run ↗

Errors and warnings

Every diagnostic the Kex compiler reports, by its code. Kex 0.4.0-rc.4 knows 476 errors and 3 warnings. A diagnostic links here as https://oops.kex.run/<code>; kex --explain <code> says the same in a terminal.

Lexical

KEXEL-0001 expected '>' after '::'
KEXEL-0002 unexpected character: char
KEXEL-0003 expected hexadecimal digits after '0x'
KEXEL-0004 expected octal digits after '0o'
KEXEL-0005 expected binary digits after '0b'
KEXEL-0006 'digits' is not a valid hexadecimal literal
KEXEL-0007 'digits' is not a valid octal literal
KEXEL-0008 'digits' is not a valid binary literal
KEXEL-0009 unterminated escape
KEXEL-0010 expected two hex digits after '\x'
KEXEL-0011 '\xdigits' is not ASCII; write the character as 'escape'
KEXEL-0012 expected expected after '\u'
KEXEL-0013 expected expected to close escape
KEXEL-0014 expected 1 to 6 hex digits in escape
KEXEL-0015 'escape' is not a Unicode scalar value
KEXEL-0016 unknown escape '\char'; write '\\' for a backslash
KEXEL-0017 unterminated string
KEXEL-0018 unterminated backtick literal
KEXEL-0019 unterminated char literal
KEXEL-0020 empty char literal
KEXEL-0021 unterminated quoted atom
KEXEL-0022 empty quoted atom

Parse

KEXEP-0001 `keyword` is a reserved keyword in Kex, so it cannot name a function. Rename it
KEXEP-0002 ':>' (implicit-This signature) is only valid inside 'make T do ... end'. Use ':' at top level instead
KEXEP-0003 unexpected token at top level: token
KEXEP-0004 'foul module' is no longer supported. Mark each effectful function 'foul' at its own definition instead
KEXEP-0005 expected expected, got found
KEXEP-0006 standalone 'module' must be the first statement in a file
KEXEP-0007 'main' blocks are not allowed inside block modules
KEXEP-0008 unexpected token in module body: token
KEXEP-0009 expected 'end' to close module, got found
KEXEP-0010 expected type name, got found
KEXEP-0011 `name` is a type parameter, so it cannot name a type. Give it a longer name
KEXEP-0012 expected type parameter, got found
KEXEP-0013 expected '>' after type parameters, got found
KEXEP-0014 expected ')' after variant args, got found
KEXEP-0015 expected function name, got found
KEXEP-0016 expected ':' or ':>' after function name, got found
KEXEP-0017 expected 'end' to close type, got found
KEXEP-0018 a distinct type needs exactly one backing type after '='
KEXEP-0019 expected record name, got found
KEXEP-0020 `name` is a type parameter, so it cannot name a record. Give it a longer name
KEXEP-0021 expected 'do' after record name, got found
KEXEP-0022 expected field name
KEXEP-0023 expected ':' after field name, got found
KEXEP-0024 expected expected to close record, got found
KEXEP-0025 expected trait name, got found
KEXEP-0026 `name` is a type parameter, so it cannot name a trait. Give it a longer name
KEXEP-0027 expected type param, got found
KEXEP-0028 expected 'do' after trait name, got found
KEXEP-0029 unexpected token in trait body
KEXEP-0030 expected 'end' to close trait, got found
KEXEP-0031 expected ':' after 'final', got found
KEXEP-0032 `name` is a type parameter, so it cannot name a make target. Give it a longer name
KEXEP-0033 `name` is a type parameter, so it cannot name a serving target. Give it a longer name
KEXEP-0034 expected trait name after '.', got found
KEXEP-0035 trait name 'name' is a single uppercase letter: those are reserved for type parameters
KEXEP-0036 expected 'do' after serving target, got found
KEXEP-0037 expected 'do' after make target, got found
KEXEP-0038 `keyword` is a reserved keyword in Kex, so it cannot name a method. Rename it
KEXEP-0039 unexpected token in make body: token
KEXEP-0040 expected 'end' to close serving, got found
KEXEP-0041 expected 'end' to close make, got found
KEXEP-0042 expected expected to close splice name, got found
KEXEP-0043 expected function name
KEXEP-0044 expected ')' after parameters, got found
KEXEP-0045 expected 'end' to close function, got found
KEXEP-0046 expected parameter
KEXEP-0047 expected name
KEXEP-0048 expected ':' or ':>', got found
KEXEP-0049 expected ']' in list type, got found
KEXEP-0050 expected field name in record type, got found
KEXEP-0051 duplicate field `name` in record type
KEXEP-0052 expected ':' after record type field, got found
KEXEP-0053 expected expected in record type, got found
KEXEP-0054 expected expected in map type, got found
KEXEP-0055 expected ')' in tuple type, got found
KEXEP-0056 expected '<' after Block, got found
KEXEP-0057 expected '>' to close Block type, got found
KEXEP-0058 type parameters are uppercase: write `upper` rather than `name`
KEXEP-0059 expected '(' after Type.query, got found
KEXEP-0060 expected ')' after Type.query argument, got found
KEXEP-0061 expected '>' after type arguments, got found
KEXEP-0062 expected type expression
KEXEP-0063 expected 'else' after 'then', got found
KEXEP-0064 `...` only spreads into a list, a map, or a `do` block body
KEXEP-0065 expected method or module name after '.'
KEXEP-0066 expected ')' after arguments, got found
KEXEP-0067 expected ']' after index, got found
KEXEP-0068 unterminated interpolation in string literal
KEXEP-0069 interpolation must contain exactly one expression
KEXEP-0070 expected record type name, got found
KEXEP-0071 expected ')' after after arguments, got found
KEXEP-0072 expected '=' in generated type, got found
KEXEP-0073 expected 'end' to close using block, got found
KEXEP-0074 unexpected token: token
KEXEP-0075 expected '=' after pattern in 'if let', got found
KEXEP-0076 expected 'end' to close if block, got found
KEXEP-0077 expected 'end' to close if, got found
KEXEP-0078 expected 'do' after match subject, got found
KEXEP-0079 expected name in match subject binding, got found
KEXEP-0080 expected '|' after match subject binding, got found
KEXEP-0081 expected 'end' to close match, got found
KEXEP-0082 expected '=>' in match clause, got found
KEXEP-0083 a type alternative binds a name or `_`, as in `s : String =>`
KEXEP-0084 expected 'end' to close match clause body, got found
KEXEP-0085 the timeout belongs to the `after` clause: `receive do ... after timeout: 1000 ... end`
KEXEP-0086 expected 'do' after receive, got found
KEXEP-0087 expected name in receive sender binding, got found
KEXEP-0088 expected '|' after receive sender binding, got found
KEXEP-0089 'when' guards are not supported on receive clauses; check the condition inside the clause body instead
KEXEP-0090 expected 'timeout:' after 'after', got found
KEXEP-0091 expected ':' after 'timeout', got found
KEXEP-0092 expected 'end' to close receive, got found
KEXEP-0093 expected 'do' after 'loop', got found
KEXEP-0094 expected loop counter name, got found
KEXEP-0095 expected '|' to close loop counter, got found
KEXEP-0096 expected 'end' to close loop, got found
KEXEP-0097 expected 'do' after 'while' condition, got found
KEXEP-0098 expected 'end' to close while, got found
KEXEP-0099 expected a spliced name, got found
KEXEP-0100 expected expected after '%', got found
KEXEP-0101 cannot bind 'name': single-letter uppercase names are reserved for type parameters
KEXEP-0102 expected '=' in let binding, got found
KEXEP-0103 cannot bind 'name' with 'var': patterns only bind lowercase names
KEXEP-0104 expected '=' in var binding, got found
KEXEP-0105 expected 'do' after 'spawn', got found
KEXEP-0106 expected 'end' to close spawn, got found
KEXEP-0107 expected '=' after the capability name in 'with', got found
KEXEP-0108 expected 'do' after the 'with' replacement, got found
KEXEP-0109 expected 'end' to close with, got found
KEXEP-0110 expected ')' in tuple param, got found
KEXEP-0111 expected param name, got found
KEXEP-0112 expected '|' to close params, got found
KEXEP-0113 expected expected to close lambda, got found
KEXEP-0114 expected 'end' to close do block, got found
KEXEP-0115 expected lambda
KEXEP-0116 `&.op` is not valid: write `~(op)` to capture an operator
KEXEP-0117 expected method name after '&.'
KEXEP-0118 `&name` is no longer valid: write `~name` to capture a named function ('&' is receiver shorthand only, as in `&.method`)
KEXEP-0119 `&op` is no longer valid: write `~(op)` to capture an operator ('&' is receiver shorthand only, as in `&.method`)
KEXEP-0120 expected '.' after '&': '&' is receiver shorthand, as in `&.method`
KEXEP-0121 expected ':' in map entry, got found
KEXEP-0122 expected expected to close map, got found
KEXEP-0123 expected a name, got found
KEXEP-0124 `keyword` is a reserved keyword in Kex, so it cannot name a variable. Rename it
KEXEP-0125 expected pattern
KEXEP-0126 expected 'do' after 'compiled', got found
KEXEP-0127 compile-time constants need `let`: write `let name = ...`
KEXEP-0128 expected 'end' to close compiled block, got found
KEXEP-0129 expected ')' after operator, got found
KEXEP-0130 expected name or operator in using option list
KEXEP-0131 an operator in a using option list is written in parentheses: `(op)`
KEXEP-0132 expected name in using option list
KEXEP-0133 expected using option, got found
KEXEP-0134 expected expected after using option, got found
KEXEP-0135 duplicate 'option' using option
KEXEP-0136 expected alias name after 'as:', got found
KEXEP-0137 `name` is a type parameter, so it cannot name a module. Give it a longer name
KEXEP-0138 expected ']' after using option list, got found
KEXEP-0139 unknown using option 'option'
KEXEP-0140 'only' and 'except' using options are mutually exclusive
KEXEP-0141 expected ')' after main parameters, got found
KEXEP-0142 expected 'do' after 'main', got found
KEXEP-0143 expected 'end' to close main block, got found
KEXEP-0144 expected ']' to close pragma, got found
KEXEP-0145 expected 'do' after visibility keyword, got found
KEXEP-0146 unexpected token in visibility block: token
KEXEP-0147 expected 'end' to close visibility block, got found
KEXEP-0148 expected function name after '~module.', got found
KEXEP-0149 expected function name after '~module.'
KEXEP-0150 expected operator inside '~(...)'
KEXEP-0151 expected function name or operator after '~'
KEXEP-0152 expected parameter name after '|' in rescue
KEXEP-0153 expected '|' after rescue parameter, got found
KEXEP-0154 expected 'do' after 'trying', got found
KEXEP-0155 'trying' block requires 'rescue'
KEXEP-0156 expected 'end' to close trying block, got found
KEXEP-0157 generating a `keyword` inside `compiled do` needs a spliced name: `let %name(...)`, `type %name = ...`, `record %name do ... end` and `make %name do ... end` are the generation forms
KEXEP-0158 use 'then' instead of 'do' in if expression: `if cond then body end`

Modules

KEXEM-0001 module cannot export itself
KEXEM-0002 exported module not found: module
KEXEM-0003 module module has no name `name`
KEXEM-0004 cannot export private name `name` from module
KEXEM-0005 cannot reference private name `name` in except list
KEXEM-0006 module module has no public names to export
KEXEM-0007 cannot import private name `name` from module
KEXEM-0008 cannot reference private name `name` from module
KEXEM-0009 module not found in source roots: module
KEXEM-0010 this file is `module` by its path, but declares `declared`; name it `module module`
KEXEM-0011 module `module` is declared in a file whose path names `pathModule`, so `module` is not found; name it `module pathModule`, or move it to path
KEXWM-0001 module not found in source roots: module

Scope

KEXES-0001 duplicate record definition: name
KEXES-0002 'keyword' cannot be used inside a closure
KEXES-0003 'keyword' used outside a loop
KEXES-0004 `method` is defined twice for receiver `type`. The declaration form gives neither definition priority, so the call is ambiguous

Purity

KEXEF-0001 cannot call foul function 'name' from pure context
KEXEF-0002 cannot call foul tag 'name' from pure context
KEXEF-0003 cannot capture foul function 'name' from pure context
KEXEF-0004 cannot use 'keyword' in pure context
KEXEF-0005 cannot call foul function 'name' in a guard
KEXEF-0006 cannot call foul tag 'name' in a guard
KEXEF-0007 cannot call function 'name' in a guard: it transitively calls foul operations
KEXEF-0008 cannot call tag 'name' in a guard: it transitively calls foul operations

Types

KEXET-0001 type mismatch: expected expected, got actual
KEXET-0002 type mismatch: expected expected, got actual (incompatible nominal record tags `left` and `right`)
KEXET-0100 undefined method `name`
KEXET-0101 undefined method `name` for `receiver`
KEXET-0102 `name` takes 1 value, but got given
KEXET-0103 `name` takes count values, but got given
KEXET-0104 `name` expects a value of type expected, but got actual
KEXET-0105 `name` expects value index of type expected, but got actual
KEXET-0106 `::>` is not valid on a cast slot. Casts have no `from`; use `:>`
KEXET-0107 non-exhaustive match on type: missing case(s) cases
KEXET-0108 non-exhaustive match: missing case(s) cases
KEXET-0109 `name` takes 1 type argument, but given are given
KEXET-0110 `name` takes count type arguments, but 1 is given
KEXET-0111 `name` takes count type arguments, but given are given
KEXET-0112 `module` has no constructor `name`
KEXET-0113 `name` is a constructor of `owner`, but the value being matched has type `type`. This pattern can never match
KEXET-0114 `name` constructor takes count value(s), but the pattern destructures given
KEXET-0115 `name` is not a constructor of `type` (it has constructors). This pattern can never match
KEXET-0116 `name` record takes count value(s), but the pattern destructures given
KEXET-0117 `name` is not a record type
KEXET-0118 record `record` has no field `field`
KEXET-0119 cannot match `name`: expected expected, got actual
KEXET-0120 overloads of `name` must all have the same purity
KEXET-0121 inline return type for `name` disagrees with its separate annotation: inline versus declared
KEXET-0122 `name` is required to take expected for `param`, but takes actual
KEXET-0123 `name` declared to return expected but body returns `variable`, which stands for any type
KEXET-0124 `name` declared to return expected but returns actual here
KEXET-0125 call slot returns without `reply:` but never uses `from` for a deferred reply
KEXET-0126 `name` is required to return expected but body returns actual
KEXET-0127 `name` declared to return expected but body returns actual
KEXET-0128 `name` is defined twice for receiver `receiver`: here and in the prelude
KEXET-0129 ambiguous trait: `name` could be candidates. Write the one you mean
KEXET-0130 unknown trait: name
KEXET-0131 make type, implement: trait. Missing required method 'method'
KEXET-0132 make type, implement: trait. Method 'method' must be declared foul (trait requires it)
KEXET-0133 cannot redeclare 'name': already declared with 'var'
KEXET-0134 cannot redeclare 'name': was declared with 'var'
KEXET-0135 cannot redeclare immutable binding: name
KEXET-0136 `name` expects count argument(s), got given
KEXET-0137 `name` expects one of these argument counts: count (got given)
KEXET-0138 `name` is a constructor of type, declared in module module: write `module.name`, or bring it in with `using module`
KEXET-0139 `name` is `module.name` here: name it so, or bring it in with `using module`
KEXET-0140 ambiguous name `name`, imported from both `first` and `second`
KEXET-0141 `.try` can fail, and `name` declares no result and mixes an Optional's `.try` with a Result's: declare it, as `type?` or `type or! E`, or handle the failure with `trying` or a `rescue`
KEXET-0142 `.try` can fail, and `name` declares no result and `return`s: declare it, as `type?` or `type or! E`, or handle the failure with `trying` or a `rescue`
KEXET-0143 `.try` can fail, and `name` returns type, which cannot hold the failure: return a Result or an Optional, or handle it with `trying` or a `rescue`
KEXET-0144 `.try` can fail, and this block returns type, which cannot hold the failure: return a Result or an Optional, or handle it with `trying` or a `rescue`
KEXET-0145 unknown type `name`
KEXET-0146 undefined name: `name`
KEXET-0147 undefined name: `name`, did you mean `hint`?
KEXET-0148 undefined name: `name`. `module.name` is not imported here
KEXET-0149 undefined name: `name`. `module.name` is private to `module`
KEXET-0150 undefined name: `name`. Not visible here: owners
KEXET-0151 undefined name: `name`. file declares it outside its module, for itself
KEXET-0152 undefined constructor or type: `name`
KEXET-0153 undefined constructor or type: `name`, did you mean `hint`?
KEXET-0154 undefined constructor or type: `name`. `module.name` is not imported here
KEXET-0155 undefined constructor or type: `name`. `module.name` is private to `module`
KEXET-0156 undefined constructor or type: `name`. Not visible here: owners
KEXET-0157 undefined constructor or type: `name`. file declares it outside its module, for itself
KEXET-0158 undefined variable: `name`
KEXET-0159 undefined variable: `name`, did you mean `hint`?
KEXET-0160 undefined variable: `name`. `module.name` is not imported here
KEXET-0161 undefined variable: `name`. `module.name` is private to `module`
KEXET-0162 undefined variable: `name`. Not visible here: owners
KEXET-0163 undefined function: `name`
KEXET-0164 undefined function: `name`, did you mean `hint`?
KEXET-0165 undefined function: `name`. `module.name` is not imported here
KEXET-0166 undefined function: `name`. `module.name` is private to `module`
KEXET-0167 undefined function: `name`. Not visible here: owners
KEXET-0168 undefined function: `name`. file declares it outside its module, for itself
KEXET-0169 undefined tag: `name`
KEXET-0170 undefined tag: `name`, did you mean `hint`?
KEXET-0171 undefined tag: `name`. `module.name` is not imported here
KEXET-0172 undefined tag: `name`. `module.name` is private to `module`
KEXET-0173 undefined tag: `name`. Not visible here: owners
KEXET-0174 `Type.returnedBy` needs the NAME of a function; a lambda or a function value carries no signature
KEXET-0175 `Type.returnedBy` cannot choose between the overloads of `name`signatures
KEXET-0176 `Type.returnedBy` cannot answer for `name`: its return type is not concrete
KEXET-0177 `Process.spawn(name)` passes the type, not a value; spawn a server with its initial state: `Process.spawn(value)`
KEXET-0178 `.as` needs a type name as its target
KEXET-0179 `.as(Atom)` needs a string literal; for text known only at run time use `Atom.from(text)`, or `text.to(Atom)` to find an existing atom
KEXET-0180 cannot convert source to target with `.as`
KEXET-0181 unchecked narrowing to Byte is not allowed; use `.to(Byte)`
KEXET-0182 `name` is declared in this `make` block but nothing defines it. A method the runtime provides is declared with `:>`, which makes the receiver implicit
KEXET-0183 `name` is declared in this `make` block but nothing defines it. Inside a `make` block `name : …` declares a METHOD, not a record field; the field is already declared by `record record`, so drop this line
KEXET-0184 `name` is declared in this `make` block but nothing defines it. Inside a `make` block `name : …` declares a METHOD, not a record field; declare fields in `record record`
KEXET-0185 `new` is reserved for the next-state binding; use a name such as `build` for constructor functions
KEXET-0400 collection-block spread expects a list, got type
KEXET-0401 collection-block guard requires Bool, got type
KEXET-0402 `from` is not available in a cast: no caller is waiting for a reply
KEXET-0403 `new` requires a record receiver
KEXET-0404 `new` requires a record receiver (or an explicit local binding)
KEXET-0405 `name` is a constructor taking 1 value, not a value: call it (`name(…)`), or pass a block (`block`)
KEXET-0406 `name` is a constructor taking count values, not a value: call it (`name(…)`), or pass a block (`block`)
KEXET-0407 'capability' is not a capability, so it cannot be replaced by 'with'. Declare it as `capability capability do ... end`
KEXET-0408 replacement for capability 'capability' does not implement it: type
KEXET-0409 `.try` expects Result or Optional, got type
KEXET-0410 `trying` body returns body but rescue returns rescue
KEXET-0411 cannot assign to immutable binding: name
KEXET-0412 nested record-field assignment is not supported yet
KEXET-0413 field assignment requires a record binding
KEXET-0414 record `record` has no field `field`
KEXET-0415 `operator` is not defined for left and right
KEXET-0416 `operator` is not defined for left and right; declare it in a `make left` block
KEXET-0417 `operator` is not defined for left and right; declare it in trait `left`
KEXET-0418 `!=` is not defined here: `type`'s `==` answers result, not Bool, so there is no inequality to derive. Declare `!=` beside it
KEXET-0419 logical not '!' requires Bool, got type
KEXET-0420 unary '-' requires a number, got type
KEXET-0421 unknown module `module`
KEXET-0422 `module` has no module `name`
KEXET-0423 `module` has no function `name`
KEXET-0424 `module` has no function `name`, did you mean `hint`?
KEXET-0425 cannot use '!' on immutable binding: name
KEXET-0426 cannot access private name `name` from module
KEXET-0427 `root.` interop is now `BEAM.`, followed by the module's real name: write `BEAM.lists.reverse(xs)`, `BEAM.erlang.node()`
KEXET-0428 `root.` interop is now `BEAM.`, followed by the module's real name: write `BEAM.lists.reverse(xs)`, `BEAM.erlang.node()`, `BEAM.Elixir.Enum.map(xs, f)`
KEXET-0429 `or` needs a fallback of type type, but got got. `or` is what leaves the optional; pass a plain default, keep the value as it is, or `match` on it
KEXET-0430 `or` needs a fallback of type type, but got got. `or` is what leaves the result; pass a plain default, keep the value as it is, or `match` on it
KEXET-0431 `or` needs the unwrapped value to fall back to, but got got. `or` is what leaves the optional; pass a plain default, keep the value as it is, or `match` on it
KEXET-0432 `or` needs the unwrapped value to fall back to, but got got. `or` is what leaves the result; pass a plain default, keep the value as it is, or `match` on it
KEXET-0433 `or` needs a fallback of type type, but got a block. `or` never calls it, so the block itself would be the answer; pass a plain default, or `match` on the optional to compute one
KEXET-0434 `or` needs a fallback of type type, but got a block. `or` never calls it, so the block itself would be the answer; pass a plain default, or `match` on the result to compute one
KEXET-0435 `or` needs a fallback of type type, but got a function. `or` never calls it, so the function itself would be the answer; pass a plain default, or `match` on the optional to compute one
KEXET-0436 `or` needs a fallback of type type, but got a function. `or` never calls it, so the function itself would be the answer; pass a plain default, or `match` on the result to compute one
KEXET-0437 `within:` expects Integer milliseconds or :infinity, got type
KEXET-0438 list elements must be the same type. Expected expected, got actual
KEXET-0439 the tail of `[x | rest]` must be a list of element, got actual
KEXET-0440 the tail of `[x | rest]` must be a list, got actual
KEXET-0441 range endpoints must be Integer, Float, or Char
KEXET-0442 range endpoints must have the same type
KEXET-0443 if condition must be Bool, got type
KEXET-0444 branch type mismatch: 'if' returns then but 'elif' returns other
KEXET-0445 branch type mismatch: 'if' returns then but 'else' returns other
KEXET-0446 match arm type mismatch: expected expected but arm returns actual
KEXET-0447 `after timeout:` takes milliseconds, an Integer, but got type
KEXET-0448 while condition must be Bool, got type
KEXET-0449 `name` construction requires a make block receiver
KEXET-0450 `name` requires a record receiver
KEXET-0451 record spread expects `record`, but got actual
KEXET-0452 record `record` has no field `field`. It has fields
KEXET-0453 record `record` has no field `field`. It has no fields
KEXET-0454 `record.field` expects expected, but got actual
KEXET-0455 missing mandatory field fields constructing `record`
KEXET-0456 missing mandatory fields fields constructing `record`
KEXET-0457 unknown record type `record`
KEXET-0458 then/else condition must be Bool, got type
KEXET-0459 branch type mismatch: 'then' returns then but 'else' returns other
KEXET-0460 cannot reference overloaded function `name` without disambiguating argumentssignatures
KEXET-0461 'this' has no receiver here: it is only bound inside a `make` block method
KEXET-0462 `name` is not defined for every `type`, which stands for any type
KEXET-0463 cannot add left and right
KEXET-0464 operator '+' requires matching types, got left and right
KEXET-0465 cannot use arithmetic operator on String
KEXET-0466 cannot compare Bool values with '<', '>', '<=', '>='
KEXET-0467 cannot compare left and right
KEXET-0468 logical operator requires Bool, got type
KEXET-0470 `Type.returnedBy` needs `name` to declare its return type
KEXET-0472 `name` expects expected argument(s), got actual
KEXET-0475 undefined function: `name`. Not imported here: functions
KEXET-0476 undefined function: `name`. Private to their modules: functions
KEXET-0477 undefined function: `name`. Not imported here: hidden. Private to their modules: private
KEXET-0478 `field` is a field of inner, but the receiver is receiver. The value may be None. Map over the optional first: `example`
KEXET-0479 ambiguous imported function 'name' is provided by both 'first' and 'second'
KEXET-0480 ambiguous imported receiver function 'name' is provided by both 'first' and 'second'
KEXET-0481 unknown named argument `label:` for `name`
KEXET-0482 unknown named argument `label:` for `name`, did you mean `hint:`?
KEXET-0483 missing required argument `param` for `name`
KEXET-0484 `name` takes no arguments; the function it returns expects expected argument(s), got actual
KEXET-0485 `name` takes no arguments, got actual
KEXET-0486 ambiguous overload for `name`; candidates:signatures
KEXET-0487 `within:` is not valid on an asynchronous cast slot
KEXET-0488 `name` is private to `make type`. It is only callable inside that block
KEXET-0489 `name` is private to `make type` in `module`. It is only callable inside that block
KEXET-0491 `name` expects argument index to be expected, but got actualsignatures
KEXET-0492 `name` expects different argumentssignatures
KEXET-0493 Byte literal must be in 0..255
KEXET-0494 `left` and `right` are never equal: compare with `constructor(value)`, or unwrap first (`.or(default)`, a `match`)
KEXWT-0001 type annotation for 'name' declares declared parameter(s) but definition has actual

Compile time

KEXEC-0001 a `make` body holds methods, so only `let %name(...)` can be generated inside one. An ordinary `make` follows the same rule
KEXEC-0002 generated method has an empty name
KEXEC-0003 Kex.embed takes exactly one argument: the path of the file to embed
KEXEC-0004 Kex.embed's argument must be a plain string literal naming the file to embed. The path has to be known to the compiler, not only to the running program
KEXEC-0005 Kex.embed's argument must be a plain string literal naming the file to embed, not an interpolated one. The path has to be known to the compiler, not only to the running program. A hole may name a `compiled do` loop variable, or a String parameter of the enclosing function, which then gets one clause per matching file
KEXEC-0006 Kex.embed: cannot read 'path'
KEXEC-0007 Kex.embed("pattern") matches no file, so `function` would have no clause for it
KEXEC-0008 in a template elif condition: expected an expression
KEXEC-0009 in a template let/var region: expected an expression
KEXEC-0010 in a template if condition: expected an expression
KEXEC-0011 in a template block call: expected an expression
KEXEC-0012 in a template control region: expected an expression
KEXEC-0013 in a template hole `text`: expected an expression
KEXEC-0014 template `if` has no matching `end`
KEXEC-0015 template block has no matching `end`
KEXEC-0016 template block `text` is not a call that can take a block
KEXEC-0017 in a template's `params:` frontmatter, `text` is not a type: expected a type
KEXEC-0018 template's control regions do not balance: an `end`, `else` or `elif` has no opener
KEXEC-0019 template.method takes exactly one argument: the template's source text
KEXEC-0020 template.method's argument must be a compile-time-known string (a plain literal, or Kex.embed(...)). The template's text has to be known to the compiler, not only to the running program
KEXEC-0021 compile-time constant `name` cannot be inlined
KEXEC-0022 compile-time constant `name` cannot be inlined: no value
KEXEC-0023 compile-time constant `name` cannot be inlined: `placeholder` is not known at compile time and has no expression to fall back on
KEXEC-0024 compile-time constant `name` cannot be inlined: a type has no literal form
KEXEC-0025 compile-time evaluation timed out after ms ms
KEXEC-0026 compile-time evaluation failed: error
KEXEC-0027 generated declaration has an empty name
KEXEC-0028 generated type name `name` must start with an upper-case letter
KEXEC-0029 generated type name `name` must start with an upper-case letter. Try `fix`
KEXEC-0030 generated record name `name` must start with an upper-case letter
KEXEC-0031 generated record name `name` must start with an upper-case letter. Try `fix`
KEXEC-0032 generated make target name `name` must start with an upper-case letter
KEXEC-0033 generated make target name `name` must start with an upper-case letter. Try `fix`
KEXEC-0034 generated function name `name` must start with a lower-case letter
KEXEC-0035 template scan timed out after ms ms
KEXEC-0036 template.scan could not be evaluated at compile time
KEXEC-0037 error
KEXEC-0038 template.scan did not return a Result
KEXEC-0039 template does not scan: message
KEXEC-0040 template does not scan: scan failed
KEXEC-0041 template.scan returned an unexpected Ok value
KEXEC-0042 template.scan's Ok value is not a Parsed record
KEXEC-0043 Parsed has no `nodes` field
KEXEC-0044 Parsed.nodes is not a list
KEXEC-0045 Parsed.nodes holds something other than a Node
KEXEC-0046 unknown template node: tag
KEXEC-0047 a template Node's payload is not a String
KEXEC-0048 compile-time validator `validator` must return [TaggedValidation.Issue], got type
KEXEC-0049 compile-time validator `validator` must return [TaggedValidation.Issue], got nothing
KEXEC-0050 compile-time validator `validator` returned a malformed Issue
KEXEC-0051 compile-time validator `validator` returned an invalid Issue byte span
KEXEC-0052 compile-time validator `validator` returned an Issue byte span outside the literal
KEXEC-0053 compile-time validator `validator` returned an Issue with a non-String message
KEXEC-0054 message
KEXEC-0055 companion validator `validator` must be pure with signature String -> [TaggedValidation.Issue]
KEXEC-0056 compile-time validator `validator` timed out after ms ms
KEXEC-0057 compile-time validator `validator` crashed: error
KEXWC-0001 message

Lowering

KEXEB-0001 ambiguous record layout for field `field` on `record`: indistinguishable size-element layouts place it at positions first and second
KEXEB-0002 IR lower: unsupported record-field sub-pattern
KEXEB-0003 IR lower: unsupported literal pattern
KEXEB-0004 IR lower: a String's character can only be bound or matched against a Char literal
KEXEB-0005 IR lower: the rest of a String can only be bound or matched against a String literal
KEXEB-0006 IR lower: anonymous record pattern `pattern` is not supported in match/if-let; name the record (`example`) so its field layout is known
KEXEB-0007 IR lower: unknown record `name` in pattern
KEXEB-0008 IR lower: unsupported pattern kind
KEXEB-0009 IR lower: named arguments to `function` reached lowering undecided
KEXEB-0010 IR lower: named args to module function with unknown params: function
KEXEB-0011 IR lower: named arguments to `function` reached lowering unplaced
KEXEB-0012 IR lower: named args to imported function with unknown params: function
KEXEB-0013 IR lower: unknown named arg label for function
KEXEB-0014 IR lower: missing source argument for trait dictionary
KEXEB-0015 IR lower: record construction `name` the checker did not type as a known record
KEXEB-0016 IR lower: static constructor 'name' not yet ported
KEXEB-0017 IR lower: trait-typed dictionary parameter must be named
KEXEB-0018 IR lower: unsupported unary operator
KEXEB-0019 IR lower: an assignment inside a block, branch or `&&`/`||` operand is not supported here; assign in a statement of its own
KEXEB-0020 IR lower: unimplemented expr node node
KEXEB-0021 IR lower: unknown module function in `~function`
KEXEB-0022 IR lower: clone of null expr [site]
KEXEB-0023 IR lower: clone of non-atomic expr (index index) [site]
KEXEB-0024 IR lower: unsupported binary operator
KEXEB-0025 IR lower: a type pattern (`x : T`) is not supported in a receive clause
KEXEB-0026 IR lower: `keyword` used as an expression cannot assign to `name`. Put it in statement position instead
KEXEB-0027 IR lower: match |binder| in loop not yet ported
KEXEB-0028 IR lower: nested record-field assignment is not supported
KEXEB-0029 IR lower: named args to external function with unknown params: function
KEXEB-0030 IR lower: named args to unknown function function
KEXEB-0031 IR lower: unknown trait dictionary trait
KEXEB-0032 IR lower: no implementation for trait.method on type
KEXEB-0033 IR lower: `name/arity` names both a free function and a receiver method in this compilation unit. Rename one of them
KEXEB-0034 IR lower: file was not checked
KEXEB-0035 IR lower: unimplemented top-level item item
KEXEB-0036 IR lower: non-monotonic prelude tier bounds
KEXEB-0037 IR lower: tier bounds do not cover the full prelude AST
KEXEB-0038 IR lower: the checker left `name/arity` undecided in a checked program