VS Code Ruby-LSP

VS Code ruby addon likes to create a .ruby-lsp folder and then fucks around with Bundler config to force things running out of there, which breaks my existing checkouts every so often.

Symptoms:

1
2
3
4
5
6
7
8
❯ bundle config
...
gemfile
Set via BUNDLE_GEMFILE: "/Users/jamiemacey/code/eft3-m1/.ruby-lsp/Gemfile"


❯ env | grep BUNDLE_GEMFILE
[no output, so no idea where this actually comes from]

Remedy:

1
❯ export BUNDLE_GEMFILE=./Gemfile

(Or, I’ve also had success not being locked in on my current shell, and just quitting/restarting it).