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 134554 - Cannot delete file marked for addition into SVN
Summary: Cannot delete file marked for addition into SVN
Status: RESOLVED WONTFIX
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on: 135547
Blocks:
  Show dependency tree
 
Reported: 2008-05-06 01:40 UTC by _ gtzabari
Modified: 2008-05-27 17:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (39.57 KB, text/plain)
2008-05-06 01:41 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2008-05-06 01:40:52 UTC
dev build 200805030003

When I try deleting a "new" file the operation fails silently. The deletion dialog simply gets dismissed but the file is
not deleted. The problem seem to be org.tigris.subversion.svnclientadapter.commandline.CmdLineException thrown by the
SVN module. Please see the attached messages.log file.
Comment 1 _ gtzabari 2008-05-06 01:41:19 UTC
Created attachment 61063 [details]
messages.log
Comment 2 Peter Pis 2008-05-06 07:52:04 UTC
Unfortunately, I can't manage to reproduce that. Could you please provide further information? 

Steps:
1. Open version controlled project (svn).
2. Create new file in it. File is annotated as [New]
3. Delete this file.

File is deleted and no exception is thrown.
Comment 3 Tomas Stupka 2008-05-06 09:13:05 UTC
what status is the file and its parent folder? is it uptodate, new, copied ... ?
are you able to reproduce with whatever file or only with Client.java?

thanks
 
Comment 4 Tomas Stupka 2008-05-06 09:17:21 UTC
maybe this helps:

http://www.opensubscriber.com/message/users@subversion.tigris.org/3327904.html

to be honest, i have no idea at his moment what the cause for the error could be - it looks to me more like a setup
problem than an issue in the nb module.
Comment 5 _ gtzabari 2008-05-07 20:38:01 UTC
Sorry this is no longer reproducible on my end. From what I remember, the files were marked green (new) in Netbeans but
were not marked with anything in TortoiseSVN (in other words they weren't "svn add"ed yet). I don't know what the status
of the parent directory was but if I had to guess I would say it was committed and up-to-date.
Comment 6 _ gtzabari 2008-05-13 04:53:55 UTC
I've been able to reproduce this again. I don't know how much longer this will last so I'll tell you what I see using
TortoiseSVN right now:

- The file is marked as modified.
- This time the filename is ThemeHelper.java so no this isn't specific to a filename.
- The parent folder (and all its ancestors) is marked as normal
- Issuing "SVN delete" on the file works from outside Netbeans

How do I find out what SVN command-line Netbeans is invoking? What else can I send you to help debug this?
Comment 7 Petr Cyhelsky 2008-05-21 17:57:24 UTC
If unsure as to which svn is NB invoking u can see/set it in Tools|Options|miscellaneous|Versioning|Subversion| Specifi
the SVN home folder textfield,
but if it is blank here than NB probably uses SVN which is in system Path
Comment 8 Tomas Stupka 2008-05-21 18:31:18 UTC
sorry for the late answer, i totally lost focus on this:(

> - Issuing "SVN delete" on the file works from outside Netbeans
1.) did you delete via tortoise or cmd line? 
2.) unfortunately, this seems to be random so just because it works from outside nb still doesn't mean it wouldn't work
at the given moment from nb

did you check the previously posted link and find anything useful?
it states that that error appears in situations 
- when the file is not found
- when a folder is not found
- when one of the subfolder or the drive is not found 

any idea ?

could it be you are running any external tools which access your files while you invoke the delete command?
Comment 9 _ gtzabari 2008-05-21 19:52:30 UTC
I got it!!!

This is caused by the problem discussed in issue 134771 posted on Tue May 20 06:55:26 +0000 2008

In a nutshell: Netbeans is issuing commands against "C:\Documents and Settings" which is a read-only symbolic-link-like
path. When I try deleting a file using a project referencing "C:\Documents and Settings" I can produce this bug 100% of
the time. When I modify the project to refer to "C:\Users" the problem goes away. To double check I then changed the
paths back to "C:\Documents and Settings" and the problem came back.
Comment 10 _ gtzabari 2008-05-27 14:48:57 UTC
Blocked on issue 135547
Comment 11 Tomas Stupka 2008-05-27 14:58:05 UTC
> When I try deleting a file using a project referencing "C:\Documents and Settings" I can produce this bug 100% of
> the time.
well then, could you let me know if it's possible for you to svn delete a file from the commandline in such a case?
Comment 12 _ gtzabari 2008-05-27 15:18:46 UTC
If you invoke "svn delete" against the fully-qualified path from some other directory then yes this error occurs from
command-line. If, however, you run "svn delete" against a local file while the current working directory is the parent
directory then the problem does not occur.
Comment 13 _ gtzabari 2008-05-27 15:24:35 UTC
FYI: I filed a bug report with the Subversion team, http://subversion.tigris.org/issues/show_bug.cgi?id=3208
Comment 14 Tomas Stupka 2008-05-27 17:21:08 UTC
> If you invoke "svn delete" against the fully-qualified path from some other directory then yes this error occurs 
> from command-line
looks like a svn bug to me. i don't think there is a way how to workaround this reasonably -> wontfix