PHPStorm - Invalid descendent file name

前端 未结 3 1078
南笙
南笙 2021-02-20 10:17

I\'m attempting to sync my local PHPStorm project from my Windows 7 PC with my Ubuntu server.

When I try any kind of connection (e.g. \"Test SFTP connection\"), it fails

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-20 10:48

    You have a file on your Ubuntu server with that C:\nppdf32Log\debuglog.txt name. YES -- it's on Ubuntu and YES -- it's actually a file name and not full path (Linux allows : and \ characters in file names).

    Unfortunately such file name is invalid on Windows and library used for SFTP communications in PhpStorm does not allow to process such files in any way (yes, it's valid as full path but not as file name alone).

    The solution is to connect to your SFTP using another program (e.g. FileZilla) and delete that file. After that you will be able to continue with PhpStorm built-in SFTP functionality.

    P.S.
    Such file is usually created by Firefox on Linux (google that file name for additional details).

    https://askubuntu.com/questions/144408/what-is-the-file-c-nppdf32log-debuglog-txt


    Jetbrains support suggested asking here

    That's odd (and hard to believe for me) -- they should know about such issue for sure -- you are not first who is facing the same error.

    In any case -- this is the ticket to watch after -- hopefully the used library (for SFTP communications) will allow handling such situations better in the future.

    http://youtrack.jetbrains.com/issue/WI-2449

提交回复
热议问题