Subject: bug#72861: 30.0.90; remote tramp (30.0.90): Couldn't find a proper `ls' command

From: Eli Zaretskii <[email-masked]>
Date: Thu, 29 Aug 2024 07:45:23 +0300

> From: Christopher Howard <[email-masked]>
> Date: Wed, 28 Aug 2024 12:32:41 -0800
> 
> 
> 
> M-x find-file /ssh:localhost:
> 
> At this point, I get the following Lisp error, and am unable to complete the connect.
> 
> ```
> Debugger entered--Lisp error: (file-error "Couldn't find a proper `ls' command")
>   signal(file-error ("Couldn't find a proper `ls' command"))

There's Helm in the picture:

>   tramp-get-ls-command((tramp-file-name "ssh" nil nil "localhost" nil "/home/christopher" nil))
>   tramp-do-file-attributes-with-ls((tramp-file-name "ssh" nil nil "localhost" nil "/home/christopher" nil) "/home/christopher")
>   tramp-sh-handle-file-attributes("/ssh:localhost:/home/christopher")
>   apply(tramp-sh-handle-file-attributes "/ssh:localhost:/home/christopher")
>   tramp-sh-file-name-handler(file-attributes "/ssh:localhost:/home/christopher")
>   apply(tramp-sh-file-name-handler file-attributes "/ssh:localhost:/home/christopher")
>   tramp-file-name-handler(file-attributes "/ssh:localhost:/home/christopher")
>   file-attributes("/ssh:localhost:/home/christopher")
>   tramp-handle-file-symlink-p("/ssh:localhost:/home/christopher")
>   apply(tramp-handle-file-symlink-p "/ssh:localhost:/home/christopher")
>   tramp-sh-file-name-handler(file-symlink-p "/ssh:localhost:/home/christopher")
>   apply(tramp-sh-file-name-handler file-symlink-p "/ssh:localhost:/home/christopher")
>   tramp-file-name-handler(file-symlink-p "/ssh:localhost:/home/christopher")
>   file-symlink-p("/ssh:localhost:/home/christopher")
>   helm-ff-directory-files("/ssh:localhost:/home/christopher/")
>   helm-find-files-get-candidates()
>   apply(helm-find-files-get-candidates nil)
>   helm-apply-functions-from-source(((name . "Find Files") (resume lambda nil...

Does this happen in "emacs -Q", or if you disable Helm?