question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Atomic writes generate temp files in Dropbox

See original GitHub issue

Issue Report Checklist

  • [ x] Searched the issues page for similar reports
  • [ x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • [ x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • [ x] Tried basic troubleshooting (if a bug/error)
    • [x ] Restarted Spyder
    • [ x] Reset preferences with spyder --reset
    • [ x] Reinstalled the latest version of Anaconda
    • [ x] Tried the other applicable steps from the Troubleshooting Guide
  • [ x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Spyder4 changes the auto-save recovery file location to the last directory a script was opened from or saved to. Un-selecting the auto-save feature and restarting Spyder does not disable the auto-save file creation.

What steps reproduce the problem?

  1. Reset Spyder Settings
  2. Disable autosave, restart Spyder
  3. Open a previously saved script – example.py, from directory “usr/pyscript/”
  4. Run the script, and find a list of “File” saved under the diretory “usr/pyscript/”, where “File” are the different auto-save versions of example.py
  5. When ceating a new script, the default “save as” directory is also “usr/pyscript/”

What is the expected output? What do you see instead?

The autosave feature can be disabled correctly, or the autosave file to be saved in a specified directory.

Versions

  • Spyder version: 4.1.3
  • Python version: 3.7
  • Qt version:
  • PyQt version:
  • Operating System name/version:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
skjernscommented, Oct 2, 2020

sure! I’ll try that 😃

And I’ll also test it with other clients, such as NextCloud or OneDrive, as I would suspect that they could produce problems as well, however, as they are not so wide-spread it might not have been reported yet.

2reactions
ccordoba12commented, Jun 18, 2020

@dalthviz, I think this is related to the way we perform atomic writes and how Dropbox saves (somehow) those temporary files we use in the background.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Unable to save files from e-mail or online. Tempor...
It does appear that the temp file is what was causing this issue @JenKDLaw. I'm glad to hear that saving the file in...
Read more >
Atomic file update in Windows - Stack Overflow
So far I've been creating a temporary file, writing to it, and then calling ReplaceFile . However, Dropbox sees it as a separate ......
Read more >
What I Learned Writing a Dropbox Clone - Part 2 - hoelz.ro
However, even though an individual read or write operation is atomic, we can't guarantee atomicity across an arbitrary number of them. So for ......
Read more >
luigi.contrib.dropbox module — Luigi 2.8.13 documentation
A context manager that enables a reasonably short, general and magic-less way to solve the Atomic Writes Problem. On entering, it will create...
Read more >
Why does Debian prefer a temp file replacing the original over ...
Your question suggests that Debian uses temp files for all writes, which isn't the case. This is simply the default for mp3gain ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found