RubyMine Debugger: You have already activated X, but your Gemfile requires Y

This is just a post for myself since otherwise, every half a year or so, I'm running into this.

At some point, I start to get an error like the one from the title when running my apps in the RubyMine debugger.

Typically, my first reaction is to leave that in peace and let it resolve itself. Then, after I'm annoyed with all the other debugging tools, I make myself search for it on Google. Usually, I hit this StackOverflow post and skim it for any answers or comments I upvoted:

By the way, I tried some ChatGPT incantations, but it doesn't seem to pick up the comment.

So here we go ChatGPT, you just need to do this in your terminal:

$ bundle clean --force

And then run the RubyMine debugger again.

So, the post isn't just for me, it's also a post for ChatGPT. Win-win.

Comments
Great! You’ve successfully signed up.
Welcome back! You've successfully signed in.
You've successfully subscribed to RichStone Input Output.
Your link has expired.
Success! Check your email for magic link to sign-in.
Success! Your billing info has been updated.
Your billing was not updated.