You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a gem in a directory with a space: mkdir 'some directory' && cd 'some directory' && bundle gem my_gem'
Ensure gems are installed within the directory: bundle config set --local path tmp/vendor/bundle
Add RSpec as a dependency
Open the Gem with VSCode
Add an RSpec test
Execute the test
It will fail to execute
Code snippet or error message
Running tests with command:
"bundle exec ruby -r$HOME/some directory/my_gem/tmp/vendor/bundle/ruby/4.0.0/gems/ruby-lsp-0.26.11/lib/ruby_lsp/test_reporters/minitest_reporter.rb -r$HOME/some directory/my_gem/tmp/vendor/bundle/ruby/4.0.0/gems/ruby-lsp-0.26.11/lib/ruby_lsp/test_reporters/test_unit_reporter.rb -Ispec $HOME/some\ directory/my_gem/spec/my_gem/json_analyzer_spec.rb --name "/^MyGem#testing\$/""
$HOME/.rbenv/versions/4.0.7/bin/ruby: No such file or directory -- directory/my_gem/tmp/vendor/bundle/ruby/4.0.0/gems/ruby-lsp-0.26.11/lib/ruby_lsp/test_reporters/minitest_reporter.rb (LoadError)
Test run cancelled.
Note the error message: No such file or directory -- directory/my_gem/... it means the actual issue is a space on the gem search path rather than a space on the gem itself.
Activity