Skip to content

Conversation

@a5ob7r
Copy link
Contributor

@a5ob7r a5ob7r commented Mar 20, 2022

Previous fern.vim can't list file entries containing even one self-referenced symlink because a find command invoked in the background emits an error such as Too many levels of symbolic links by the -follow option. The option tries to dereference symlinks in listing files. But we only need to dereference symlinks on the command line, but not dereference symlinks in listing files. So we should use the -H option, which doesn't dereference symlinks except on the command line, instead of the -follow option.

This problem happens on Linux, but not macOS. The find command installed in macOS by default doesn't emit errors in the situation above.

Fixes #384.

@lambdalisue
Copy link
Owner

Thanks for your contribution. I'll merge it after CI success 👍

Previous fern.vim can't list file entries containing even one
self-referenced symlink because a `find` command invoked in the
background emits an error such as `Too many levels of symbolic links` by
the `-follow` option. The option tries to dereference symlinks in
listing files. But we only need to dereference symlinks on the command
line, but not dereference symlinks in listing files. So we should use
the `-H` option, which doesn't dereference symlinks except on the
command line, instead of the `-follow` option.

This problem happens on Linux, but not macOS. The `find` command
installed in macOS by default doesn't emit errors in the situation
above.
@a5ob7r a5ob7r force-pushed the fix_list_self_ref_link branch from 65f4ff4 to 8d2c3c6 Compare March 21, 2022 12:43
@a5ob7r
Copy link
Contributor Author

a5ob7r commented Mar 21, 2022

@lambdalisue I did rebase to the current master. Could you approve to run GHA workflows again?

@a5ob7r
Copy link
Contributor Author

a5ob7r commented Mar 22, 2022

@lambdalisue Thank you for your reapprove.

@a5ob7r
Copy link
Contributor Author

a5ob7r commented Mar 22, 2022

@lambdalisue Hmm, a CI job is failed, and the error step is a vim building. I think the step probably be not directly related to this patch. Similar errors can be found in some old jobs. Does this error sometimes happens? And what should I do to resolve this?

This is a job where a similar error happened.
https://github.com/lambdalisue/fern.vim/runs/5164916849?check_suite_focus=true

@lambdalisue lambdalisue merged commit 45950d3 into lambdalisue:master Mar 24, 2022
@a5ob7r
Copy link
Contributor Author

a5ob7r commented Mar 25, 2022

Thank you!

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

Successfully merging this pull request may close these issues.

Fails to show the list with broken self-linked symlink

2 participants