Apps and Installations
Have a question about a Dropbox app or installation? Reach out to the Dropbox Community and get solutions, help, and advice from members.
I am using Dropbox v169.4.5684 on macOS 12.6.3. In a terminal session with current directory in a Dropbox directory, I copied a file from a sibling directory using the cp command. I edited and saved the file (using vscode). The edited version of the file is visible to vscode and at least two other programs. The edited file has also been uploaded to the Dropbox server. The Dropbox icon shows that syncing is complete.
However, if I print the contents of the file using the cat utility (in /bin/cat - built in to macOS), it shows the version of the file before I edited it. I have tried rebooting the computer and the behaviour persists. I wonder if there is a problem with the Dropbox filesystem. It seems very unlikely that there is a bug in cat.
Hey @underlap, if you create a copy of one of those files somewhere outside the Dropbox folder, are you still seeing the same behavior?
Hannah
Community Moderator @ Dropbox
dropbox.com/support
Did this post help you? If so, give it a Like below to let us know.
Need help with something else? Ask me a question!
Find Tips & Tricks Discover more ways to use Dropbox here!
Interested in Community Groups? Click here to join!
Hey @underlap, thanks for joining our Community and sorry to hear you're having issues with this.
Could you please let us know if this happens to files that available offline to your computer or ones that are online only?
Also, do you see the updated version on our website?
Any additional information or screenshots you can share are more than welcome!
Walter
Community Moderator @ Dropbox
dropbox.com/support
Did this post help you? If so, give it a Like below to let us know.
Need help with something else? Ask me a question!
Find Tips & Tricks Discover more ways to use Dropbox here!
Interested in Community Groups? Click here to join
Thanks for responding @Walter.
I'm not sure whether the file in question is available offline or online only. Right clicking on the file or any of its containing directories (inside the Dropbox folder) offers two (ungreyed) options "Make available offline" and "Make online-only", so that doesn't give me a clue. I can't see anything in the settings relating to this choice. (I'm sure I remember that option somewhere in an earlier version of Dropbox.)
The updated version is indeed present on the website, so syncing is working fine.
Since you asked for screenshots, here are two taken in quick succession. The first shows the output from `cat names.hs`:
and the second shows the output of running `vi names.hs`:
Other editors such as vscode and emacs show the new version of the file, so there is something different about the way `cat` is accessing the file.
I checked `which cat` and it's the system provided utility at `/bin/cat`
I did an experiment. I tried setting another file which exhibits the same problem first of all to "Make available offline" and then to "Make online-only". I tried `cat` again in both of these states and the old version of the file was still displayed.
Hey @underlap, if you create a copy of one of those files somewhere outside the Dropbox folder, are you still seeing the same behavior?
Hannah
Community Moderator @ Dropbox
dropbox.com/support
Did this post help you? If so, give it a Like below to let us know.
Need help with something else? Ask me a question!
Find Tips & Tricks Discover more ways to use Dropbox here!
Interested in Community Groups? Click here to join!
@Hannah Yes I do see the same error and...
Actually, it's a user error on my part! I'd forgotten that I'd put a lot of whitespace in the middle of the original file. So `cat` was simply displaying the end of the file and the editor was displaying the top of the file. All is ok and I'm so sorry for wasting people's time!
Have you heard the expression PEBKAC ("Problem Exists Between Keyboard and Chair")?
Don't even worry about it, I'm glad you got to the bottom of this @underlap!
If you need anything else you know where to find us!
Megan
Community Moderator @ Dropbox
dropbox.com/support
Did this post help you? If so, give it a Like below to let us know.
Need help with something else? Ask me a question!
Find Tips & Tricks Discover more ways to use Dropbox here!
Interested in Community Groups? Click here to join!
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!