A very long nonsense error message from compiler

Now I broke it. But it is not my fault.

I was was editing and checking my program, when suddenly I got a new error message. This:

      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)

And so on and on. A very long message follows.

I wasn't doing anything special. The code I am editing isn't special, but a bit long, so I am not including it here now. This is repeatable, Restarted Arduino IDE gives same error with this source file.

What could be the problem.

I think I fixed it, this was broken

 smspalaute=gsm.SendSMS("+35phonenumber", teksti");

There were an extra " because I removed a fixed text "message" and made an error.

But the error message did not help at all. That is a problem.

Look at the message. The error is being caused by the regular expression parser. What the parse is doing is stripping comments out of the code before passing the uncommented code to the compiler.

The regex parser has issues with comments that contain comments and with comments that contain quotes.

Something like this:

int i=0; // "This is silly

can cause the parse problems.

The regex parser has issues with comments that contain comments and with comments that contain quotes.

Yep. I can see it now, expecially when I know what was wrong. That new kind of error message was not helpfull. “regex parser has issues” good to know. One comment still, my extra quote wasn’t in comment
smspalaute=gsm.SendSMS("+35phonenumber", teksti");
I though there was a problem with GMS library.

my extra quote wasn't in comment

Oh, yeah. That's the other thing it has problems with - mismatched quotes.

wow,that is crazay