I am having a problem with pasting a path into the location combo box (_ctl_remote_cwd) in the FTP Tool window (_tbFTPOpen_form). If there is a path in it already, and I click in the combo box, which auto selects all the text, then paste in another path, it concatenates the paths. For example, if I am in "/root/se", and the combo box shows "/root/se", all selected, and I paste "/tmp", I get the error:
Cannot stat "/tmp/root/se": Unable to canonicalize the path
This only happens if the pasted path is not already in the combo box drop list.
I use ftp a lot, and this is a real PITA. I tried it on (what I believe it to be) a clean install and it had the same problem.
AFAICT, the problem is (at least partially) related to ftpopen.e:_ctl_remote_cwd.on_change(). There is a block:
if( cwd=="" ) {
// This should never happen
cwd=old_RemoteCWD;
}
However, in this case it is happening. When I paste a new path, this function seems to get called twice, the first time, this happens, and the second time the text is "messed up" as I described. If I simply change it to:
if( cwd=="" ) {
return;
}
Then the problem (seems) to go away.
I am using SlickEdit 2012 (v17.0.3.0 64-bit) on Windows 7, and the connection is SFTP. This problem has exited, at least v17.0.2. A "real" fix would be appreciated.