Page MenuHomePhabricator

Warning templates inserted under the wrong section
Closed, ResolvedPublic

Description

If a user talk page has multiple sections for months/years, the Huggle templates frequently end up in the wrong section, so I had to spot check and sometimes re-order them manually, which is a little embarrassing (e.g. this diff https://en.wikipedia.org/w/index.php?title=User_talk:213.78.108.165&diff=prev&oldid=1269800715)

Disabling "merge your message with others in existing sections" seems to workaround the problem, but now I spam new sections, which is also not great!

Version: 3.4.13-3-gcee5d7a9, compiled using QT 6.7.2, running on Debian

Event Timeline

I've also had problems with the report user module thinking a user was not reported at AIV when they really were (several minutes ago). There might be something weird with how my install of HG parses pages in general, almost like it has trouble finding existing content.

Ah, I can actually reproduce the problem locally with a unit test. This is a bug with QRegularExpression, so it only happens on Qt6 builds currently.

Pull request with a fix: https://github.com/huggle/huggle3-qt-lx/pull/376

Mlkj claimed this task.