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 am using revision explorer on a file that has been added to a project after the project has been labelled. The file has been created and modified once. When I open the revision explorer I get this exception: Mon May 21 16:53:57 CEST 2001: java.lang.StringIndexOutOfBoundsException: String index out of range: -2 java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(String.java:1525) at java.lang.String.substring(String.java:1492) at vcs.commands.VssRevisionExplorer.outputData (VssRevisionExplorer.java:222) at org.netbeans.modules.vcscore.cmdline.exec.ExternalCommand.stdoutNextLine (ExternalCommand.java:656) at org.netbeans.modules.vcscore.cmdline.exec.ExternalCommand.access$000 (ExternalCommand.java:33) at org.netbeans.modules.vcscore.cmdline.exec.ExternalCommand$StdoutGrabber.run (ExternalCommand.java:453) [catch] at java.lang.Thread.run(Thread.java:484) The revision explorer opens anyway but it contains correct information in incorrect positions. This is the standard output of the SS command: Current project is $/VirtualLover/com/dylogic/util C:\users\gabriele.carcassi\VirtualLover\com\dylogic\util has been established as the working folder for project $/VirtualLover/com/dylogic/util.History of $/VirtualLover/com/dylogic/util/WatchDog.java ... ***************** Version 2 ***************** User: Gabriele.carcassi Date: 21/05/01 Time: 15.23 Checked in $/VirtualLover/com/dylogic/util Comment: Messo a posto il Log. Ripulito il resto del codice. ***************** Version 1 ***************** User: Gabriele.carcassi Date: 19/05/01 Time: 17.13 Created Comment: Queste classi servono per terminare un processo dopo un tempo prefissato. ********************** Label: "Customz per Send delayed SMS" User: Sergio.nalin Date: 11/05/01 Time: 16.04 In the explorer, for version 1 is reported "Sergio.nalin" as the author and "16:04" as the date. It seems is getting them from the label. Information for version 2 is correct.
I've tried to reproduce it, but all my revisions start with *** Version 1 *** Can you please tell me how did you add the initial label: ********************** Label: "Customz per Send delayed SMS" User: Sergio.nalin Date: 11/05/01 Time: 16.04 I need this to be able to reproduce it and test the fix. Thanks.
1) Create a new Project 2) Using VSS, go to File/Label... and add a label to the project. 3) Add a class to the project with a different user and at a different time. It should be enough.
Thanks Gabriele for your help. The issue was fixed in the main trunk now and will appear in development build #196.
Thank you for your fast replies! I am impressed. I have tried build #196: the exception is not raised anymore and all the versions are being displayed. I have also noticed that the date is being displayed correctly too (both time and date). There are two other problems, though, which should be related: 1) If there is a label, versions that are before that label don't have the date nor the author. 2) Labels are skipped. Would it be possible to have them displayed somehow?
Oh, I just didn't realize, that you can add more than one label to the file! Now the label info is displayed for the whole file if you select the file itself. But this is totally wrong! If I understand it right, the labels are something like tags in CVS. I'll put the info to the apropriate revisions properties. I'm not a professional VSS user, therefore I really appreciate your tests. Thanks.
*** Issue 12499 has been marked as a duplicate of this issue. ***
Hope, that it's finally fixed. Revision Explorer is not supported any more, use the Versioning Explorer instead. Fixed in dev build #20010910.
It is either not intuitive enough or I am blind, but finally found the fix. If revision is labelled, each label has its own tab in properties window. Verified in development build of NetBeans 3.3 #200110110100.
Resolved for 3.4.x or earlier, no new info since then -> closing.