This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] Regular expression doesn't work on Filter

Tags: None
(comma "," separated)
metalinx
Registered Member
Posts
39
Karma
0
OS
I run tellico-3.4.1 on Mageia 8. When I use regex on Filter, it doesn't work at all (and of course, the feature such as 'Filter by Group' shall not work).

When I click on `Filter` icon, there's an error:
Code: Select all
kf.service.services: KServiceTypeTrader: serviceType "KRegExpEditor/KRegExpEditor" not found


I downloaded and installed `kregexpeditor` but regex still does not work with `tellico`.

Last edited by metalinx on Sat Jun 12, 2021 8:28 pm, edited 1 time in total.
robbystephenson
KDE Developer
Posts
384
Karma
1
OS
metalinx wrote:I run tellico-3.4.1 on Mageia 8. When I use regex on Filter, it doesn't work at all (and of course, the feature such as 'Filter by Group' shall not work).

My tests work as expected. What version of Qt do you have? And no regular expression works for you? Not even very simple ones? How about filtering in general?
metalinx wrote:When I click on `Filter` icon, there's an error:
Code: Select all
kf.service.services: KServiceTypeTrader: serviceType "KRegExpEditor/KRegExpEditor" not found

I downloaded and installed `kregexpditor` but regex still does not work with `tellico`.

Don't worry about that. It's just a deprecated warning for a regular expression editor.
metalinx
Registered Member
Posts
39
Karma
0
OS
robbystephenson wrote:My tests work as expected. What version of Qt do you have? And no regular expression works for you? Not even very simple ones? How about filtering in general?


I have Qt version 5.15.2.
And I have to correct myself that Tellico works with very simple regex pattern such as `C?medy`or `C.*edy`, but not for another simple ones such as `^Comedy$`, or `^Comedy`.

In the `Group view` panel, and when I right click on a group, such as `Comedy`, and choose `Filter by Group`. The `Advanced Filter` shows that it filters by pattern `(^|;\s)Comedy($|;)` but there is no result.

All patterns are tested successfully on `QRegularExpression Example` provides by Qt.

P/S: It's the first time I use Tellico, so I don't know if it worked for previous version!
metalinx
Registered Member
Posts
39
Karma
0
OS
I don't know why, but after re-install tellico, it works!
robbystephenson
KDE Developer
Posts
384
Karma
1
OS
metalinx wrote:I don't know why, but after re-install tellico, it works!

Well, I don't have an explanation for that, but great to hear!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]