mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.3k stars 186 forks source link

Error detected while processing function <SNR>45_on_vimenter[5]..startify#insane_in_the_membrane[81]. 16: E655: Too many symbolic links (cycle?) #490

Closed rambhosale closed 3 years ago

rambhosale commented 3 years ago

I started getting this error after manually deleting a session file

I did try deleting the session folder and saving the session, and even tried reinstalling the plugin But still can't get rid of this error

using Neovim nightly

NVIM v0.5.0-dev+1302-g8a93d1028
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/nvim/parts/nvim/build/build/config -I/build/nvim/parts/nvim/build/src -I/build/nvim/parts/nvim/build/.deps/usr/include -I/usr/include -I/build/nvim/parts/nvim/build/build/src/nvim/auto -I/build/nvim/parts/nvim/build/build/include
Compiled by root@lcy01-amd64-014

Here is my configuration (in Lua)

vim.g.startify_lists = {
    {
        type = "dir",
        header = {"   Files " .. vim.fn.getcwd()}
    },
    {
        type = "sessions",
        header = {"   Sessions"}
    },
    {
        type = "files",
        header = {"   Files"}
    },
    {
        type = "bookmarks",
        header = {"   Bookmarks"}
    },
    {
        type = "commands",
        header = {"   Commands"}
    }
}
mhinz commented 3 years ago

Can you paste the complete error in here? I'm missing the line number. (You can use :messages to see all recent messages.)

rambhosale commented 3 years ago
Error detected while processing function <SNR>46_on_vimenter[5]..startify#insane_in_the_membrane[81]..<SNR>64_show_lists[12]..<SNR>64_show_dir[1]..<SNR>64_display_by_path[1]..<SNR>64_filter_oldfiles:
line   16:
E655: Too many symbolic links (cycle?)
mhinz commented 3 years ago

And this happens when you just do :Startify?

rambhosale commented 3 years ago

I get the above error while entering vim and following when I run :Startify

Error detected while processing function startify#insane_in_the_membrane:
line   20: 
mhinz commented 3 years ago

Is any part of the path ~/.local/share/nvim/session a symlink?

rambhosale commented 3 years ago

No, it isn't

mhinz commented 3 years ago

Well, I think one of your recently used files (:oldfiles) has a path with a symlink loop.

Let me add some code to output a warning and skip that file instead of throwing an error.

rambhosale commented 3 years ago

I tried renaming ~/.local/share/nvim to nvim_2 and did a re-install of Packer and other plugins solved this issue Thanks for narrowing down the issue and help me solve this, and for taking out your time to solve this issue.

mhinz commented 3 years ago

You're welcome. :)