It is currently April 19th, 2024, 6:36 am

"regexp matching error (-1)"

Get help with creating, editing & fixing problems with skins
Judian81
Posts: 180
Joined: May 6th, 2021, 2:57 pm

"regexp matching error (-1)"

Post by Judian81 »

hey hello,

i have made a skin and use webparser. i got an error in debug.
"regexp matching error (-1)"

i know that there is noting wrong. in some cases there is no information because of different settings.

but my question is how can i stop the debugger to show the error.
User avatar
SilverAzide
Rainmeter Sage
Posts: 2603
Joined: March 23rd, 2015, 5:26 pm

Re: "regexp matching error (-1)"

Post by SilverAzide »

Judian81 wrote: August 17th, 2021, 2:31 pm hey hello,

i have made a skin and use webparser. i got an error in debug.
"regexp matching error (-1)"

i know that there is noting wrong. in some cases there is no information because of different settings.

but my question is how can i stop the debugger to show the error.
I don't think you can suppress these errors. You can suppress "Not enough substrings" errors by using LogSubstringErrors=0.

What you might have to do is use lookhead assertions. These can be rather complex if you are not used to creating them. If you need help, you'll need to post your code so that people can see your regexp and the data you are trying to parse. Your other option is to disable the WebParser measure until you know data is available or the option is applicable (per your skin), then enable it on demand once you know data exists.
Gadgets Wiki GitHub More Gadgets...
Judian81
Posts: 180
Joined: May 6th, 2021, 2:57 pm

Re: "regexp matching error (-1)"

Post by Judian81 »

in this case i cannot suppress the error by using LogSubstringErrors=0.
i have tryed Debug=0 but also do not a thing.


in this case it is good to get this error. it is not wrong because it could be there or not.
every minute it will update the measures. and if somebody plays a game i can capture that.
if the same person is not playing the game. the info is not in the page anymore.


is there any way to intercept an error?
i intercepted the case if the html element is not there anymore to not noticed the word playing.
Judian81
Posts: 180
Joined: May 6th, 2021, 2:57 pm

Re: "regexp matching error (-1)"

Post by Judian81 »

SilverAzide wrote: August 17th, 2021, 2:49 pmlookhead assertions
yeah you are right. i was wrong. better prevent the error than have one.