Shopify / ruby-lsp

An opinionated language server for Ruby
https://shopify.github.io/ruby-lsp/
MIT License
1.33k stars 118 forks source link

Prevent debugger from printing to STDOUT #1968

Closed vinistock closed 3 weeks ago

vinistock commented 3 weeks ago

Motivation

The debugger and IRB sometimes print to stdout, which breaks the LSP communication with editors. We should prevent it from printing anything while we require the debugger.

Implementation

Started redirecting stdout to stderr until we finish requiring the debugger.