OK, no idea, looks working better but still can have that "file no longer exists".


15.09.2021, 17:42, "Michael Albinus" <michael.albinus@gmx.de>:

Bad Blue Bull <ibmbull@yandex.ru> writes:

Hi,

 Dired is pretty same, (I didn't do emacs -Q becauseI have no ido dired
 when start with -Q argument).


Well, your MS Windows server doesn't tell the expected. Tramp tries to
examine, whether it understands the smbclient command "stat":

--8<---------------cut here---------------start------------->8---
16:32:17.351861 tramp-smb-send-command (6) # stat "/"
16:32:17.352040 tramp-smb-wait-for-output (6) #
smb: \>
--8<---------------cut here---------------end--------------->8---

It doesn't show an error message, and so Tramp believes it understands
it. And fails to use it.

With more recent MS Windows or Samba server versions in my lab, we see

--8<---------------cut here---------------start------------->8---
16:25:32.254587 tramp-smb-send-command (6) # stat "/"
16:25:32.256747 tramp-smb-wait-for-output (6) #
Server doesn't support UNIX CIFS calls.
smb: \>
--8<---------------cut here---------------end--------------->8---

This is recognized by Tramp.

Hmm. Maybe you can teach Tramp that your MS Windows machine does not
understand "stat". Add the following to your .emacs:

--8<---------------cut here---------------start------------->8---
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/smb:nicolas@win2k:")
                   "stat-capability" nil))
--8<---------------cut here---------------end--------------->8---

Then restart your Emacs.

Best regards, Michael.