-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Working with symlinked src subfolders #2505
Comments
This is not the "problem". Could you please describe your problem step by step with that example project?
This could be, but I cannot see all potential negative implications, nor I clearly see your use case. Because
How can that be disabled? Is there a variable? If so then maybe Sesman can respect that and don't resolve symlinks? Or maybe there could be a sesman variable to control that which could be set in project level dir-locals. Would that help in your case? |
A:
B:
Sounds reasonable. But
This also may be needed since I'm not sure that Quality of life improvements:
If I simply Probably the best solution is to save both "real" and "symlinked" file paths of all project files during But you'll also have to watch for new symlinks... 🤔 |
Also there is So far the requirements for preserving symlinks are:
|
Thanks @JAremko for figuring all this out. The situation is a bit crazy because the default setting of I think that your PR is the best option so far. Setting |
https://github.com/emacs-mirror/emacs/blob/emacs-26/lisp/vc/vc-hooks.el#L834 |
Fix for #2433 introduced a problem for projects with structure like this - when src folder contains symlinked sub-folders.
The idea behind it is using
project.clj
fromdevelopmen
parent dir for development (basically like a:dev
profile). You can read why they're doing it here https://polylith.gitbook.io/polylith/The problem is that
sesman--expand-path
usesfile-truename
that resolves symlinks into real paths so when youjack-in
while in a buffer with a symlinked path you'll get "No linked CIDER sessions". Replacingfile-truename
withexpand-file-name
insesman--expand-path
solves the problem (don't forget about cache when testing)The secondary issue is that
find-file
also resolves symlinks when the folder is under version control. It can be disabled but maybe Cider can do something smarter about it? Like attaching the same REPL to both "real" and "symlinked" file paths when youjack-in
from a directory that contains symlinks? For example when you visit this file andjack-in
in its buffer.@vspinu
The text was updated successfully, but these errors were encountered: