alexluigit / dirvish

A polished Dired with batteries included.
GNU General Public License v3.0
815 stars 45 forks source link

[Bug] This package is not compatible with `auto-sudoedit` #238

Open LemonBreezes opened 1 year ago

LemonBreezes commented 1 year ago

Thank you for the bug report

Bug description

Hi. So whenever I use auto-sudoedit-mode with Dirvish and open a directory like /etc/, I get the error

error in process sentinel: Wrong type argument: hash-table-p, nil [2 times]

Basically, what is happening is that auto-sudoedit just changed the Dired path to a remote path with sudo and reverted the buffer: image So when Dirvish runs the dirvish--dir-data-getter sentinel, it does so on the remote path and returns an error

![image](https://github.com/alexluigit/dirvish/assets/29102529/06d616ec-440f-460b-86fb-88d3fae9c312)

Would it be possible to somehow patch Dirvish to make it compatible with auto-sudoedit`?

OS

Linux

Emacs Version

gccemacs-30

Emacs Configurations

Doom Emacs

Error callstack

Debugger entered--Lisp error: (wrong-type-argument hash-table-p nil)
  dirvish-dir-data-proc-s(#<process dir-data> "finished\n")
LemonBreezes commented 1 year ago

This issue seems related to https://github.com/alexluigit/dirvish/issues/162