Dafny-VSCode icon indicating copy to clipboard operation
Dafny-VSCode copied to clipboard

Request textDocument/completion failed.

Open kevinsullivan opened this issue 7 years ago • 4 comments

As I'm working along on a few pretty simple Dafny files in the VS Code extension, I repeatedly get the following error. I am posting here to document the issue, and will update this issue as I gain insight into the conditions that lead to this error.

OS = OSX High Sierra (10.13) Plugin version = 0.10.10 Dafny version = Hard to tell, no obvious -version compiler option, but current as of January 2018

[Error - 13:14:26] Request textDocument/completion failed. Message: Request textDocument/completion failed with message: Cannot read property 'getText' of undefined Code: -32603

kevinsullivan avatar Jan 31 '18 18:01 kevinsullivan

also getting this error. actual result: UI shows my dafny code being verified without errors when errors are certainly present (as verified on rise4fun). expected: verification fails and errors, failures shown because dafny code has bugs

OS = OSX Sierra (10.12) Plugin version = 0.11.1 VS Code v 1.23.1

[Error - 14:17:37] Request textDocument/definition failed. Message: Request textDocument/definition failed with message: Cannot read property 'then' of null Code: -32603

as an aside, I ran this on another machine which is running OSX High Sierra and I didn't have this bug.

bxie avatar May 25 '18 21:05 bxie

I had no problem with the extension until I killed DafnyServer once, then I ran into this. Code actions are also gone.

hexchain avatar Jan 10 '19 16:01 hexchain

@kevinsullivan @bxie @sorawee @hexchain Could you check if you still experience this bug in the current release (0.17.0)? The problem was probably fixed in 0e499bf3b86424204ee6eb9e18dbd020a22ad9ae.

fabianhauser avatar Apr 05 '19 13:04 fabianhauser

Unfortunately yes, I still experience this bug.

hexchain avatar Apr 05 '19 20:04 hexchain