Having to specify bundle exec twice

Open
#1,102 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby
Domain
devtools

Research direction

Start by reproducing the two commands shown in the issue: rdbg with one bundle exec and with bundle exec repeated. Compare their behavior and use the failure output to trace command loading; done means the first command runs the specified RSpec file without requiring a duplicated bundle exec.

Written by the indexing model from the issue text.

Description

I'm trying to run

rdbg -c -- bundle exec rspec <Path to rspec file>

but I keep getting this error
bundler: failed to load command: rspec
Prepending bundle exec to your command may solve this. (Gem::LoadError)
Screenshot 2024-05-15 at 3 56 53 PM

The weird thing is that when I enter the following command it works

rdbg -c -- bundle exec bundle exec rspec <Path to rspec file>

Any insight is appreciated!

Dominant language
Ruby
Stars
1.3k
Forks
146
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruby/debug

All issues in ruby/debug

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.