src/lsp/server.bend fails
raw source on the hub · import 0xde9bb08f7de298b03207fb5797ede9a5/src/lsp/server.bend as Server
lsp/server: the loop. The transport the messages ride on and the files behind imports and Base are passed in (transport/, files/); the checker behind the diagnostics is checker/bend.bend, called directly. The open documents are the loop's state. The checker runs on open and save, against the file on disk; the linter on every open, change and save, on the text the editor shows.
21 imports
import Base import 0x81c67699424929b5c44cd8577e18117f/main.bend as Ezjson import 0x81c67699424929b5c44cd8577e18117f/src/value.bend as J import ./proto.bend as Proto import ./docs.bend as Docs import ./nav.bend as Nav import ./semantic.bend as Semantic import ../rules.bend as Lint import ../finding.bend as Finding import ../config.bend as Config import ../lint/plan.bend as Plan import ../noqa.bend as Noqa import ./transport/service.bend as T import ./checker/answer.bend as C import ./checker/bend.bend as BendChecker import ./files/service.bend as F import ./report.bend as Rep import ./enc.bend as Enc import ../syntax/outline.bend as Outline import ../syntax/lex.bend as Lex import ../syntax/word.bend as Word
The reader could not load this file (at 0xde9bb08f7de298b03207fb5797ede9a5/src/lsp/frame.bend:295). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Ready)
- observed : 'Ready'
Location:
294 | More{}
295>| Ready{body: List<&2, U32>, rest: List<&2, U32>}
| ^^^^^
296 |