Bug 388073 - Unable to display "Line Count" for text (document) files
Summary: Unable to display "Line Count" for text (document) files
Status: RESOLVED NOT A BUG
Alias: None
Product: dolphin
Classification: Applications
Component: panels: information (other bugs)
Version First Reported In: 17.12.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2017-12-20 14:06 UTC by Paul
Modified: 2022-01-28 08:40 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
14.12.3 displays "Line Count" (left) - 17.12.0 does not (right). (43.30 KB, image/png)
2017-12-20 14:06 UTC, Paul
Details
Screen-shot showing absence of "Line Count" option (71.02 KB, image/png)
2019-02-25 12:48 UTC, Paul
Details
Screen-shot showing absence of "Line Count" option - Dolphin 20.08.2 (101.57 KB, image/png)
2020-10-28 09:17 UTC, Paul
Details
New user with default settings - Screen-shot showing absence of "Line Count" option - Dolphin 20.08.2 (90.46 KB, image/png)
2020-10-28 10:35 UTC, Paul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul 2017-12-20 14:06:04 UTC
Created attachment 109460 [details]
14.12.3 displays "Line Count" (left) - 17.12.0 does not (right).

The information panel no longer has the ability to display "Line Count" for text (document) files, as was possible in earlier releases.

Attached composite screen shot shows dolphin 14.12.3 (left) with 17.12.0 (right).
Comment 1 Julian Steinmann 2018-01-27 16:52:47 UTC
I do have this option again in Dolphin 17.12.1. Could you confirm that this is now working as expected?
Comment 2 Patrick Silva 2018-01-28 01:01:55 UTC
"line count" is missing on my two systems: Arch Linux (dolphin 17.12.1) and neon dev unstable.
Comment 3 Paul 2018-01-29 12:28:06 UTC
"Line Count" option still absent from "Configure" (Information Panel) in 17.12.1 (openSUSE TW 20180124)

Adding "lineCount=true" to "~/.config/baloofileinformationrc" does not work either.  "Line Count" option still missing.
Comment 4 Nate Graham 2019-02-23 15:16:39 UTC
This information is provided by KFileMetadata and.or baloo-widgets, and it works for me in the latest releases. Please let me know if you can still reproduce the issue in KDE Applications 18.12.x and KDE Frameworks 5.55
Comment 5 Paul 2019-02-25 12:48:30 UTC
Created attachment 118351 [details]
Screen-shot showing absence of "Line Count" option

Sorry Nate, but this appears unchanged.  The "Line Count" option is still absent, as shown in attached screen-shot.

Using:
Operating System: openSUSE Tumbleweed 20190219

KDE Plasma Version: 5.15.0
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.0

Dolphin / KDE Applications: 18.12.2
Comment 6 Patrick Silva 2019-02-25 12:51:33 UTC
It's still missing here too, with Dolphin 18.12.2.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.1
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1
Comment 7 Paul 2019-02-25 13:52:59 UTC
Setting status back to "Reported" as this is confirmed still a problem by "Patrick Silva".
Comment 8 Justin Zobel 2020-10-28 01:06:39 UTC
Paul can you please test on a recent Dolphin version. I am getting a Line Count for text files on Dolphin from git master.
Comment 9 Paul 2020-10-28 09:17:59 UTC
Created attachment 132827 [details]
Screen-shot showing absence of "Line Count" option - Dolphin 20.08.2

Line count option still not available in Dolphin 20.08.2, which is the latest version I'm able to test.
Comment 10 Paul 2020-10-28 09:21:09 UTC
Information provided, setting status back to reported.
Comment 11 Paul 2020-10-28 10:35:04 UTC
Created attachment 132829 [details]
New user with default settings -  Screen-shot showing absence of "Line Count" option - Dolphin 20.08.2

Also tested with a new user, all (KDE) default settings, same behaviour. No option to display "line count".
Comment 12 Nate Graham 2020-10-28 13:52:51 UTC
I can reproduce this on openSUSE Tumbleweed with everything built from source.

Another data point: I can make the "Line Count" column appear in details view, but it is always blank and no data shows up in it.
Comment 13 Paul 2020-10-28 14:21:17 UTC
It was openSUSE TW in the screenshots of comments #9 and #11

Same behaviour with openSUSE Leap 15.2 and Dolphin 20.04.2

But... I don't think it's specific to openSUSE distributions as this was also confirmed by @Patrick Silva in comment #6 where the distribution was Arch Linux.
Comment 14 Joshua Goins 2022-01-26 21:06:33 UTC
I can no longer reproduce this on Fedora 35 KDE (Plasma: 5.23.4, Frameworks: 5.89.0, Qt: 5.15.2). It's important to note that for the "Line Count" in your file metadata (which is shared by the details view, the information view, and the properties window) to be populated it's required for Baloo to have the file and it's content indexed.

Relevant code: https://invent.kde.org/frameworks/kfilemetadata/-/blob/master/src/extractors/plaintextextractor.cpp#L89
Relevant roles only available with Baloo: https://invent.kde.org/flyingcakes/dolphin/-/blob/master/src/kitemviews/kfileitemmodel.h#L295

Not related to this bug, but these should really be clearly marked that they do not function at all if Baloo is not indexing this file or directory.
Comment 15 Patrick Silva 2022-01-27 11:32:23 UTC
works for me on neon unstable.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 16 Paul 2022-01-28 08:40:50 UTC
(In reply to Joshua Goins from comment #14)
> ...
> 5.89.0, Qt: 5.15.2). It's important to note that for the "Line Count" in
> your file metadata (which is shared by the details view, the information
> view, and the properties window) to be populated it's required for Baloo to
> have the file and it's content indexed.
> ...

OK, thanks for the information. I have Baloo indexing disabled, (prefer to use "recoll" for file content indexing). So, "not a bug", will mark as such.