Community
Participate
Working Groups
Build Identifier: The error "Project x is not open." appears in the error log when a closed remote C/C++ project is deleted. Reproducible: Always Steps to Reproduce: 1. Create a remote C/C++ project 2. Close the project 3. Delete the project 4. Check the error log view for the error message "Project x is not open."
Created attachment 177548 [details] A proposed fix - don't call hasRemoteNature No longer check if the resource "hasRemoteNature" which will consequently stop the error from happening. hasRemoteNature may incorrectly return false if the resource is inaccessible (closed). This is because the hasNature method calls checkAccessible before it returns the nature. Just because the resource is inaccessible doesn't necessarily mean it is not remote. The end result is "projectStatusMap.remove(projectName)" will return null on a non remote nature project, which should not be a problem.
Comment on attachment 177548 [details] A proposed fix - don't call hasRemoteNature Patch looks fine, I'll see about committing it today/tomorrow.
Committed to ptp_4_0 and HEAD.