New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editing with BBEdit sometimes opens file from Trash, then losing any further changes #10719
Comments
With the latest version (Cyberduck 7.2.5), this bug still occurs. It is uncommon for CyberDuck to get into this state, but I have seen it very many times over the years. I believe I have seen it with editors other than BBEdit (in the past I used Smultron), but I don't have historical data to double-check that. This is a very clearly described bug. To me it does not look like a duplicate of 10079, which looks like a vague "uploading failed, not repeatable" bug -- I would have no idea how to address that, if I were a developer. But this bug is much more specific and has a clear foothold for debugging: Why would CyberDuck ever say "Prepare thefilename (Trash)"? My experience matches tempelmann's. This bug usually hits me when I am using my laptop, moving between various internet connections (at work, at home, at a cafe, etc.), and CyberDuck has to keep re-establishing the FTP connection (I hit save in the editor, the upload fails, the connection goes grey in CyberDuck, it tries again after a few seconds, it establishes a new connection, the upload works -- all automatic, because CyberDuck is so nice!). Sometimes my editing window becomes "stale" in some way I don't understand -- maybe it is wedded to the previous FTP connection somehow. I think of this staleness and this bug as being the same, but I never really looked into it before now. The staleness is clearly identifiable by the messed-up filename (see point 4 below). It looks like a bug in both CyberDuck and BBEdit. Point 5 below looks like a CyberDuck bug, and point 6 below looks like a BBEdit bug. And it looks like CyberDuck is responsible for things getting into this messed-up state in the first place, but who knows. More observations: If there is other information you need, let me know. This is just an occasional bug, but it does come up every so often, so I could check more things the next time it happens, if there is anything else to check. |
Using BBEdit (12.6.4) as the designated Editor, I often edit text files from a sftp server on my Mac, and then close the text window in BBEdit again. Later, I double click the same file in Cyberduck's sftp browser so it opens again in BBedit. This generally works.
However, after a while, it happens that BBEdit opens the file not from the tmp directory but from a file in the Trash (which Cyberduck apparently moved there, or so I gather from other tickets related to "edit trash"). When this happens, saving my changes in BBEdit does not lead to updating them on the server any more. I don't even get any kind of error message, which sometimes caused me some lost work (hence it should be considered a rather severe bug) when I did not notice this.
Two observations:
So, is this a bug in CD or in BBEdit?
This has been bugging quite a while now, i.e. it also happens in version 5. Several years ago, though, this did not happen. Not sure what changed.
Unfortunately, I have no idea how to reproduce it at will. That's why I haven't reported it for so long.
Please have at least a check about why "(Trash)" appears in the status during download. Maybe that's part of the cause of this?
I have no log files to attach because system.log shows nothing about it when I search for "cyberduck", and it's not a ftp protocol issue (and only those appear in the log drawer, it seems to me).
The text was updated successfully, but these errors were encountered: