Open demccormack opened 10 months ago
IMO the right solution to solve this problem is to properly configure your Rails app for Spring: https://github.com/rails/spring/issues/598#issuecomment-554030462 This workaround may help too: https://github.com/rails/spring/issues/598#issuecomment-1268885973
Great work with this! I'd love to get it working fully for my project in VS Code.
My project uses
spring
to reload the development environment on code changes. When I use the CodeLens Run or Run in Terminal commands, they fail like this:but I can make the same command work in my terminal by putting an environment variable at the start:
This is a workaround I picked up from other projects, e.g. https://github.com/ruby-debug/ruby-debug-ide/issues/152#issuecomment-432741366
Is there a way to customise the command this gem uses to run RSpec?