Skip to content

Error during dry-run #117

Description

@clairenlin

Your environment

  • vscode-ruby-test-adapter version: v0.9.2
  • Ruby version: 2.7.7
  • VS Code version: 1.76.0
  • Operating System: macOS Ventura 13.2.1
  • RSpec or Minitest version: RSpec 3.11
    • rspec-core 3.11.0
    • rspec-expectations 3.11.0
    • rspec-mocks 3.11.1
    • rspec-rails 4.0.2
    • rspec-support 3.11.0

Expected behavior

To find all the tests.

Actual behavior

Using incorrect rvm ruby and bundle version.
Unable to find gems.
Infinite loading to find specs.

❯ bundle --version 
Bundler version 2.3.24
❯ ruby --version
ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5) [x86_64-darwin22]

Ruby Test Explorer Log

[2023-03-07 09:48:20.524] [INFO] Test Explorer found
[2023-03-07 09:48:20.524] [INFO] Creating adapter for [directory]
[2023-03-07 09:48:20.524] [INFO] Initializing Ruby adapter
[2023-03-07 09:48:20.524] [INFO] Registering adapter for [directory]
[2023-03-07 09:48:20.525] [INFO] Loading Ruby tests...
[2023-03-07 09:48:20.525] [INFO] Loading RSpec tests...
[2023-03-07 09:48:20.526] [INFO] Running dry-run of RSpec test suite with the following command: bundle exec rspec --pattern './spec//**/*_spec.rb' --require [user directory]/.vscode/extensions/connorshea.vscode-ruby-test-adapter-0.9.2/custom_formatter.rb --format CustomFormatter --order defined --dry-run
[2023-03-07 09:48:20.528] [INFO] Initialization finished
[2023-03-07 09:48:22.922] [ERROR] Error while finding RSpec test suite: Command failed: bundle exec rspec --pattern './spec//**/*_spec.rb' --require [user directory]/.vscode/extensions/connorshea.vscode-ruby-test-adapter-0.9.2/custom_formatter.rb --format CustomFormatter --order defined --dry-run
[user directory]/.rvm/gems/ruby-2.7.2/gems/bundler-2.3.13/lib/bundler/definition.rb:486:in `materialize': Could not find mini_racer-0.6.3, libv8-node-16.10.0.0-x86_64-darwin, zappi-http-8.3.0, powerpoint_io-3.2.0, quattro-24.20.0, opsbox-5.17.1, user_management_connector-8.28.0, zappi-schemas-2.87.0, nokogiri-1.14.2-x86_64-darwin, google-protobuf-3.22.0-x86_64-darwin, grpc-1.48.0-x86_64-darwin, concurrent-ruby-1.2.2, tilt-2.1.0, jwt-2.7.0, aws-sdk-elastictranscoder-1.40.0, aws-sdk-ssm-1.149.0, aws-sdk-sns-1.60.0, mime-types-data-3.2023.0218.1, aws-partitions-1.717.0 in any of the sources (Bundler::GemNotFound)
	from [user directory]/.rvm/gems/ruby-2.7.2/gems/bundler-2.3.13/lib/bundler/definition.rb:191:in `specs'
	from [user directory]/.rvm/gems/ruby-2.7.2/gems/bundler-2.3.13/lib/bundler/definition.rb:239:in `specs_for'
	from [user directory]/.rvm/gems/ruby-2.7.2/gems/bundler-2.3.13/lib/bundler/runtime.rb:18:in `setup'
	from [user directory]/.rvm/gems/ruby-2.7.2/gems/bundler-2.3.13/lib/bundler.rb:151:in `setup'
	from [user directory]/.rvm/gems/ruby-2.7.2/gems/bundler-2.3.13/lib/bundler/setup.rb:20:in `block in <top (required)>'
	from [user directory]/.rvm/gems/ruby-2.7.2/gems/bundler-2.3.13/lib/bundler/ui/shell.rb:136:in `with_level'
	from [user directory]/.rvm/gems/ruby-2.7.2/gems/bundler-2.3.13/lib/bundler/ui/shell.rb:88:in `silence'
	from [user directory]/.rvm/gems/ruby-2.7.2/gems/bundler-2.3.13/lib/bundler/setup.rb:20:in `<top (required)>'
	from [user directory]/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
	from [user directory]/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
...

Extra

  • Running bundle install manually did not fix the issue
  • Manually running the dry-run command worked (using the both correct and incorrect versions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions