cider

daveliepmann 2025-03-25T18:01:16.151069Z

Jump-to-definition when running CIDER in a (local) Docker container: is there a way to get this to work? I see some old threads with either no solution or the recommendation to add a volume mapping to the .m2 directory and project source. I tried this, the volume mapping seems to work but CIDER jump-to-definition still does not work.

oyakushev 2025-03-25T18:13:53.100229Z

Have you tried this? https://docs.cider.mx/cider/config/basic_config.html#translate-file-paths

dpsutton 2025-03-25T18:25:14.218929Z

i wrote this. turn on the nrepl traffic logging and you should see the paths it expects to find them mounted in the docker image and you just swap a prefix to your local dev setup. Fundamentally it’s like /code/src/foo/bar.clj and you just swap /code for /Users/daveliepman/work/projects/library/ and it works for you

daveliepmann 2025-03-25T18:27:33.588359Z

I had not seen that, thank you both

👍 1
daveliepmann 2025-03-26T18:43:28.694719Z

After emacs played hard to get (silently ignoring .dir-locals.el on the grounds of the variables being unsafe), this works a treat. Thanks again for the quick response and solid docs.

❤️ 1