This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | VSS: An exception thrown when nbproject/project.properties is not writable and you modify some properties in project customizer | ||
---|---|---|---|
Product: | projects | Reporter: | Marek Fukala <mfukala> |
Component: | Ant | Assignee: | Jesse Glick <jglick> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | mentlicher |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 57748 | ||
Bug Blocks: | 41535, 57480 | ||
Attachments: | org.netbeans.modules.vcscore.VcsFileSystem$FileLockUserQuestionException: Do you want to checkout the file to make it writable? |
Description
Marek Fukala
2004-07-13 14:23:19 UTC
Created attachment 16221 [details]
org.netbeans.modules.vcscore.VcsFileSystem$FileLockUserQuestionException: Do you want to checkout the file to make it writable?
Marku, this seems to be coming from the projects infrastructure code. Can you please check whether this also happens for Java projects? Thanks. You are right - this is a problem of all kinds of project. For j2se - try to add a library or so and you will see the some exception. I am not sure who this should be reassigned to - projects? can you do that? thanx. Reassigning to the Projects module. Will try to catch UserQuestionException in such cases (written by AntProjectHelper) and handle it properly. Not sure how that will interact with threading considerations. Have a patch which I hope works; do not have VSS to test on, so someone else will have to verify. Patch checks for UserQuestionException thrown whenever writing project.xml, private.xml, project.properties, or private.properties (via AntProjectHelper). Displays OK/Cancel dialog asynchronously. If user accepts, and confirmed() does not throw a new error, the write is retried. Otherwise the IDE's notion of the project state is reverted to what remains on disk. I.e. if you had opened the project customizer, made some changes, clicked OK, then got this dialog and decided not to lock the file, your changes would be reverted. If UQE is thrown when trying to automatically regenerate build-impl.xml (or the associated genfiles.properties), the operation is just skipped and no dialog is shown. BTW Martin: it seems that vcscore does not include the file name in the exception's localized message. Probably it should mention the absolute path, as otherwise the user would not typically guess that e.g. ~/projects/myproj/nbproject/project.xml is the file the IDE is trying to write to. committed * Up-To-Date 1.4 ant/project/src/org/netbeans/modules/project/ant/Bundle.properties added * Up-To-Date 1.1 ant/project/src/org/netbeans/modules/project/ant/UserQuestionHandler.java committed * Up-To-Date 1.22 ant/project/src/org/netbeans/spi/project/support/ant/AntProjectHelper.java committed * Up-To-Date 1.7 ant/project/src/org/netbeans/spi/project/support/ant/GeneratedFilesHelper.java committed * Up-To-Date 1.8 ant/project/src/org/netbeans/spi/project/support/ant/ProjectProperties.java This issue was solved long time ago. Because nobody has reopened it neither added comments, we are verifying/closing it now. If you are still able to reproduce the problem, please reopen. Thanks in advance. |