Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

shmerl
Copy link

@shmerl shmerl commented Sep 5, 2025

Fixes infinite growth of number of *.luac files in the cache and actual cache file misses caused by randomness of filenames when using AppImage with loader enabled.

@shmerl shmerl changed the title fix(loader): prevent randomness in AppImage generated luac files in the cache #31165 fix(loader): prevent randomness in AppImage luac files in the cache #31165 Sep 5, 2025
@shmerl
Copy link
Author

shmerl commented Sep 5, 2025

Hm, it fails some checks like this:

runtime/lua/vim/loader.lua:122:11 [Warning] Can not infer type. (no-unknown)
        local idx = name:find('/usr/', 1, true)
              ^^^

I'm not exactly sure what it doesn't like. Any suggestion how to prevent that? The idx should be a number of nil.

@shmerl shmerl force-pushed the loader_cache_fix branch 2 times, most recently from 7658b05 to becd3fe Compare September 5, 2025 22:04
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.

1 participant