Jürgen Hötzel <[email protected]> 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.

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to