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 192382 - StringIndexOutOfBoundsException: String index out of range: 43
Summary: StringIndexOutOfBoundsException: String index out of range: 43
Status: RESOLVED WONTFIX
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 05:57 UTC by debopamg
Modified: 2010-11-25 08:05 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 156712


Attachments
stacktrace (1.59 KB, text/plain)
2010-11-24 05:57 UTC, debopamg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description debopamg 2010-11-24 05:57:47 UTC
Build: NetBeans IDE 6.9 (Build 201011082200)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

User Comments:
GUEST: I opened satchmo/product/models.py from the satchmo-0.8.1 bugfixes branch. (Satchmo is a Django (Python) based e-commerce framework).

GUEST: I cloned an existing GIT repository (git://github.com/elight/coulda.git) and created a new Netbeans 'Ruby with existing sources' project in the resulting top folder.
Existing 'lib' and 'test' folders were used for the 'Source files' and 'Test' folders, respectively.
Attempting to view the resulting tree contents under both the Projects and Files tabs worked for 'Test' and 'test' but not for 'Source files' or 'lib'. Each attempt at clicking on the '+' to expand the source tree node resulted in the flashing red minus display, with the above StringIndexOutOfBoundsException reported.
'lib' doesn't appear to contain anything unusual, just other folders and Ruby text files similar to those under 'test'.

deyringer: Just restarted NB after updating

GUEST: I'm opening a project, after install the nbgit plugin.

GUEST: Trying to open a large rails project

GUEST: I just started my netbeans

debopamg: after installing the nbgit plugin, this error has started coming frequently

GUEST: Restarting IDE after installing nbgit 0.3.0 nbm.

GUEST: nothing.

GUEST: In Projects tab, Right Click Rails Project, select Git, select Status, error icon appeard on NB status bar.

GUEST: Opening ruby file.

GUEST: Openning project




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 43
   at java.lang.String.charAt(String.java:686)
   at org.nbgit.util.exclude.FnMatch.hasLeadingPeriod(FnMatch.java:192)
   at org.nbgit.util.exclude.FnMatch.match(FnMatch.java:108)
   at org.nbgit.util.exclude.FnMatch.fnmatch(FnMatch.java:69)
   at org.nbgit.util.exclude.PathPattern$WildcardPathPattern.matchesFileName(PathPattern.java:182)
   at org.nbgit.util.exclude.PathPattern.matches(PathPattern.java:94)
Comment 1 debopamg 2010-11-24 05:57:50 UTC
Created attachment 103266 [details]
stacktrace
Comment 2 Ondrej Vrabec 2010-11-25 08:05:33 UTC
This will not be fixed, nbgit is a 3rd-party module, not in our area of responsibility. I suggest you file an issue to nbgit project or try our own implementation of git support (#131531) - basic features related to editing files, diffing and committing are already implemented and available on dev UC.