From kwrite-devel Sat Sep 17 09:23:10 2022 From: Alexander Neundorf Date: Sat, 17 Sep 2022 09:23:10 +0000 To: kwrite-devel Subject: Re: Build plugin: error/warning detection currently broken ? Message-Id: <4450816.cEBGB3zze1 () unknown0090f5ef9f13> X-MARC-Message: https://marc.info/?l=kwrite-devel&m=166340629800621 On Samstag, 17. September 2022 00:20:26 CEST Alexander Neundorf wrote: > Hi, >=20 > current git does not recognize my error messages and warnings (gcc 12) as > errors or warnings anymore. > It looks like it's this commit: > https://github.com/KDE/kate/commit/7753a3c037a1c94e7bec81dbf1978cb9c11e45= de[ > 1] >=20 > The \b breaks it. > Below is one error and one warning message which are both not detected as > error/ warning. I changed it to test for "error:" and "warning:", which > makes it work for me (but I haven't tested yet with other compilers) > error: =E2=80=98as=E2=80=99 was not declared in this scope > warning: unused variable =E2=80=98error=E2=80=99 [-Wunused-variable] if I find the time, I'd like to extract the warning/error matching into a=20 separate class with a unit test (so we can make sure it doesn't break). Where should I put the test, kate/addons/katebuild-plugin/test/ maybe ? (are the file sin that directory still used actually) ? Alex