| Summary: | information panel shows incorrect number of lines for a file | ||
|---|---|---|---|
| Product: | [Applications] dolphin | Reporter: | illumilore <illumilore> |
| Component: | panels: information | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | adaptee, adrian, cfeck, leo, me |
| Priority: | NOR | ||
| Version First Reported In: | 2.1 | ||
| Target Milestone: | --- | ||
| Platform: | Unlisted Binaries | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 4.10 | |
| Sentry Crash Report: | |||
|
Description
illumilore
2011-12-14 02:10:45 UTC
I guess this is because of the 64k limit to speed up collecting meta data. I can reproduce this on KDE SC 4.9RC1. If this is indeed caused by a 64k limit, then Dolphin should either: not display the amount of lines, or show "Over X amount of lines". Showing an incorrect number is not useful. Resetting assignee to default as per bug #305719 Still happening in Dolphin 2.1.
Steps to reproduce:
1. Open Dolphin in a testing folder, and open the terminal (F4).
2. Run: for line in {1..20000}; do echo $line >> file.txt; done;
3. Hover the file with the cursor, and check what the Information panel says.
Expected results: The number of lines should be 20000.
Actual results: The number of lines is wrong. In my case, it always shows 12774 lines when the file has more lines than those, for those or less lines it works.
Yes, I can confirm. Christoph's assumption is probably right - note that the number of lines shown gets smaller if you modify Adriáns bash-loop such that each line has more text. I also agree with comment 2. With 4.10 the file size limit if 5 mb. If the file is larger than 5 mb then the line count is not shown. |