[Gambas-user] Headlines - RegEx submatch deprecation breaks office apps

Benoît Minisini gambas at ...1...
Mon Nov 18 00:06:33 CET 2013


Le 17/11/2013 22:56, richard terry a écrit :
> Hi Benoit, List,
>
> I upgraded to what by accounts on the list was a stable package of
> version 3.5, this immediately broke our regex.submatches with the
> program crashing saying that this was 'deprecated'.
>
> Doing a global commit to the new syntax and an svn commit of our own
> code then left us in a dilemma.
>
> Now my 3.4.1 machines won't run the new code, which means users in other
> offices (read very busy general practices * 2  in NSW + 1 specialist
> office in Melbourne) are stuck.
>
> Any chance of leaving deprecated code in a bit longer until those of us
> who lag a little behind get a chance to find out and update - often not
> a trivial task.
>
> When one is running a busy office this is commercially dislocating to
> say the least.
>
> How does one find old packages e.g 3.4.1 to go back to in this sort of
> situation?
>
> It also means that any new improvements in our EasyGP program which we
> are working hard at to get to version 1.0 by early next year, can't be
> pushed out to users who are our beta testers. Like Gambas our effort is
> totally open source not designed for making money, just designed to give
> free/open medical software to the community.
>
> Hope this makes sense.
>
>
> Regards
>
> richard
>

The RegEx.Submatches property just print a warning message on the 
standard error output, so I don't understand how it could break your 
office apps. Can you explain me?

Anyway, if this is really the case, overriding the RegExp class in your 
main project with another one that prevents the original SubMatches 
property from being called should solve the problem and will allow you 
to run your program with Gambas 3.5. Just explain me the first point, 
and I will do it for you.

Regards,

-- 
Benoît Minisini




More information about the User mailing list