castwide / solargraph

A Ruby language server.
https://solargraph.org
MIT License
1.89k stars 158 forks source link

New release 0.44.1 has introduced an UnhandledRejection error #505

Closed albertoleal closed 2 years ago

albertoleal commented 2 years ago

After upgrading to the latest version, whenever I open a ruby file on nvim I receive the following error:

[coc.nvim]: UnhandledRejection: Cannot call write after a stream was destroyed
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
    at doWrite (_stream_writable.js:399:19)
    at writeOrBuffer (_stream_writable.js:387:5)
    at Socket.Writable.write (_stream_writable.js:318:11)
    at /Users/aleal/.local/share/nvim/site/pack/packer/start/coc.nvim/build/index.js:35:3107
    at new Promise (<anonymous>)
    at DF.write (/Users/aleal/.local/share/nvim/site/pack/packer/start/coc.nvim/build/index.js:35:3028)
    at QS.doWrite (/Users/aleal/.local/share/nvim/site/pack/packer/start/coc.nvim/build/index.js:36:1698)
    at /Users/aleal/.local/share/nvim/site/pack/packer/start/coc.nvim/build/index.js:36:1597

I downgraded to the previous version, v0.44.0, and the error disappeared.

castwide commented 2 years ago

Does the error still happen with v0.44.2? If so, is there any way you can get a log from the Solargraph server process?

albertoleal commented 2 years ago

@castwide It works great on v0.44.2! Thanks for that :)