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.
I'm using NetBeans Q Build 2003-08-25, and I've noticed that when I cut and paste several files from one folder to another using CVS, the IDE freezes. Sometimes, the files is copied, but sources cannot be deleted "because they are in use". When selected a folder with sub-folders, and then Build -> Clean all, I get: org.netbeans.modules.javacvs.JavaCvsFileSystemException: File could not be deleted. at org.netbeans.modules.javacvs.JavaCvsFileSystem$ChangeImpl.delete(JavaCvsFileSystem.java:1207) at org.openide.filesystems.AbstractFileObject.handleDelete(AbstractFileObject.java:494) at org.openide.filesystems.AbstractFolder.delete(AbstractFolder.java:843) at org.netbeans.modules.java.CleanCompiler.deleteClasses(CleanCompiler.java:134) at org.netbeans.modules.java.CleanCompiler.compile(CleanCompiler.java:174) at org.netbeans.modules.java.CleanCompilerGroup$1.run(CleanCompilerGroup.java:82) at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:89) at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:414) at org.netbeans.modules.java.CleanCompilerGroup.start(CleanCompilerGroup.java:109) at org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread$GroupCompiler.run(CompilationEngineImpl.java:280) Errors compiling compTituloPessoa [Local]. The problem occur always. Probably affect 4.0 dev too (I've not tested). Thanks, Edson Richter
This has nothing to do with the javacvs library as such. I bet that the problem is not in javacvs filesystem at all, but in other components that works with the files. Please, can you try to mount a "Local Filesystem" instead of CVS filesystem and test whether the cut/paste and Clean All will work better? That way we can better detect which part of the system is problematic. Thanks.
I've teste with local file system, and it worked fine (Cut/paste and Build->clean all). One more: I've forget to advise: I'm using CVS NT (I think this make no difference, since I've used CVS NT always, and the problem started with 3.5.1). One more: Cut/paste with only one file works, but takes near forever (on K7 950Mhz with 512Mb)
Ok, I've realized that the problem appear be related to Swing forms + javacvs. I'll do more checking, and report as soon as possible.
Ok, about Cut/Paste I've detected that NetBeans don't freeze, but takes near forever... Even 2 files is so slow that is unbeliveable... About Build->clean all on the message "org.netbeans.modules.javacvs.JavaCvsFileSystemException: File could not be deleted." would be more easy to me help if the message includes the file that cannot be blocked... Can you do it and send to me the .jar so I can re-test?
Created attachment 11522 [details] More complete exception get trying just to delete a (Form) class.
I've added the file name, FS name and file path to the exception message: Checking in Bundle.properties; /cvs/javacvs/src/org/netbeans/modules/javacvs/Bundle.properties,v <-- Bundle.properties new revision: 1.12; previous revision: 1.11 done This will be present in the next development build, so either download a dev build, or make that change in the javacvs.jar. It's enough to replace line: EXC_file_could_not_be_deleted=File could not be deleted. with: EXC_file_could_not_be_deleted=File {0} could not be deleted in {1}. File path = {2}. in org/netbeans/modules/javacvs/Bundle.properties inside javacvs.jar. (Unzip javacvs.jar, change the file and zip again. This should do it. javacvs.jar is at <NetBeans-install-dir>/netbeans/modules/javacvs.jar).
Using latest Q build (2003-09-19), I do Build->Clean all and get the following stack trace in Ouput Window (compiler): org.netbeans.modules.javacvs.JavaCvsFileSystemException: File Titulo2PluginLoader.class could not be deleted in CVS F:\Projetos\ProjetoMGR\ProjetoMGR_src. File path = F:\Projetos\ProjetoMGR\ProjetoMGR_src\br\com\mgr\plugins\financeiro\titulo2\Titulo2PluginLoader.class. at org.netbeans.modules.javacvs.JavaCvsFileSystem$ChangeImpl.delete(JavaCvsFileSystem.java:1262) at org.openide.filesystems.AbstractFileObject.handleDelete(AbstractFileObject.java:494) at org.openide.filesystems.AbstractFolder.delete(AbstractFolder.java:843) at org.netbeans.modules.java.CleanCompiler.deleteClasses(CleanCompiler.java:134) at org.netbeans.modules.java.CleanCompiler.compile(CleanCompiler.java:174) at org.netbeans.modules.java.CleanCompilerGroup$1.run(CleanCompilerGroup.java:82) at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:89) at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:414) at org.netbeans.modules.java.CleanCompilerGroup.start(CleanCompilerGroup.java:109) at org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread$GroupCompiler.run(CompilationEngineImpl.java:280) Errors compiling titulo2.
the Titulo2PluginLoader isn't a form... It's a plain class file: public class Titulo2PluginLoader { static { new ComposicaoTituloPlugin(); new CompTituloTaxaEditorPlugin(); new CompTituloPercentEditorPlugin(); new CompTituloScriptEditorPlugin(); new ComposicaoBaixaPlugin(); new CompBaixaTaxaEditorPlugin(); new CompBaixaPercentEditorPlugin(); new CompBaixaJurosEditorPlugin(); new CompBaixaScriptEditorPlugin(); } }
Still with problems in 2003-10-01 Q build...
As described at http://www.netbeans.org/servlets/ReadMsg?msgId=655179&listName=nbusers the development of javacvs module has been stopped.
The problem appear solved in NetBeans 3.6 Beta. I'll do more tests, but I think it's definetelly solved.