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
[Bug] App::Link breaks when opening a Symlinked FCStd #7596
Comments
And maybe, iterate since multi-symlink levels may exist. |
I seem to recall an pre-existing issue regarding symlinks....brb Edit: indeed the original issue (#5592) is now closed. It was closed in #7034 by @FlachyJoe |
This is not a [Bug] but the very nature of symlinks. If the user needs the linked (as per App::Link I guess) file to open correctly he has to symlink the linked file into the same folder. This issue should be closed |
No, this is a bug. When you symlink a file, and since Freecad does not adjust paths internally, Freecad should open the target instead. This behavior would solve anything. |
@FlachyJoe care to weigh-in ? |
CC @FlachyJoe |
@luzpaz this issue is about App::Links in a symlinked file. I can't see relation with save problem in junction. |
@leoheck just out of curiousity, does realthunder's branch address this issue ? |
Sorry @luzpaz I have never used this branch. Unfortunately, I can't answer this. |
@realthunder do you have a moment to weigh-in on this ? (specifically since you were involved with App::Link code) |
I tend to agree with zolko that this does not seem like a bug. |
Added PathResolveMode in PropertyXLink to define four mode of path resolve. * Dynamic (default). Resolve the path realtive to the current file path of the owner document. In case the file cannot be found, fallback by searching through any symlinks inside owner document path. * Relative. Resolve the path relative to the file path of the owner documents without fallback * RelativeCanonical. Resolve the path relative to the canoncal path (i.e. the true location) of the owner document. * Absolute. Save and load from the absoluate path of the linked file. * Canonical. Save and load from the canonical path of the linked file. Closes FreeCAD#7596
Anyone able to test realthunder's PR ? |
others also share the view that is no real bug but normal behavior with symlinks: |
Is there an existing issue for this?
Forums discussion
https://forum.freecadweb.org/viewtopic.php?f=3&t=72491#p632344
Version
0.21 (Development)
Full version info
Subproject(s) affected?
No response
Issue description
When a Symlinked file is opened with Freecad, if it is not in the same folder with it's target (which is most of the time the case) the links to the linked files inside the file doesn't work anymore, since they are not relative to the path of the symlink.
A simple solution would follow the symbolic link to open the actual file, instead, when the given file is a symlink.
Anything else?
Discussion started here Zolko-123/FreeCAD_Assembly4#370 (comment)
Code of Conduct
The text was updated successfully, but these errors were encountered: