Shopify / ruby-lsp

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

ASDF fails to start when using legacy_version_file #2048

Closed wjohnstondrip closed 1 day ago

wjohnstondrip commented 2 weeks ago

Description

Reproduction steps

  1. Add legacy_version_file = yes to your .asdfrc file.
  2. Add a .ruby-version file in your ruby project.
  3. Open VS Code with ruby-lsp.
  4. See the following error:
Screenshot 2024-05-14 at 3 43 34 PM

If you switch to .tool-versions from .ruby-version, everything starts correctly.

I'm using macOS 14.4.1 on an M1 MacBook Pro with ASDF v0.14.0. I've seen this issue with a all versions of Ruby, but the particular app I just tested is Ruby 3.2.2.

VS Code info:

Version: 1.89.1
Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685
Date: 2024-05-07T05:14:32.757Z (1 wk ago)
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.4.0

Thank you so much for this awesome tool! I'll do my best to help debug however I can.