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 252297 - java.util.regex.PatternSyntaxException: Unexpected internal error near index 2 x\ ^
Summary: java.util.regex.PatternSyntaxException: Unexpected internal error near index ...
Status: RESOLVED WONTFIX
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
: 268812 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-08 10:31 UTC by aplatypus
Modified: 2016-11-03 17:28 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 215968


Attachments
stacktrace (3.02 KB, text/plain)
2015-05-08 10:31 UTC, aplatypus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aplatypus 2015-05-08 10:31:33 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Windows 7

User Comments:
GUEST: Againg when saving a file

GUEST: After updating Netbeans and restart.

GUEST: Git???

GUEST: ?????????????? ????????? ??????? ????????? ????????. ????? ??????? ????????, ??????? ????? ?????????. ???????? ????????? ??????, ??????? ???, ?? ???????. ???????????? ????????? ?????????, ???? ??????.

aplatypus: just opened the netbeans ide

GUEST: AutoComplete doesn't work, except own class methods.

GUEST: Just booting the IDE under windows

GUEST: IDE?????




Stacktrace: 
java.util.regex.PatternSyntaxException: Unexpected internal error near index 2
x\
  ^
   at java.util.regex.Pattern.error(Pattern.java:1955)
   at java.util.regex.Pattern.compile(Pattern.java:1702)
   at java.util.regex.Pattern.<init>(Pattern.java:1351)
   at java.util.regex.Pattern.compile(Pattern.java:1028)
   at org.eclipse.jgit.ignore.internal.Strings.convertGlob(Strings.java:352)
   at org.eclipse.jgit.ignore.internal.WildCardMatcher.<init>(WildCardMatcher.java:66)
Comment 1 aplatypus 2015-05-08 10:31:35 UTC
Created attachment 153564 [details]
stacktrace
Comment 2 Exceptions Reporter 2015-05-08 10:55:20 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=215968
Comment 3 Ondrej Vrabec 2015-05-08 11:20:30 UTC
Please fix .gitingore file in your git clone, it seems to contain an invalid pattern.
Comment 4 bmewburn 2015-06-26 04:26:49 UTC
I cleaned out my .gitignore file and still get this exception. Anyone have another workaround/solution?
Comment 5 Ondrej Vrabec 2015-07-10 12:08:14 UTC
It's not only in .gitignore but i can see also reports caused by corrupted .git/info/exclude file.
Comment 6 amobilia 2016-11-03 16:56:19 UTC
*** Bug 268812 has been marked as a duplicate of this bug. ***
Comment 7 amobilia 2016-11-03 16:57:47 UTC
I add to a .gitignore file the line :
nbproject\

Then occurs the exception.


Product Version: NetBeans IDE Dev (Build 201610260002)
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13
System: Windows 10 version 10.0 running on amd64; Cp1252; fr_FR (nb)
User directory: C:\Users\Anael\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Anael\AppData\Local\NetBeans\Cache\dev
Comment 8 Ondrej Vrabec 2016-11-03 17:28:57 UTC
nbproject\
is an invalid pattern. Git does not understand backslashes its paths. You probably want this:
nbproject/