tweezy23 / anyedittools

Automatically exported from code.google.com/p/anyedittools
2 stars 0 forks source link

AnyEdit 2.4.8.201406241900 is incompatible with Java 6 #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Remove old version of AnyEdit Tools. Restart Eclipse
2. Install latest version of AnyEdit Tools. Restart Eclipse
3. AnyEdit hotkeys, menu commands or auto-convert actions have no effect.

When enabling "Before editor buffer will be saved ..." - "Convert tabs --> 
spaces" in AnyEdit preferences, Eclipse prompts "Could not initialize class 
de.loskutov.anyedit.util.TextUtil".

What version of the product are you using? On what operating system?
Eclipse 3.7.2.v20120207, Aptana Studio 3.4.2.201308081805, AnyEdit tools 
2.4.8.201406241900

Anyway: Thanks for this great plugin!

Original issue reported on code.google.com by hackpfa...@googlemail.com on 25 Jun 2014 at 10:06

GoogleCodeExporter commented 9 years ago
Can you please attach the error log here?
Thanks.

Original comment by iloveeclipse on 25 Jun 2014 at 10:09

GoogleCodeExporter commented 9 years ago
I can't reproduce with plain vanilla Eclipse 3.7.1 & anyedit.
*please* stack trace from the error log.
BTW which Java version do you use?
Anyedit *requires* Java 6 from 2.4.8.

Original comment by iloveeclipse on 25 Jun 2014 at 10:22

GoogleCodeExporter commented 9 years ago

Original comment by iloveeclipse on 25 Jun 2014 at 10:23

GoogleCodeExporter commented 9 years ago
Whoa, you are fast. Here's the log file.

Original comment by hackpfa...@googlemail.com on 25 Jun 2014 at 10:27

Attachments:

GoogleCodeExporter commented 9 years ago
OK, you have Java 6 and the related stack part is:

Caused by: java.util.regex.PatternSyntaxException: Look-behind group does not 
have an obvious maximum length near index 12
\$((?<one>\w+)|[\{\(](?<two>\w+)[\)\}])
            ^
    at java.util.regex.Pattern.error(Pattern.java:1713)
    at java.util.regex.Pattern.group0(Pattern.java:2488)
    at java.util.regex.Pattern.sequence(Pattern.java:1806)
    at java.util.regex.Pattern.expr(Pattern.java:1752)
    at java.util.regex.Pattern.group0(Pattern.java:2530)
    at java.util.regex.Pattern.sequence(Pattern.java:1806)
    at java.util.regex.Pattern.expr(Pattern.java:1752)
    at java.util.regex.Pattern.compile(Pattern.java:1460)
    at java.util.regex.Pattern.<init>(Pattern.java:1133)
    at java.util.regex.Pattern.compile(Pattern.java:823)
    at de.loskutov.anyedit.util.TextUtil.<clinit>(TextUtil.java:81)
    ... 43 more

Seems that Java 6 has not so good Pattern matcher as Java 7.

Original comment by iloveeclipse on 25 Jun 2014 at 10:39

GoogleCodeExporter commented 9 years ago
Fixed in source: 
https://code.google.com/a/eclipselabs.org/p/anyedittools/source/detail?r=717722c
36a7b2620f8af45bd760e9955c9ba7467

Release will be prepared ASAP.

Original comment by iloveeclipse on 25 Jun 2014 at 11:00

GoogleCodeExporter commented 9 years ago
I've released 2.4.8.201406251302.
Please restart Eclipse and update Anyedit from the default update site. 
Afterwards please restart Eclipse again and check if this time it works.
Thanks for the bug report!
P.S.
Don't forget to add anyedit to your favorites 
(https://marketplace.eclipse.org/content/anyedit-tools)

Regards,
Andrey

Original comment by iloveeclipse on 25 Jun 2014 at 11:11

GoogleCodeExporter commented 9 years ago
P.S. Can you please confirm that the fixed version works for you? Thanks.

Original comment by iloveeclipse on 25 Jun 2014 at 11:23

GoogleCodeExporter commented 9 years ago
Hi Andrey,
the fixed version works fine. Thank you for your support!

Regards,
Fritjof

Original comment by hackpfa...@googlemail.com on 25 Jun 2014 at 11:40