Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during dry-run #117

Open
clairenlin opened this issue Mar 7, 2023 · 0 comments
Open

Error during dry-run #117

clairenlin opened this issue Mar 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@clairenlin
Copy link

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)
@clairenlin clairenlin added the bug Something isn't working label Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant