-
Notifications
You must be signed in to change notification settings - Fork 210
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
Closing a CDT project somethimes reloads it on the spot. (project not open in project explorer) #634
Comments
I added a isOpen to the getProjectDescription and the problem persists
|
I had this issue again and found a way to reproduce and fix the issue.
Should be changed to
How I Identified this problem.
This way I discovered isNewStyleProject is called several times when it is selected in the project explorer even when the project is closed. |
(I made a comment expressing concerns on the specific fix provided in #725) Is it possible that some changes are being made without a workspace lock so that one thread is closing project at same time as another thread is trying to look something up, causing project to reopen? |
While I was testing the persistency of my autobuild plugin by opening and closing the project I noticed that sometimes the project gets loaded at (or around) closing time.
When this happened the project looked closed but when I open it eclipse did not trigger my loading code as once should expect during opening of a project.
The stacktrace is pretty big with lots of repititions (I still thought it was best to dump the whole thing)
I'm not sure this is a CDT issue but adding a "is the project open" test to the isNewStyleProject implementations or even to the getProjectDescription may be a good workaround/solution.
The text was updated successfully, but these errors were encountered: