docker-ruby-boilerplate icon indicating copy to clipboard operation
docker-ruby-boilerplate copied to clipboard

Investigate gem source code

Open adamniedzielski opened this issue 3 years ago • 1 comments

Hey @amrabdelwahab, I hope that you're doing well!

I've been using your approach for a while now in different projects. Thank you for showing it! I also applied some smaller tweaks to it. One thing I'm struggling with is investigating the source code of gems.

In the past I could do:

bundle show jekyll

and then open the directory with my Sublime Text code editor.

I can't find a way to do it now. The gem source code is in the Docker volume which you called bundle. I can see the path when I'm inside the container, but I can't run Sublime Text there. I have Sublime Text on the host, but I can't find the path to the directory with the gems there.

I went as far as: Screenshot 2022-03-07 at 05 13 14

This is a premium feature of Docker Desktop on Mac. And yet, it requires you to save the directories which is not as convenient as what I had in the past.

Have you run into a similar problem? Do you have an idea how to improve that?

adamniedzielski avatar Mar 07 '22 04:03 adamniedzielski

Hey Adam, Thanks a lot for your awesome issue. I will take some time to investigate a better idea for this. What I personally usually did in the past was that in case I needed that I would just view the source code in GIthub and if I needed to add a break point or so I would then use vim from within the docker container.

However, I am almost certain there is a smart way somewhere to get it to work with bundle open and your host machine's editor. Let me play around with it for a couple of weeks

amrabdelwahab avatar Mar 20 '22 15:03 amrabdelwahab