Bug 400477

Summary: Strange project screen when starting
Product: [Applications] lokalize Reporter: Freek de Kruijf <freekdekruijf>
Component: generalAssignee: Simon Depiets <sdepiets>
Status: RESOLVED FIXED    
Severity: normal CC: adrian, shafff
Priority: NOR    
Version First Reported In: 2.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot with more or less empty lines
Screenshot without more or less empty lines
Project file which shows quite often with more or less empty lines in window Project

Description Freek de Kruijf 2018-10-30 11:46:34 UTC
Created attachment 115979 [details]
Screenshot with more or less empty lines

SUMMARY
Regularly, but not always, when I start lokalize with --project <project_file> the window with the tree structure of the .po files has extra more or less empty lines.

STEPS TO REPRODUCE
1. Start lokalize --project <project_file>
2. The window with the project tree is shown as in the attached picture
3. 

OBSERVED RESULT
See attached picture with more or less empty lines

EXPECTED RESULT
Only lines with docmessages and messages without empty lines (see other attached picture)

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.14.1
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
Comment 1 Freek de Kruijf 2018-10-30 11:47:21 UTC
Created attachment 115980 [details]
Screenshot without more or less empty lines
Comment 2 Freek de Kruijf 2018-10-30 11:49:46 UTC
Created attachment 115981 [details]
Project file which shows quite often with more or less empty lines in window Project
Comment 3 Simon Depiets 2018-10-30 15:27:35 UTC
Is it automatic when you switch from one project to another ?

Or does one of your project folders contain subfolders with no .po files inside ?
Comment 4 Freek de Kruijf 2018-10-30 15:39:54 UTC
(In reply to Simon Depiets from comment #3)
> Is it automatic when you switch from one project to another ?

No, it is when I start a new lokalize process clicking on the project file which has an extension .lokalize, defined to start the lokalize process with a command "lokalize --project %f". Where %f is replaced by the file I clicked on. Sometimes it starts with these more or less empty lines, otherwise without these.
I do start processes using other project files, but only two of these files show this behavior.

> Or does one of your project folders contain subfolders with no .po files
> inside ?

No, see above.
Comment 5 Adrián Chaves (Gallaecio) 2019-11-29 10:47:33 UTC
Does this continue to happen? If you inspect the contents of the project files, both the ones causing the issue and the ones not causing it, can you identify any difference between each group?
Comment 6 Freek de Kruijf 2019-11-29 11:24:58 UTC
(In reply to Adrián Chaves (Gallaecio) from comment #5)
> Does this continue to happen? If you inspect the contents of the project
> files, both the ones causing the issue and the ones not causing it, can you
> identify any difference between each group?

Lately it did not appear anymore, so seems to be solved. RESOLVED.