Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By eldonb46
#29014 In the past I have compiled my code WITHOUT errors, but occupationally I get them even without any code modifications. Most often the errors occur just after starting a new Arduino IDE edit session.

Compiler errors:
Code: Select allat java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
at java.util.regex.Pattern$CharProperty.match(Pattern.java:3777)
.
.
.


I am using Arduino 1.6.5 with http://arduino.esp8266.com/stable/packa ... index.json on a LinuxMint 64bit Workstation.

NOTE: Before starting this Post, I was fed up and frustrated for getting the Errors. But while writing this post, (just now) I restarted the Arduino File Edit session and it compiled correctly WITHOUT errors, I did not change anything nor did I restart Arduino IDE. What Changed?

I had previously turned on: "Preferences > Show Verbose Output During Compilation", which provides absolutely NO additional details.

The Error "java.util.regex"messages are useless to me, they do not provide any insight, I do not know where to continue, except to WAIT and try again later, sometime that works.

Where can I get more information, or what can I do to track down this problem. So far, this has been extremely frustrating.

Thanks for any Help.

Eldon - WA0UWH
User avatar
By Touliloup
#29020 Seeing the exception I would say it has nothing to do with your code as the exception come from a code in Java.
I would say this is an exception in the code of the Arduino IDE itself as this one is written in Java.

You would have more chance getting answer by posting this on the Arduino forum as your error seems to have no relation with the ESP8266 but directly be related to Arduino IDE.
User avatar
By Luís Magalhães
#29021 I'm getting the exact same errors when trying to build a sketch with an HTML page... I've tried all the different ways of printing/sending HTML pages to the client and it's always in the HTML code that the sketch produces those errors. If I comment it out, then the sketch compiles correctly. Does your sketch have any HTML code and if you comment it, will the compilation work?
User avatar
By Luís Magalhães
#29031 Hey, as I've said before, I was having the same issue you're having. Turns out, the solution is pretty simple! If you look here, https://github.com/esp8266/Arduino/issues/222 and CTRL+F "java.util.regex.Pattern", you'll find Ivan Grokhotkov's answer, where he says

"This isn't the compiler, looks more like the Java preprocessor part has failed (the one which makes a .cpp out of .ino).
What happens if you add a .cpp file to your sketch and move your code there?"

For me, since my only problem was with the char variable with the HTML code, I created another tab called page.h, copied the variable there and included it in my main project with #include "page.h" and now it compiles everytime! Hope this helps you as much as it helped me.