Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

gbotica

With the patched version 6.6.1 dev, save back to server works again! Thanks!
martin

You can just install 6.5 over your existing 6.6 installation.
gbotica

Hey, OK, thanks for the update. Yes, turns out I run 6.6beta.

I'm not sure how I can easily switch and test on 6.5?

I'm not too worried... I can wait for an update.
martin

Thanks. Indeed, it does not with with the SCP protocol, but only with the WinSCP 6.6 beta. It works with stable WinSCP 6.5.5. Is that what you are seeing too? I'll look into it.
gbotica

Thanks for your reply - log of session attached.
martin

Re: Round-trip editing files from a command doesn't work anymore?

I've tested your command and it works file for me with both the latest WinSCP 6.5.5 and 6.6 beta.
I'd rather suspect something has changed on the server.
Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
gbotica

Round-trip editing files from a command doesn't work anymore?

Hi,
I'm wondering if there has been a change of behaviour or perhaps a bug introduced with the local storage paths when opening files with a WinSCP custom command?

I used to be able to use my command to open files in BeyondCompare, edit and save back to the server, like a "round-trip" edit. But lately, this no longer works and I get an error dialog when I close BComp, "Copying file to remote side failed", "scp:: No such file or directory".

My command and WinSCP settings are un-changed, it worked great for years, but now it's broken for some reason. I attach screens showing my WinSCP Storage settings, the error dialog, and my custom command.

I note that if I open a file from WinSCP using Edit > BComp (setting screen attached), it opens from a local path like:
C:\Users\user\AppData\Local\Temp\scp22485\Ubuntu-24.04-website.com\root\...

... which is what I would expect from my Storage settings (appending session name and remote path)

However, when I select a file (or files) and run my 'diff' command, the files open from:
C:\Users\user\AppData\Local\Temp\scp48691\...

and so, if I edit a file in BComp, save and close, the "Copying Files to remote side failed" error appears.

Like I said, I can open files from WinSCP into any editor, BComp, VSCode, Notepad... and the path is fine and round-trip edit + save works perfectly, it's only when edit from a custom command that has the issue.

I've tried activating "Keep temporary copies of remote files in deterministic paths", but that has no affect. The docs confirm this is expected: https://winscp.net/eng/docs/ui_pref_storage

Any help in restoring this functionality would be appreciated! Thank you!