Solargraph: How does this align with Ruby 3.0?

Created on 30 Sep 2020  路  2Comments  路  Source: castwide/solargraph

Most helpful comment

Small update: I confirmed that Solargraph passes smoke tests under Ruby 3.0.0-preview1. The specs succeed and the language server worked as expected in a short test with VS Code.

All 2 comments

I haven't tested with Ruby 3 yet, but here are a few considerations for the future:

  • RBS support is on the roadmap. The specifics are still up for debate. More information: https://github.com/castwide/solargraph/issues/194#issuecomment-671910723
  • Parallel execution is liable to be extremely beneficial to performance. One example: when the server is loading a workspace, parsing each individual file is an orthogonal operation. Spreading those processes across multiple cores should make initialization significantly faster. It looks like this will be possible in Ruby 3 with Ractors (which seem to have replaced the previous proposal of Guilds).
  • Some of the language changes will require explicit support, but from what I've seen, many of the new features will be limited to changes in how Solargraph::Parser handles ASTs.

Small update: I confirmed that Solargraph passes smoke tests under Ruby 3.0.0-preview1. The specs succeed and the language server worked as expected in a short test with VS Code.

Was this page helpful?
0 / 5 - 0 ratings