-
Notifications
You must be signed in to change notification settings - Fork 446
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
Preloader mime never finishes in some directories #722
Comments
Thank you for the report! Please run Then open the task manager with |
Please note I tried the same with following patch and it didn't change anything in this matter
Enter in task manager:
So we seem to come back to #718 :) |
The output of
|
Haha this could be relevant. I need to investigate further. |
This is nothing of my doing. Linux Void. I know for certain Debian has the same. Because I stumbled upon this in another project - "#!/bin/sh"-scripts written in an old Centos didn't work in Debian. Long story short: when you write Dash is POSIX compliant, so it correctly rejects various non-POSIX addons. When you want |
--- /yazi-plugin/preset/plugins/mime.lua
+++ /yazi-plugin/preset/plugins/mime.lua
@@ -1,6 +1,7 @@
local M = {}
local function match_mimetype(s)
+ ya.err(s)
local type, subtype = s:match("([-a-z]+/)([+-.a-zA-Z0-9]+)%s*$")
if string.find("application/audio/biosig/chemical/font/image/inode/message/model/rinex/text/vector/video/x-epoc/", type, 1, true) then
return type .. subtype Please apply this patch to build Yazi, perform the same operation, and then copy the contents of |
|
Hi, I made a new PR to fix this, #725, let me know if it works for you! |
Works, thank you! |
Nice, thanks for testing! Let me merge it then |
I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
kitty-0.32.2
Yazi version
yazi 0.2.3 (e51e8ad 2024-02-24)
Did you try the latest main branch to see if the problem got fixed?
Tried, but the problem still
Describe the bug
Navigating most directories (not all), the task "Run preloader mime with xx target(s)" never finishes.
yazi_na.mp4
Expected Behavior
The task finishes.
To Reproduce
Just build and run, navigate around. Directories with various files seem more prone. The problem does not manifest while navigating inside this repo's directory.
/etc
or~
manifest the problem right away on my machine.Configuration
No config at all.
Anything else?
Newer commits (
8ea7556
) made it worse - when this bug happens, either left and middle panes, or right pane are empty (navigation still works, the footer shows the current file/dir under cursor)The text was updated successfully, but these errors were encountered: