code-google-com / qdevelop

Automatically exported from code.google.com/p/qdevelop
GNU General Public License v2.0
1 stars 1 forks source link

Mac Os - No code completion - Bug // in paths - InitCompletion.cpp. #274

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. No code completion for Qt members 
2.
3.

What is the expected output? What do you see instead?
Only members of current files for code completion. No completion for Qt
members. No file qdevelop.db

What version of the product are you using? On what operating system?
QDevelop 0.25 on Mac OS X Leopard PPC

Please provide any additional information below.
File : InitCompletion.cpp

Member : void InitCompletion::populateQtDatabase()

Ligne 576 :

QString command = ctagsCmdPath + " -L
"+QDir::tempPath()+"/qdevelopfilenames -f \"" + QDir::tempPath()+"/qttags" +
                      "\" --language-force=c++ --fields=afiKmsSzn
--c++-kinds=cdefgmnpstuvx \""
                      + m_qtInclude + '\"';

Produce the following QString “command” :

/Developer/qdevelop/ctags -L
/var/folders/Ik/IkFSXmc9HZuclCIXm7crRU+++TM/-Tmp-//qdevelopfilenames -f
"/var/folders/Ik/IkFSXmc9HZuclCIXm7crRU+++TM/-Tmp-//qttags"
--language-force=c++ --fields=afiKmsSzn --c++-kinds=cdefgmnpstuvx
"/usr/include"

As you can see, on Mac Os, ther are some doble slash // instead of simple
slash /.

So, paths must be create in a canonical (QDir) way to avoid double slash
due to difference between operating systems for Qt functions.

Original issue reported on code.google.com by JeanPier...@gmail.com on 24 Apr 2008 at 6:20

GoogleCodeExporter commented 9 years ago
Hello.

Here are the temp files of QDevelop on my computer. Paths with double // are 
not the
issue for code completion. Unix systems don't care about double slash in paths; 
I
just remember it after a trial.

From the temp files, it seems that QDevelop don't find the paths of Qt headers 
on Mac
OS X Leopard. I'm going to investigate this way. 

Original comment by JeanPier...@gmail.com on 28 Apr 2008 at 7:54

Attachments:

GoogleCodeExporter commented 9 years ago
Re Hello.

On Mac Os Leopard, Path of Qt include directory must be set to :

/Library/Frameworks

This must be done in the panel "Preferences", window tab "General", "QT include
directory" edit zone.

After that, I can say that code completion is working very well and at a very 
good
speed on my Mac Pro G5.

Bye.

Original comment by JeanPier...@gmail.com on 29 Apr 2008 at 5:50

GoogleCodeExporter commented 9 years ago
It think, you must set your path QTDIR=/Path/to/qt4dir  .. 

Original comment by donaldi...@gmail.com on 20 Jul 2008 at 10:43

GoogleCodeExporter commented 9 years ago
The issue seems to be due to incorrect path to Qt:
>> "/usr/include"
closing it. 

Original comment by Lord.Div...@gmail.com on 29 Mar 2009 at 6:00