DiagnosticsError codes
Error codes
Every code marmot reports, with the real diagnostic, an example of the mistake and the fix.
Every diagnostic has a stable code. marmot explain CODE prints the same description in the terminal, and marmot explain -json CODE as JSON.
Build errors
| Code | What it means |
|---|---|
| M0000 | error |
| M0001 | syntax error |
| M0002 | undefined name |
| M0003 | no such field or method |
| M0004 | declared and not used |
| M0005 | imported and not used |
| M0006 | type mismatch |
| M0007 | mismatched types |
| M0008 | wrong number of return values |
| M0009 | wrong number of arguments |
| M0010 | missing return |
| M0011 | package not found |
| M0012 | assignment count mismatch |
| M0013 | no new variables |
| M0014 | does not implement interface |
| M0015 | redeclared |
| M0016 | invalid operation |
| M0017 | bad command line |
| M0018 | link error |
| M0019 | internal compiler error |
| M0020 | runtime panic |
| M0021 | fatal runtime error |
| M0022 | test failed |
| M0023 | import cycle |
| M0024 | name not exported |
| M0025 | not supported by marmot |
| M0026 | type argument does not satisfy constraint |
| M0027 | cannot infer type argument |
| M0028 | shadowed variable |
| M0029 | unknown struct field |