-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Use a function to create and get our temporary directory #7829
Conversation
Hello @arielrossanigo! Thanks for updating the PR.
Comment last updated on September 10, 2018 at 17:05 Hours UTC |
Thanks for your contribution! I haven't examined the logic in detail, but while the Travis and CircleCI tests are apparently all failing before the tests run due to an unrelated issue (and so cannot be determined whether they have the same problem), the AppVeyor tests are indeed clearly failing due to this change. Also, as a fairly substantial change, unless the issue is serious and widespread this should probably go to |
Thanks a lot @arielrossanigo for your contribution!! I'll review it when I get back to Colombia (I'm waiting for my flight in Rio). I'll take a look at our failing tests there too. |
I've take a look at logs and I've just found two main issues:
If you already deal with something like that let me know. |
The problem related to monkeypatch was solved. Now I'm trying to figure it out how to solve the problem with file blocks and Windows... The main issue here is that I cannot find a place where can I close the file safely. I wanna try remove the files at all and replace them with StringIO but I'm not so sure what tests covers the use of stderr file. |
@arielrossanigo, please rebase or merge with |
b25507e
to
3382c84
Compare
@ccordoba12 Finally I could fix the problems in Windows. Now, the only test failing has nothing to do with this PR. |
@arielrossanigo See #7856 , should get fixed soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job @arielrossanigo!! This is a really great improvement over what we had previously.
Most of my comments are purely cosmetic, with the only important change being the request to move get_stderr_file_handle
to utils/misc.py
.
…emp dir is not more removed when main window closes
…irectory if it doesn't exists
…Flush changes to disk to ensure that script is in disk before run it. Replicate test with interpreter parameter in order to check this functionality
This reverts commit 5392d0c.
2e37375
to
49caad0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @arielrossanigo! This is a really great contribution!
Pull Request Checklist
modified the
spyder/defaults
directory, or added new icons/assetsDescription of Changes
The main change is that temp folder used by Spyder is not more removed when application closes, mainly because when multiple instances of Spyder are running and one of them is closed, temp folder were remove, and remaining ones didn't detect this action.
Another related change is that, every time temp folder is needed, a function to ensure that the folder exists was created. This was implemented using a function and removing a constant called TEMPDIR. This can cause that another projects or branches that have been using this constant crashes.
Because tempdir is not more removed when application closes, now some code to ensure that files are removed after been used was added. The points where this was done are:
Issue(s) Resolved
Fixes #7800