some functions not working after upgrade to 14.04

Bug #1311701 reported by John Frankland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi
Have recently upgraded Ubuntu to 14.04, it seems some functions in QtCreator
don't work anymore/not as well as before:

"Find Usages": when used with a class member or method, the only usages which seem to get reported
are those in '.h' files, not in any '.cpp' files, unless the symbol in question is actually in a '.cpp' file,
in which case the currently-clicked on occurrence appears in the list.

"Switch between function declaration/definition": works to take me from the '.cpp' to the '.h',
but not in the other direction

The two previous malfunctions are probably due to the following:
when I open a '.h' file for a class, the drop-down at the top of the editor is filled with the list of
symbols defined in the file, i.e. the member variables and methods of the class.
When I open the corresponding '.cpp' file, the drop-down is empty ("<No symbols>").
There seems to be a problem parsing the .cpp files?

The C++ project I am working on is one I have been developing with QtCreator for a few years
(and a few versions) now. I re-generated the project files (did a new 'Import Existing C++ Project')
with the new version of QtCreator.

Thanks for your help

Revision history for this message
John Frankland (frankland) wrote :

This seems to be fixed after:
1) deleting the ~/.config/QtProject and ~/.config/Trolltech directories
2) deleting all Trolltech directories/files in ~/.local/share/data (there was no QtProject directory)
3) complete uninstall of QTCreator with Synaptic
4) restart computer
5) install QtCreator with Synaptic

Revision history for this message
John Frankland (frankland) wrote :

Oops, no, in fact the problem seems to come from the fact that my project is based on another
set of C++ libraries, and I add the 'include' path to all the '.h' of this project to myproject.includes
in order for the editor/code completion/etc. to work also for the classes in the other libraries.

This is what I have done for the last few years with no problem.

But now it seems that as soon as I do this, after QtCreator reparses my code, some (not all)
of my '.cpp' files have no recognized symbols (i.e. the drop-down list is empty), and the
symptoms I described above occur.

The only solution I have found for the moment is to import the other libraries' source tree as a
QtCreator project and declare it as a dependency of my project, which seems to allow nearly
all of the classes in the other project to be recognized by the code parser, without causing
problems when it comes to my source code.

Revision history for this message
John Frankland (frankland) wrote :

actually, the following doesn't work either:

"The only solution I have found for the moment is to import the other libraries' source tree as a
QtCreator project and declare it as a dependency of my project, which seems to allow nearly
all of the classes in the other project to be recognized by the code parser, without causing
problems when it comes to my source code."

Revision history for this message
Pander (pander) wrote :

Is this still valid? Otherwise, please close this bug.

Revision history for this message
John Frankland (frankland) wrote :

No longer a problem for me. How do I close the bug?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.