Bug 333936 - The project overview tab is empty after loading an existing project
Summary: The project overview tab is empty after loading an existing project
Status: RESOLVED NOT A BUG
Alias: None
Product: lokalize
Classification: Applications
Component: project management (show other bugs)
Version: 1.5
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-26 20:51 UTC by Eloy Cuadra
Modified: 2014-06-02 15:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eloy Cuadra 2014-04-26 20:51:11 UTC
After update to KDE 4.13, the project overview does not list the files of the project.

Reproducible: Always

Steps to Reproduce:
1. Open a Lokalize project from the command line or use the related menu options to load an existing project.

Actual Results:  
No files in the project overview tab.

Expected Results:  
Show the files of the loaded project.

No hints from the command line output. Maybe an issue related to the change from Nepomuk to Baloo? Strigi?
Comment 1 Soenke Dibbern 2014-05-05 22:27:10 UTC
I have the same issue. Downgrade to a previous (KDE 4.11/.12) version doesn't help either.
Comment 2 Alex Minton 2014-05-11 17:48:10 UTC
Just a few lines from xsession-errors (appeared on opening Lokalize with existing project), hopefully to shed some light on the issue:

loadProjectScripts() 1111 "/home/minton/Translations/opensuse-i18n/lokalize/trunk-ru" 
loadProjectScripts() 333 
lokalize(24112) ProjectScriptingPlugin::~ProjectScriptingPlugin: ("scripts.rc") 
loadProjectScripts() 444 
loadProjectScripts() 555 
loadProjectScripts() 666 
Kross: "Loading the interpreter library for qtscript" 
Kross: "Successfully loaded Interpreter instance from library." 
Kross: "Loading the interpreter library for python" 
Kross: "Successfully loaded Interpreter instance from library." 
Kross: "PythonScript::Constructor." 
Kross: "PythonScript::execute" 
Kross: "Error error=Invalid scripting code for script 'opensrc' lineno=-1 trace=
" 
Kross: "PythonScript::Destructor." 

So, probably Kross or Python issue.
Comment 3 Nick Shaforostoff 2014-05-12 10:58:02 UTC
can you show output of 'xmlindexer somepofile.po'
Comment 4 Eloy Cuadra 2014-05-12 13:15:05 UTC
xmlindexer works OK. For example, executing xmlindexer kcalc.po:


<?xml version='1.0' encoding='UTF-8'?>
<metadata>
 <file uri='kcalc.po' mtime='1396724034'>
  <value name='http://www.semanticdesktop.org/ontologies/2007/01/19/nie#url'>kcalc.po</value>
  <value name='http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#wordCount'>5803</value>
  <value name='translation.translation_date'>2014-04-04 19:43+0200</value>
  <value name='translation.last_translator'>Eloy Cuadra &lt;ecuadra@eloihr.net&gt;</value>
  <value name='http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#lineCount'>1723</value>
  <value name='translation.source_date'>2014-04-02 01:52+0000</value>
  <value name='http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#characterCount'>42263</value>
  <value name='translation.untranslated'>0</value>
  <value name='translation.total'>325</value>
  <value name='translation.translated'>325</value>
  <value name='translation.fuzzy'>0</value>
  <value name='http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName'>kcalc.po</value>
  <value name='http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#hasHash'>:nwlrb</value>
  <value name='http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentSize'>43986</value>
  <value name='http://www.w3.org/1999/02/22-rdf-syntax-ns#type'>http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#TextDocument</value>
  <value name='http://www.w3.org/1999/02/22-rdf-syntax-ns#type'>http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FileDataObject</value>
  <value name='http://www.semanticdesktop.org/ontologies/2007/01/19/nie#lastModified'>1396724034</value>
  <value name='http://www.semanticdesktop.org/ontologies/2007/01/19/nie#isPartOf'></value>
  <value name='http://strigi.sf.net/ontologies/0.9#depth'>0</value>
  <text># translation of kcalc.po to Spanish
    [...]
</text>
 </file>
</metadata>
Comment 5 Eloy Cuadra 2014-05-13 10:19:58 UTC
Hope this info can throw some light...

Building Lokalize from source code and making some debug test, I've found that KFileMetaInfo in projectmodel.cpp shows 0 keys for every item leading to no stats for them.

Browsing the KFileMetaInfo source code I've seen that it heavily depends on Strigi and Nepomuk stuff. As I suspected, this issue can be related to the transition from Nepomuk/Strigi to Baloo.

My distro (openSUSE) doesn't run Nepomuk/Strigi in KDE 13.0. So, should we consider this problem a bug in KFileMetaInfo (kdelibs), or a bug in Lokalize? Or just a bug in openSUSE packages?
Comment 6 Eloy Cuadra 2014-06-02 15:19:55 UTC
As I suspected, it was a bug in openSUSE packages for KDE. The last update of some base packages fixed this issue.

I'm closing this bug today. Sorry for making noise at the wrong place! :-)