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.
It is currently April 19th, 2024, 6:36 am
"regexp matching error (-1)"
-
- Posts: 180
- Joined: May 6th, 2021, 2:57 pm
-
- Rainmeter Sage
- Posts: 2603
- Joined: March 23rd, 2015, 5:26 pm
Re: "regexp matching error (-1)"
I don't think you can suppress these errors. You can suppress "Not enough substrings" errors by using LogSubstringErrors=0.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.
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.
-
- Posts: 180
- Joined: May 6th, 2021, 2:57 pm
Re: "regexp matching error (-1)"
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.
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.
-
- Posts: 180
- Joined: May 6th, 2021, 2:57 pm
Re: "regexp matching error (-1)"
yeah you are right. i was wrong. better prevent the error than have one.