Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vs code: asdf environment variables ignored #2023

Closed
gi opened this issue May 8, 2024 · 0 comments · Fixed by #2006
Closed

vs code: asdf environment variables ignored #2023

gi opened this issue May 8, 2024 · 0 comments · Fixed by #2006
Labels
bug Something isn't working

Comments

@gi
Copy link

gi commented May 8, 2024

Description

VS Code Ruby LSP

The extension detects asdf but fails when searching for the data directory.

The code does not appear to use the asdf environment variables:

  • ASDF_DIR
  • ASDF_DATA_DIR

Instead, it attempts to detect those values by looking at predetermined locations. This fails when a those values are set to alternative locations.

Reproduction steps

  1. set ASDF_DATA_DIR to ~/asdf-data
  2. install/setup asdf to that location (see docs)
  3. Open VS Code
  4. Open a Ruby file
  5. See error:
Automatic Ruby environment activation with asdf failed:
Could not find ASDF data dir. Searched in
file:///Users/zach.gianos/.asdf, 
file:///opt/asdf-vm, 
file:///opt/homebrew/opt/asdf/libexec, 
file:///usr/local/opt/asdf/libexec

Note

A recent update broke this customization of the asdf setup.

I presume that it was this commit: 30bc0001.

I'm simply comparing the timeframe of the commit and the functionality change. (I use Ruby LSP every day.)

@gi gi added the bug Something isn't working label May 8, 2024
@gi gi changed the title asdf environment variables ignored vs code: asdf environment variables ignored May 9, 2024
@andyw8 andyw8 removed their assignment May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants