Docker Compose service as remote interpreter can't install debugger gems (debase)
I found a related[1] issue but does not match what I'm facing now.
Everytime I try to issue a docker-compose build, I receive the following error:

But when I use without remote interpreter, it works! What is strange is where the gem is located, I couldn't find it on public registries. Is it private? When I type bundle info debase, the following is returned:
* debase (2.3.0)
Summary: debase is a fast implementation of the standard Ruby debugger debug.rb for Ruby 2.0
Homepage: https://github.com/JetBrains/debase
Path: /Users/willianantunes/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/debase-2.3.0
The Homepage does not exist which is kinda strange cause the official GitHub repository has this commit.
How can I solve it? I'm using RubyMine 2020.2.2. I already use remote interpreter with PyCharm btw.
You can access my public repository here to get insights.
Please sign in to leave a comment.
Hello Willian,
could you please specify whether you're using the same project with local and remote SDKs? The version in the error message is available for a local Ruby SDK but not a Docker based one.
Hi Olga Kuvardina,
First I started the project using local SDK and then I moved to Docker based one, which didn't work at first.
My Gemfile.lock had a specific debase version which couldn't be find in public registries. So I deleted this lock file and generated a new one through the container (see how you can do it here). The new generated lock file now has a diferent debase version (why is that?!) which is the one available on the registry.
I can develop now using remote interpreter but I got errors all the time and it is not as smooth as it's on PyCharm. Terrible user experience.
I'm seeing a very similar issue trying to install my gems on CircleCI with `ruby-debug-ide` and `debase` in my Gemfile. The versions are set to `2.3.0` for each in `Gemfile.lock` but on CI I see the following error:
Fetching gem metadata from https://rubygems.org/......... Your bundle is locked to debase (2.3.0), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of debase (2.3.0) has removed it. You'll need to update your bundle to a version other than debase (2.3.0) that hasn't been removed in order to install.David Daniell, if you're trying to install debugger gems via bundler then you need to use another versions because 2.3.0 isn't available on rubygems: https://rubygems.org/gems/debase/versions