Skip to content
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

Path mapping between host and remote environment possible? #723

Open
chriscz opened this issue Jul 31, 2024 · 0 comments
Open

Path mapping between host and remote environment possible? #723

chriscz opened this issue Jul 31, 2024 · 0 comments

Comments

@chriscz
Copy link

chriscz commented Jul 31, 2024

I have an odd setup in a few of my rails projects. Certain commands like rails, bundle, rubocop etc have thin wrappers that execute them inside of an active docker image instead of directly on the host.

I want to run solargraph within the docker image too and even though communication works fine over solargraph stdio, I am experiencing a problem where files aren't found because the path to the files inside of the docker image are different from outside.

I could rectify this with a symlink inside of the docker, but I was wondering whether there is any facility to do remapping at the level of solargraph?

So for example outside of docker

/home/user/projects/system/app/models/booking.rb

And within docker

/app/app/models/booking.rb

I use neovim with it's LSP implementation, but I didn't find any documentation on mapping file paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant