Skip to content
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

rclone mount does not refresh properly #2129

Open
3 tasks done
bertradio opened this issue Dec 30, 2024 · 6 comments
Open
3 tasks done

rclone mount does not refresh properly #2129

bertradio opened this issue Dec 30, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@bertradio
Copy link

What system are you running Yazi on?

Linux X11

What terminal are you running Yazi in?

kitty 0.38.1

yazi --debug output

Yazi
    Version: 0.4.3 (fd21452 2024-12-30)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.83.0 (90b35a62 2024-11-26)

Ya
    Version: 0.4.3 (fd21452 2024-12-30)

Emulator
    Brand.from_env      : Some(Kitty)
    Emulator.detect     : Emulator { kind: Left(Kitty), light: false, cell_size: Some((16, 37)) }
    Emulator.detect_full: Ok(Emulator { kind: Left(Kitty), light: false, cell_size: Some((16, 37)) })

Adapter
    Adapter.matches: Kgp

Desktop
    XDG_SESSION_TYPE           : Some("wayland")
    WAYLAND_DISPLAY            : Some("wayland-0")
    DISPLAY                    : Some(":0")
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

NVIM
    NVIM          : false
    Neovim version: 0.11.0

Variables
    SHELL           : Some("/bin/bash")
    EDITOR          : Some("nvim")
    VISUAL          : None
    YAZI_FILE_ONE   : None
    YAZI_CONFIG_HOME: None
    YAZI_ZOXIDE_OPTS: None
    FZF_DEFAULT_OPTS: Some("-e --cycle --border=rounded --layout=reverse --preview \"batcat --coloralways --style=header,grid {}\" --bind shift-up:preview-page-up,shift-down:preview-page-down --highlight-line")

Text Opener
    default     : Some(Opener { run: "nvim \"$@\"", block: true, orphan: false, desc: "nvim", for_:None, spread: true })
    block-create: Some(Opener { run: "nvim \"$@\"", block: true, orphan: false, desc: "nvim", for_:None, spread: true })
    block-rename: Some(Opener { run: "nvim \"$@\"", block: true, orphan: false, desc: "nvim", for_:None, spread: true })

Multiplexers
    TMUX               : 0
    tmux version       : tmux 3.3a
    tmux build flags   : enable-sixel=Unknown
    ZELLIJ_SESSION_NAME: None
    Zellij version     : No such file or directory (os error 2)

Dependencies
    file          : 5.44
    ueberzugpp    : 2.9.6
    ffmpeg/ffprobe: 5.1.6-0 / 5.1.6-0
    pdftoppm      : 22.12.0
    magick        : No such file or directory (os error 2)
    fzf           : 0.57.0
    fd/fdfind     : No such file or directory (os error 2) / 8.6.0
    rg            : 13.0.0
    chafa         : 1.12.4
    zoxide        : 0.9.4
    7z/7zz        : 16.02 / 24.09
    jq            : 1.6

Clipboard
    wl-copy/paste: 2.1.0 / 2.1.0
    xclip        : 0.13
    xsel         : No such file or directory (os error 2)

Describe the bug

I am using rclone to mount OneDrive using vfs full. If I change a file on the OneDrive web app, the change does not appear in yazi. For example if I delete a file on the web app, it still appears on yazi. Refresh does not refresh. The only way I can get a refresh is to quit yazi and start it again and sometimes even that does not work.

Minimal reproducer

Mount OneDrive using rclone with these options
--config=/home/%i/.config/rclone/rclone.conf
--vfs-cache-mode full
--dir-cache-time 1m
--allow-other

Open the mount point in yazi. Then go to OneDrive on the web and add a file. Check yazi to see if it's there. Then delete the file. It will still show on yazi.

It seems yazi is not properly loading the mount. If I look in nemo, the file behaves properly. The problem is just in yazi not reflecting changes.

Anything else?

No response

Checklist

  • I tried the latest nightly build, and the issue is still reproducible
  • I updated the debug information (yazi --debug) input box to the nightly that I tried
  • I can reproduce it after disabling all custom configs/plugins (mv ~/.config/yazi ~/.config/yazi-backup)
@bertradio bertradio added the bug Something isn't working label Dec 30, 2024
@sxyazi
Copy link
Owner

sxyazi commented Dec 31, 2024

What's your OneDrive filesystem? Install eza and run eza -lMd /your/mount/point

@sxyazi sxyazi added the waiting on op Waiting for more information from the original poster label Dec 31, 2024
@bertradio
Copy link
Author

drwxr-xr-x - bert 30 Dec 17:49 /home/bert/OD_mnt [OneDrive:My Docs (fuse.rclone)]

I have the eza plugin for yazi and the preview pane shows the right thing but not the yazi file pane. In othe words in the situation where I have delete a file on the OneDrive web interfact, the preview pane with eza does not show it ther, but when I open the directory the file is still there and shows as not existent.

@github-actions github-actions bot removed the waiting on op Waiting for more information from the original poster label Dec 31, 2024
@bertradio
Copy link
Author

Just did another test. I created a new directory and file using the web app. I see the directory in the preview window (with eza plugin) but when I open the parent direcotry of the new directory, I do not see it in the yazi list. If I exit yazi and look again I see the new directory and file within it. So it appears the issue is yazi not properly refreshing.

@bertradio
Copy link
Author

I also have a mount via rclone for Google Drive and the behavior is the same. The directory does not refresh unless I exit yazi and re-start it. And again the eza plugin is showing the correct files in the preview window.

@Nicknamely
Copy link

Did I miss something? Has rclone been integrated into Yazi now?

@bertradio
Copy link
Author

No rclone is not part of yazi, But drives mounted with rclone behave like drives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants