ErrLookup › d2lang/d2

d2lang/d2

D2 is a modern diagram scripting language that turns text to diagrams. · Go · 220 source files

Analyzed at 0d69dca6f5 on 2026-08-31. 176 documented errors.

Code / MessageTypeSeverityTags
D2 instance has been disposed
exception error disposed-instance, lifecycle, worker, javascript
response.error.message
exception error compile-error, wasm, d2-syntax, worker
response.error.message
exception error compile-error, wasm, node, d2-syntax
response.error.message
exception error worker, compile, d2-syntax, error-propagation
failed to unmarshal Range from %q: missing End field
validation error parsing, unmarshal, d2ast
failed to unmarshal Range from %q: missing Start field
validation error parsing, unmarshal, d2ast
failed to unmarshal Position from %q: expected three fields
validation error parsing, unmarshal, d2ast
expected "opacity" to be a number between 0.0 and 1.0
validation error validation, d2graph, style
expected "stroke" to be a valid named color ("orange"), a he
validation error validation, d2graph, color, style
expected "fill" to be a valid named color ("orange"), a hex
validation error validation, d2graph, color, style
expected "fill-pattern" to be one of: %s
validation error validation, d2graph, style, enum
expected "stroke-width" to be a number between 0 and 15
validation error validation, d2graph, numeric, style
expected "stroke-dash" to be a number between 0 and 10
validation error validation, d2graph, numeric, style
expected "border-radius" to be a number greater or equal to
validation error validation, d2graph, numeric, style
expected "shadow" to be true or false
exception error d2, style-validation, boolean-parsing, strconv
expected "3d" to be true or false
exception error d2, style-validation, boolean-parsing, strconv
expected "multiple" to be true or false
exception error d2, style-validation, boolean-parsing, strconv
expected "font-size" to be a number between 8 and 100
exception error d2, style-validation, font-size, range-check
expected "font-color" to be a valid named color ("orange"),
exception error d2, style-validation, color, font-color
expected "animated" to be true or false
exception error d2, style-validation, boolean-parsing, strconv
expected "bold" to be true or false
exception error d2, style-validation, boolean-parsing, strconv
expected "italic" to be true or false
exception error d2, style-validation, boolean-parsing, strconv
expected "underline" to be true or false
exception error d2, style-validation, boolean-parsing, strconv
expected "filled" to be true or false
exception error d2, style-validation, boolean-parsing, strconv
expected "double-border" to be true or false
exception error d2, validation, style, boolean-parse
parent "_" can only be used in the beginning of paths, e.g.
exception error d2, path-resolution, syntax
parent "_" cannot be used in the root scope
exception error d2, path-resolution, scope
invalid use of parent "_"
exception error d2, path-resolution, syntax
cannot connect to reserved keyword
exception error d2, reserved-keyword, validation
invalid underscore
exception error d2, ir, edge-resolution, underscore
no actors declared in sequence diagram
exception error d2, sequence-diagram, layout
no available layout
exception error d2, layout, configuration
edgeKey must be an edge
exception error d2, d2oracle, edge, input-validation
edgeKey must refer to an existing edge
exception error d2, d2oracle, edge, input-validation
edge not found
exception error graph, edge, lookup, d2
newSrc not found
exception error graph, edge, node-lookup, d2
newDst not found
exception error graph, edge, node-lookup, d2
can only set one edge at a time
exception error edge, api-misuse, d2
edge key must be reserved
exception error edge, reserved-keywords, api-misuse, d2
malformed style setting, expected >= 2 part path
exception error edge, arrowhead, malformed-key, d2
malformed style setting, expected 2 part path
exception error edge, style, malformed-key, d2
can only delete one edge at a time
exception error edge, delete, api-misuse, d2
moving across scopes isn't supported for edges
exception error d2oracle, edges, unsupported-operation, graph-edit
not found
exception error d2oracle, lookup-failure, reparent, graph-edit
cannot generate unique key for edge chain
exception error d2oracle, edges, uniqueness, create
cannot rename edge to node
exception error d2, rename, edge
cannot rename edge to edge chain
exception error d2, rename, edge
to parent not found
exception error d2, move, graph-structure
code snippet style "github" not found
exception error svg, rendering, syntax-highlighting
code snippet formatter "svg" not found
exception error svg, rendering, syntax-highlighting
invalid gradient syntax
validation error color, gradient, parsing
no parameters in gradient
validation error color, gradient, parsing
no color stops in gradient
validation error go, parsing, gradient, css
cannot read a directory
exception error go, filesystem, memfs, io
%s is not a supported format. Supported formats are: %s
validation error go, cli, format, validation
failed to fully compile (partial render written) %s: %w
exception error go, cli, compile, render
failed to compile %s: %w
exception error go, cli, compile, error-wrapping
plugin has routing feature but does not implement RoutingPlu
exception error go, plugin, interface, type-assertion
render target "%s" not found
exception error go, cli, board, validation
multiboard output cannot be written to stdout
exception error go, cli, multiboard, stdout
expected .ttf file but %s has extension %s
validation error cli, fonts, validation
failed to read font at %s: %v
exception error cli, fonts, filesystem
error reading from stdin: %w
exception error cli, stdin, io
issue encountered with PNG exporter: %w
exception error watch-mode, playwright, browser, png
failed to fully %scompile (rendering partial svg): %w
exception error watch-mode, compile, partial-render
failed to %scompile: %w
exception error watch-mode, compile, d2-syntax
"%v" is not a valid font in our system
validation error d2, style-validation, fonts
expected "text-transform" to be one of (%s)
validation error d2, style-validation, text-transform
unknown style key: %s
validation error d2, style-validation, unknown-key
dimensions for object label %#v not found
exception error go, d2, text-measurement, layout
dimensions for class field %#v not found
exception error go, d2, text-measurement, class-shape
dimensions for class method %#v not found
exception error go, d2, text-measurement, class-shape
dimensions for sql_table name %#v not found
exception error go, d2, text-measurement, sql-table
dimensions for sql_table type %#v not found
exception error go, d2, text-measurement, sql-table
dimensions for sql_table constraint %#v not found
exception error go, d2, text-measurement, sql-table
text not pre-measured and no ruler provided
exception error go, d2, text-measurement
ruler does not have entire font family %s loaded, is a style
exception error go, d2, fonts, text-measurement
ruler does not have entire mono font family %s loaded, is a
exception error go, d2, fonts, text-measurement
dimensions for edge label %#v not found
exception error go, d2, text-measurement, edges
theme %d not found
validation error d2, theme, configuration, invalid-input
native ELK layout failed: %w
exception error elk, layout, native, layout-engine
actors in sequence diagrams cannot themselves be sequence di
validation error d2, sequence-diagram, nesting, unsupported
could not find center of %s. Is it declared as an actor?
validation error d2, sequence-diagram, actor, layout
no layout resolver configured for layout engine %q
validation error d2, layout, configuration, compile-options
"%s" is invalid
validation error d2, lsp, parsing, invalid-input
"%s" not found
validation error d2, lsp, filesystem, missing-file
board "%v" not found
validation error d2, lsp, board, not-found
board %v not found
validation error d2, oracle, board, not-found
board %v cannot be modified through this file
validation error go, d2, boards, ast
board %v AST not found
validation error go, d2, boards, ast
failed to recompile: %s %w
exception error go, d2, compile, ast
spaces are not allowed in blockstring tags
validation error go, d2, blockstring, validation
board names cannot contain dots or quotes
validation error go, d2, boards, naming, validation
object not found
exception error d2, delete, object-not-found
cannot rename to reserved keyword: %#v
validation error d2, rename, reserved-keywords, validation
key does not exist
exception error d2, rename, key-not-found
board at path %v not found
exception error d2, board-path, api-misuse
%v not found
exception error d2, object-id, invalid-input
failed to parse key %q: %w
exception error d2, parser, key-syntax
empty key: %q
exception error d2, parser, empty-input
failed to parse map key %q: %w
exception error d2, parser, map-key-syntax
empty map key: %q
exception error d2, parser, empty-input
failed to parse value %q: %w
exception error d2, parser, syntax
empty value: %q
exception error d2, parser, empty-input
%v stderr: %s
exception error plugin, exec, stderr
failed to unmarshal json: %w
exception error plugin, json, unmarshal
Object "%s" has attribute "top" and/or "left" set, but layou
validation error layout, feature-check, d2
Object "%s" has attribute "width" and/or "height" set, but l
validation error layout, feature-check, dimensions
Object "%s" has "near" set to another object, but layout eng
validation error layout, feature-check, near
Connection "%s" is a self loop on a container, but layout en
validation error layout, feature-check, self-loop
Connection "%s" goes from a container to a descendant, but l
validation error layout, feature-check, edges
plugin has routing feature but does not implement RoutingPlu
exception error plugin, interface, routing
failed to unmarshal input to graph: %s
exception error plugin, json, stdin, deserialization
failed to unmarshal input graph to graph: %s
exception error plugin, json, deserialization, routing
failed to unmarshal input edges graph to graph: %s
exception error plugin, deserialization, grpc
failed to encode ttf to woff: %v
exception error fonts, encoding, woff
padding %d produces invalid SVG dimensions
validation error svg, rendering, validation
unknown object of type %T
exception error svg, rendering, type-error
decode diagram hash JSON: object key has type %T
exception error json, hashing, deserialization
decode icon URL for stable diagram hash: %w
exception error json, hashing, icons
decode icon URL for stable diagram hash: invalid offsets %d:
exception error json, hashing, offsets
decode diagram hash JSON: got closing token %v, want }
exception error json, hashing, structure
decode diagram hash JSON: got closing token %v, want ]
exception error json, hashing, structure
decode diagram hash JSON: unexpected delimiter %q
exception error json, hashing, structure
decode icon URL for stable diagram hash: missing value
exception error json, hashing, d2target
decode icon URL for stable diagram hash: got %d fields, want
exception error json, hashing, schema-mismatch, d2target
decode icon URL for stable diagram hash: missing field %q
exception error json, hashing, schema-mismatch, d2target
invalid color "%s"
exception error color, parsing, validation
cannot parse hex color %v
exception error color, hex, parsing
failed to decompress: %w
exception error compression, brotli, decoding
checksum error in table: %v
exception error font, woff, checksum, corruption
failed to wait for workers: %w
exception error network, timeout, context, imgbundler
%v
exception error network, imgbundler, remote-fetch
expected status 200 but got %d %s
exception error http, network, go, imgbundler
failed to decode %q response for %s: %w
exception error http, compression, gzip, brotli, go
unsupported content encoding %q
validation error http, compression, content-encoding, go
decoded image exceeds maximum size of %d bytes
validation error security, decompression-bomb, limits, go
failed to close Playwright browser: %w
exception error playwright, browser, lifecycle, go
failed to stop Playwright: %w
exception warning playwright, driver, cleanup, process, go
failed to launch Chromium: %w
exception critical playwright, chromium, launch, environment, go
failed to start new Playwright browser context: %w
exception error playwright, browser-context, chromium, go
failed to start new Playwright page: %w
exception error playwright, page, chromium, lifecycle, go
failed to install Playwright: %w
exception error go, playwright, chromium, installation, network
failed to run Playwright: %w
exception error go, playwright, chromium, runtime, dependencies
failed to read user input: %w
exception error go, stdin, interactive-prompt, eof, ci
chromium installation cancelled by user
exception warning go, user-input, cancelled, prompt, consent
error decoding PNG image: %v
validation error go, png, image-decoding, validation, pptx
error copying %s: %v
exception error go, zip, pptx, io, template
unknown svg path command "%s"
validation error go, svg, path-parsing, unsupported-command
invalid kern table: too short
validation error font, kern, truncated-file
unsupported kern table version
validation error font, kern, unsupported-version
invalid kern table: no subtables
validation error font, kern, malformed-font
unsupported kern table coverage 0x%04x
validation warning font, kern, unsupported-format
invalid kern table length
validation error font, kern, corrupt-file
invalid sfnt: too short
validation error font, sfnt, truncated-file
invalid font collection
validation error font, ttc, corrupt-file
invalid font collection offset
validation error font, ttc, corrupt-file
invalid sfnt table directory
validation error font, sfnt, corrupt-file
invalid %s table bounds
validation error fonts, parsing, bounds-check, corrupt-input
native Markdown SVG does not support HTML element <%s>
validation error markdown, svg, wasm, html
decoded gif image could not be cast as *image.Paletted
validation error gif, image, encoding, go-stdlib
Failed to decompress SourceSansPro-Regular: %v
panic critical wasm, fonts, brotli, init-panic
Failed to decompress SourceSansPro-Bold: %v
panic critical wasm, fonts, brotli, init-panic
Failed to decompress SourceSansPro-Semibold: %v
panic critical wasm, fonts, brotli, init-panic
Failed to decompress SourceSansPro-Italic: %v
panic critical wasm, fonts, brotli, init-panic
Failed to decompress SourceCodePro-Regular: %v
panic critical wasm, fonts, brotli, init-panic
Failed to decompress SourceCodePro-Bold: %v
panic critical wasm, fonts, brotli, init-panic
Failed to decompress SourceCodePro-Semibold: %v
panic critical wasm, fonts, brotli, init-panic
Failed to decompress SourceCodePro-Italic: %v
panic critical go, panic, init, wasm, brotli, embedded-assets
Failed to decompress FuzzyBubbles-Regular: %v
panic critical go, panic, init, wasm, brotli, embedded-assets
Failed to decompress FuzzyBubbles-Bold: %v
panic critical go, panic, init, wasm, brotli, embedded-assets
Failed to initialize font faces: %v
panic critical go, panic, init, wasm, fonts, embedded-assets
received empty arrow head marker for: %#v
panic error go, panic, svg, rendering, arrowhead, invariant-violation
invalid luminance category
panic error go, panic, svg, theming, sketch, luminance
Failed to decompress paper texture: %v
panic critical go, panic, init, wasm, brotli, embedded-assets
create OpenType face: %v
panic error go, panic, fonts, textmeasure, opentype, invariant-violation