Open RyanVerhey opened 1 year ago
I ran into the same issue with the same configuration. Turns out that another rspec related extension was the cause - I also had https://github.com/DouglasRochaT/spec-utils installed and enabled. Deactivating this extension fixed it for me. (Your mileage may vary)
Your environment
vscode-ruby-test-adapter
version: v0.9.2Expected behavior
Extension would use appropriate ruby executable
Actual behavior
I am using asdf as a version manager for Ruby. In my Rails directory, I have both a
.ruby-version
and a.tool-versions
file.which ruby
in my terminal outputs/Users/[redacted]/.asdf/shims/ruby
. However, when the extension loads, it uses the system Ruby:Strangely, my exact configuration was working a couple of weeks ago, but isn't today. It's almost as if VSCode started using a different shell, as I'm also having issues running Rails in the Debug pane when it worked fine a couple of weeks ago.
I tried using the minitest command
rake
and I got a different, but similar error:I am using zsh, and the default terminal profile for VSCode also uses zsh