[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tramps expand-file-name fails on protocol-only prefix
From: |
Michael Albinus |
Subject: |
Re: Tramps expand-file-name fails on protocol-only prefix |
Date: |
Sat, 12 Mar 2016 10:36:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Jürgen Hötzel <address@hidden> writes:
> Hi Michael,
Hi Juergen,
> I use `company-capf' in eshell and get this error when
> `expand-file-name' is called by the company-backend on the name
> "/scp:".
> -> cond: Host name must not match method "scp"
>
> Internally (expand-file-name "/scp:") is called, which itself calls
> (tramp-dissect-file-name "/scp:")
> -> [#("scp" 0 3 (tramp-default t)) nil "scp" "" nil]
> ^^^^^^
> Do you have any idea who to fix this issue? I just startet to check
> `tramp-dissect-file-name' internals/regexp.
Sounds to me like an error in `company-capf'. One should not call
`expand-file-name' on incomplete file names.
Maybe this could be prevented by let-setting `non-essential' to a
non-nil value in `company-capf'. This works for other packages running
completion with Tramp.
I don't use company myself, so I cannot check.
> regards
>
> Jürgen
Best regards, Michael.