-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 "An error occurred while installing" does not have clean command #3321
Comments
I think we should definitely improve this 👍. If |
Hello @deivid-rodriguez , I'm looking forwards to start contributing to rubygems and would love to get started with this issue :) |
Hello @vinicius0197, please go ahead! 👍 |
@deivid-rodriguez Took a long time to start working on this, but I've been digging on the codebase lately and found that those error messages are generated by the As the |
Hi @vinicius0197! I was recently thinking that I'm not sure printing this command is helpful. Even if we fix this issue, it's a different command possibly run on a different context, so we will never be able to guarantee that the command will led to the same error. And even if it was correct, it's just going to print the same error than I think I would remove this recommendation altogether, as long as it's still clear which gem failed to install and the error that was raised. Not sure what others think. |
@deivid-rodriguez Hm, got it. So we would omit the |
Yes, in my option we should omit that message from the output, and also print the backtrace unconditionally by removing the
@simi How do you feel about that? |
@deivid-rodriguez All right. To conform with the contributing guideline, I'm trying to write some tests for my changes, but I'm still a bit confused about how tests work on the RubyGems repo. How would I go about running a single test file on |
Hei @vinicius0197, right now you need to switch to the |
I ran the command
bundle install --path vendor/bundle
and somewhere inside it had an error.Then Bundler helpfully isolated the package that was failing:
However the copy-paste command
gem install http_parser.rb -v '0.6.0' --source 'https://rubygems.org/'
will install in a different way (requiringsudo
) than Bundler was using (from--path vendor/bundle
).This error message could be improved if Bundler will output a more comparable command to what it was actually attempting to run.
The text was updated successfully, but these errors were encountered: