-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Deleting tab from IDE does not delete from temporary folder #1161
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
Comments
Hello @nickgammon, I've pushed the fix on a separate branch: https://github.com/arduino/Arduino/tree/ide-1.5.x-issue1161. Can you pull it and check if the fix is ok? |
I don't know if it is my technique, but I am having trouble pulling this branch. I get stuck on 32% received. I've tried twice with the same result.
I've tried cloning one of my own repositories in the same way, into the same folder (my home folder) without any problems. |
I see that https method sometimes locks up for a while when it encounters big files (and Arduino repository seems to have some big stuff lying around at 32%). Maybe trying to use git method (over ssh) could solve the issue. |
Still not working. Am I doing this right?
After about 30 minutes it is stuck with those figures not changing at all. Then finally:
I have plenty of hard disk space (over 100 Gb). The directory is writable, I found those 74 Mb of files there in the .git folder before the error message appeared. And as I said earlier, the same technique works for pulling my own repository. You guys mainly push rather than pull, right? Does someone want to test pulling the entire repository into a temporary directory? |
Worked here just now, though it took a while: $ git clone ssh://git@github.com/arduino/Arduino.git -br |
Finally! I managed to clone the repository on my Ubuntu PC using the same command line. Note: The non-working one was Mac OS/X 10.7.5 I then shared that folder and compiled on the Mac. I tested the reported issue on branch ide-1.5.x-issue1161, and it appears to be resolved. Thank you. |
Merged upstream. |
Make a project that includes a .h file, for example:
And foo.h contains something, for example:
int foo = 42;
Compile this (it should succeed).
Now delete the tab foo.h from the IDE.
Compile again. It succeeds, but should not, as foo.h is now missing. It is still in the temporary folder, and even though it is not copied from the development area to the temporary folder, since it is still there, the compile succeeds.
This can cause confusion as unexpected or out-of-date .h files are included in projects during the development process.
Solution: The IDE should delete files from the working (temporary) folder when the file of the same name is deleted from the IDE workspace.
The text was updated successfully, but these errors were encountered: