question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Connection got disposed

See original GitHub issue

I have reformat on save set, and whenever I saved a file I get the following error:

[Error - 10:07:00 PM] Request textDocument/formatting failed.
Error: Connection got disposed.
	at Object.dispose (/home/shulhi/.vscode/extensions/freebroccolo.reasonml-1.0.14/node_modules/vscode-jsonrpc/lib/main.js:825:25)
	at Object.dispose (/home/shulhi/.vscode/extensions/freebroccolo.reasonml-1.0.14/node_modules/vscode-languageclient/lib/client.js:57:35)
	at LanguageClient.handleConnectionClosed (/home/shulhi/.vscode/extensions/freebroccolo.reasonml-1.0.14/node_modules/vscode-languageclient/lib/client.js:1864:38)
	at LanguageClient.handleConnectionClosed (/home/shulhi/.vscode/extensions/freebroccolo.reasonml-1.0.14/node_modules/vscode-languageclient/lib/main.js:106:15)
	at closeHandler (/home/shulhi/.vscode/extensions/freebroccolo.reasonml-1.0.14/node_modules/vscode-languageclient/lib/client.js:1852:18)
	at CallbackList.invoke (/home/shulhi/.vscode/extensions/freebroccolo.reasonml-1.0.14/node_modules/vscode-jsonrpc/lib/events.js:71:39)
	at Emitter.fire (/home/shulhi/.vscode/extensions/freebroccolo.reasonml-1.0.14/node_modules/vscode-jsonrpc/lib/events.js:135:36)
	at closeHandler (/home/shulhi/.vscode/extensions/freebroccolo.reasonml-1.0.14/node_modules/vscode-jsonrpc/lib/main.js:221:26)
	at CallbackList.invoke (/home/shulhi/.vscode/extensions/freebroccolo.reasonml-1.0.14/node_modules/vscode-jsonrpc/lib/events.js:71:39)
	at Emitter.fire (/home/shulhi/.vscode/extensions/freebroccolo.reasonml-1.0.14/node_modules/vscode-jsonrpc/lib/events.js:135:36)

I am using version 1.0.14

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
ghostcommented, Dec 7, 2017

Formatting on save for OCaml requires having ocp-indent installed (usually via opam). That may be why you are seeing this error. I’m working on providing some better feedback about this in upcoming versions.

0reactions
luisliuchaocommented, Jun 3, 2020

yarn global add reason-cli or npm install -g reason-cli

It will install all missing packages needed for VSC extension

Read more comments on GitHub >

github_iconTop Results From Across the Web

[VS Code] Connection got disposed. · Issue #245 - GitHub
Error : Connection got disposed. Steps to Reproduce: Go trough sign in process for live share using browser to get user code.
Read more >
Language Support for Java(TM) by Red Hat throwing error in ...
I searched in vscode-java and found the similar issue, there's a workaround raised, which is downloading the latest java-*.vsix file and ...
Read more >
Language Server Extension Guide - Visual Studio Code
Learn how to create Language Servers to provide rich language features in Visual Studio Code.
Read more >
[RC9.2]IDE hangs when saving a new sketch - Arduino Forum
dispose (C:\Users\sterretje\Downloads\arduino\arduino-2.0\arduino-ide_2.0.0-rc9.2_Windows_64bit\resources\app\node_modules\vscode-jsonrpc\lib\ ...
Read more >
Unable to use intellisense - language server crashed 5 time in ...
Pending response rejected since connection got disposed Code: -32097 ... I had also searched using the error message text but didn't find ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found