Fails to build with crystal 0.36
peterhoeg opened this issue · 1 comments
peterhoeg commented
Fails with Error: instance variable @documentation of LSP::Protocol::CompletionItem was inferred to be Nil, but Nil alone provides no information
.
I haven't looked at a fix so raising the issue here so everybody knows.
building '/nix/store/0w6jjsv61n1hgrrndy3z38jn2cwhwbiq-scry-0.8.1.20200902.drv'...
unpacking sources
unpacking source archive /nix/store/avb0msb4q2xa11l9an805dfijv54v84i-source
source root is source
patching sources
configuring
building
lsp: checking...
Dependencies are satisfied
Building: scry
crystal build -o /build/source/bin/scry src/scry.cr --release --progress
Error target scry failed to compile:
Showing last frame. Use --error-trace for full trace.
In lib/lsp/src/lsp/protocol/completion_item.cr:77:70
77 | def initialize(@label, @kind, @detail, @data, insert_text = nil, @documentation = nil)
^
Error: instance variable @documentation of LSP::Protocol::CompletionItem was inferred to be Nil, but Nil alone provides no information
error: --- Error -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix-build
builder for '/nix/store/0w6jjsv61n1hgrrndy3z38jn2cwhwbiq-scry-0.8.1.20200902.drv' failed with exit code 1; last 10 log lines:
crystal build -o /build/source/bin/scry src/scry.cr --release --progress
Error target scry failed to compile:
Showing last frame. Use --error-trace for full trace.
In lib/lsp/src/lsp/protocol/completion_item.cr:77:70
77 | def initialize(@label, @kind, @detail, @data, insert_text = nil, @documentation = nil)
^
Error: instance variable @documentation of LSP::Protocol::CompletionItem was inferred to be Nil, but Nil alone provides no information
alexherbo2 commented
I have the same issue.