Repository navigation
lspcheck 0.6.0
This release fixes verdicts that could be wrong when lspcheck didn't see all of the server's output, and makes two
things easier to spot under --mutate. Some verdicts change from 0.5.0, each to what lspcheck actually observed:
F1 can go from fail to error, K1 from pass to error, and J3, K1 or M3 from error to pass. The entries
below say when.
Added
- Under
--mutate, lspcheck warns on stderr whenmutation.run_timeoutleaves less than a minute beyond one case's
budget in which cases can start. A slow machine could then run fewer cases than asked while every verdict passes.
The run, its report and its exit status are unchanged. - Under
--mutate, the report counts the Error and Warning messages the server sends withwindow/showMessage,
window/logMessageorwindow/showMessageRequestfrom the first mutation until shutdown, so a contained crash the
server reports only as a message is visible. The JSON report'smutation.messageshas the counts and the first
three messages, each with its case and method and cut to 200 characters; the terminal and Markdown reports add a
line quoting them when there is at least one. They change no verdict.
Fixed
- F1 no longer fails on a frame lspcheck may have cut short itself. When lspcheck stops a server (or a process it
left behind) that is still writing a frame, such as a slowshutdownreply lspcheck gave up waiting for, F1 is now
errorand says how much of the frame arrived, whether the stream ended in the frame's body or its header section.
What counts is when lspcheck saw the stream end. A server that ends its output inside a frame by itself still fails
F1, if lspcheck saw the end before stopping it; so does a header section already malformed when the stream ended. - K1 no longer passes when output lspcheck didn't read after K1's first request could have held a MethodNotFound
for one of its requests: a frame over--max-frame-mib(even a duplicate after a result), reading that stopped, or
stdout held open by a process lspcheck couldn't stop. K1 is thenerrorand says why. A MethodNotFound lspcheck
read still fails K1, and output missed before K1's requests doesn't affect it. Under--mutate, the same applies to
K1's requests about the mutated documents. - When the server's stdout stays open after lspcheck has stopped its processes, what lspcheck didn't read after
giving up on it now counts as missed, so the checks that ask whether output was missed (K1 among them) areerror
instead of passing. - A frame whose header the server wrote but whose body it never began, because it ended its output first, still
fails F1 but no longer makes K1, J3, M3 or the other checks that ask whether output was missederror: it can't
have held a message. gopls sometimes exits this way afterexit. - Under
--mutate, when some of M2's unanswered requests may have been answered in output lspcheck didn't see, M2's
failure detail now names and counts only the requests whose waits it saw in full, and says how many others may have
been answered, and why. Likewise R4's failure detail lists as unanswered only the ids whose waits it saw in full.
Neither verdict changes.