Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

File system loop detected #83

Open
ghost opened this issue Jun 6, 2021 · 5 comments
Open

File system loop detected #83

ghost opened this issue Jun 6, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jun 6, 2021

Hi, it's a bit hard to tell if this an issue with kakoune.cr or here but I think there is at least something strange going with plug.kak. I think there are actually two problems but they both appeared today after nothing for a few months. The *debug* buffer says this everytime I open kakoune:

Error: plug.kak: can't require 'kak' module to declare highlighters for plug.kak. Check if kakrc.kak is available in your autoload.
shell stderr: <<<
find: File system loop detected; ‘/home/uver/.config/kak/plugins/plug.kak/..//kakoune.cr/lib/fifo/lib’ is part of the same file system loop as ‘/home/uver/.config/kak/plugins/plug.kak/..//kakoune.cr/lib’.
find: File system loop detected; ‘/home/uver/.config/kak/plugins/plug.kak/..//kakoune.cr/lib/rsub/lib’ is part of the same file system loop as ‘/home/uver/.config/kak/plugins/plug.kak/..//kakoune.cr/lib’.
>>>

Like I mentioned, I think the first thing seems separate. Why would you need a kakrc in the autoload directory? As for the second and third messages, I popped open nnn on those directories and they keep opening infinitely. Maybe not a plug.kak issue but I'm not sure so was curious if anyone could offer some ideas.

Thank you so much.

@andreyorst
Copy link
Owner

andreyorst commented Jun 7, 2021 via email

@ghost
Copy link
Author

ghost commented Jun 7, 2021

Thanks for the response!

plug.kak was created specifically to avoid using autoload

Ok that makes sense. Where would you recommend I store the broken-up parts of my config? Maybe $kak_config/scripts or something and then use plug.kak to source those?

As for the filesystem loop... I'm not sure what'd caused it.

I tried reinstalling kakoune.cr both from plug.kak and my package manager several times last night and that error stayed there but it went away this afternoon when I deleted and installed it for the third time ¯\_(ツ)_/¯

Can you upload your kakrc somewhere so I could reproduce it?

Absolutely: https://github.com/2ver/dotfiles/tree/main/.config/kak

Also try to see if previous version tag handles this without errors

I don't use ever use the tag feature but something like plug "andreyorst/plug.kak" tag "f1c4f35" noload should work right? I tried it and nothing changed (before I fixed it by reinstalling).

I've rewritten a lot of parts of plug.kak recently.

Thank you :)

@andreyorst
Copy link
Owner

Where would you recommend I store the broken-up parts of my config?

I do it like this:

evaluate-commands %sh{
    config_files="
        commands.kak
        common.kak
        recentf.kak
        plugins.kak
    "

    for file in $config_files; do
        printf "%s" "
            try %{
                source %{${kak_config:?}/$file}
            } catch %{
                echo -debug %val{error}
            }
        "
    done
}

This is all I have in kakrc. Everything else is in these files. This has a benefit of being able to easily select what files I want to load, but has a burden of adding these filenames manually to the list.

plug "andreyorst/plug.kak" tag "f1c4f35" noload

Yes, it should work, but it would be better to go into plug.kak directory and do this manually, because when plug command is available, the plug.kak itself is already loaded, so doing it this way requires double restart after you've modified the kakrc

but it went away this afternoon when I deleted and installed it for the third time ¯_(ツ)_/¯

Have you been experiencing this error since?

@ghost
Copy link
Author

ghost commented Jun 22, 2021

I do it like this

Great! I reorganized my config using that.

Yes, it should work, but it would be better to go into plug.kak directory and do this manually, because when plug command is available, the plug.kak itself is already loaded, so doing it this way requires double restart after you've modified the kakrc

I tried figuring that out but I wasn't really sure what to edit once I got in the plug.kak directory so I just added the line back and double restarted.

Have you been experiencing this error since?

Unfortunately, yes. It actually did go away for a while but, now that you replied, I looked and saw the error there again (with and without the previous tag).

shell stderr: <<<
find: File system loop detected; ‘/home/uver/.config/kak/plugins/plug.kak/..//kakoune.cr/lib/fifo/lib’ is part of the same file system loop as ‘/home/uver/.config/kak/plugins/plug.kak/..//kakoune.cr/lib’.
find: File system loop detected; ‘/home/uver/.config/kak/plugins/plug.kak/..//kakoune.cr/lib/rsub/lib’ is part of the same file system loop as ‘/home/uver/.config/kak/plugins/plug.kak/..//kakoune.cr/lib’.
>>>

It doesn't seem to be affecting anything but it's just weird.

@andreyorst
Copy link
Owner

OK, I'll try to debug this in near future

@andreyorst andreyorst added the bug Something isn't working label Jun 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant