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.

Bug 35869 - When Cut/Paste, netbeans freeze/Build clean all say file is in use.
Summary: When Cut/Paste, netbeans freeze/Build clean all say file is in use.
Status: RESOLVED WONTFIX
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker with 1 vote (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-02 14:35 UTC by brviking
Modified: 2007-01-04 17:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
More complete exception get trying just to delete a (Form) class. (3.62 KB, text/plain)
2003-09-04 13:48 UTC, brviking
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brviking 2003-09-02 14:35:24 UTC
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
Comment 1 Martin Entlicher 2003-09-02 14:55:22 UTC
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.
Comment 2 brviking 2003-09-02 15:44:57 UTC
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)
Comment 3 brviking 2003-09-02 15:51:28 UTC
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.
Comment 4 brviking 2003-09-03 15:31:26 UTC
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?
Comment 5 brviking 2003-09-04 13:48:43 UTC
Created attachment 11522 [details]
More complete exception get trying just to delete a (Form) class.
Comment 6 Martin Entlicher 2003-09-12 17:31:37 UTC
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).
Comment 7 brviking 2003-09-23 15:39:22 UTC
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.
Comment 8 brviking 2003-09-23 15:41:41 UTC
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();
  }
}
Comment 9 brviking 2003-10-20 17:31:06 UTC
Still with problems in 2003-10-01 Q build...
Comment 10 Martin Entlicher 2004-01-14 15:30:55 UTC
As described at
http://www.netbeans.org/servlets/ReadMsg?msgId=655179&listName=nbusers
the development of javacvs module has been stopped.
Comment 11 brviking 2004-02-11 11:12:59 UTC
The problem appear solved in NetBeans 3.6 Beta. I'll do more tests,
but I think it's definetelly solved.