github.com/plambert/toy-lang
master / published Apr 29, 2020 / repository
Toy language parser
Documentation could not be built
Build failed
The documentation build for this version ran and did not produce anything usable. That is usually a shard that does not compile against the Crystal version it declared.
What the builder reported
docs-build: crystal docs exited 62
crystal docs said:
no-egress: verified in-process as uid 1000, ip and vsock sockets denied, io_uring denied, no_new_privs set
Crystal built without LibXML2 support, HTML sanitization will be skipped
Showing last frame. Use --error-trace for full trace.
In src/toy-lang-token.cr:122:9
122 | def initialize(text : String, offset : Int32 = 0)
^---------
Error: this 'initialize' doesn't explicitly initialize instance variable '@start' of Toy::Lang::Token, rendering it nilable
The instance variable '@start' is initialized in other 'initialize' methods,
and by not initializing it here it's not clear if the variable is supposed
to be nilable or if this is a mistake.
To fix this error, either assign nil to it here:
@start = nil
Or declare it as nilable outside at the type level:
@start : (UInt32)?