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
resolve() doesn't resolve intermediate symlinks on MS-Windows #4211
Comments
It looks like this can be achieved with GetFinalPathNameByHandle:
GetFinalPathNameByHandle is first available in Windows Vista, but symbolic links were also first available with Windows Vista. |
I mistakenly forgot I updated the original issue text. |
I checkd with removing the part of code. Seems good to me. |
Looking at your PR #3896 again, the tests seem to fail without the check of the attribute: |
This issue is appears again in the last patches, after 1416. |
This issue is tested on master branch. vim/src/testdir/test_functions.vim Lines 368 to 370 in 693f7dc
Maybe, your case is different from this. |
"Signify" plugin stop worked again on windows after patch 1416, developers told me, that the problem is in reparse point or related. |
@zdm Well, first thing would be trying to figure out an exact test case that fails for you. If I remember correctly you are not using reparse points, so I am wondering why you saw those failures. Please try to come up with a minimal reproducible test case and open a new ticket. Thanks. |
:help resolve()
says:resolve()
should resolve all components of the path on MS-Windows like it does on Unix to make plugins more portable.While not necessarily difficult to implement recursive resolve, it's cumbersome for every plugin to support that code.
Looks like dce1e89 (#3896) added the ability to resolve mklink-type links for files, but it doesn't work on folders within the path (but does work if the folder is the final component of the path).
Example failure:
Expected:
Actual:
If I make link to text.txt instead, then resolve() also works as expected:
Expected and Actual:
Environment :
The text was updated successfully, but these errors were encountered: