Bug 51429 - Two Classes view bugs
Summary: Two Classes view bugs
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: classbrowser (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-02 10:52 UTC by András Manţia
Modified: 2013-03-31 01:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description András Manţia 2002-12-02 10:52:30 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          g++ 2.95.3 
OS:          Linux

Three bugs in the Classes view:

1.
I have the following structure in my project:

quanta (dir)
  parser (dir)
    parser.cpp
    parser.h
    node.cpp
    node.h
    ...
...

The parser.h contains the definition of Parser class and the node.h
the definition of the Node class. Now in the Classes view I see
Classes
  quanta
    parser 
      Node
      ...
...

So, the Parser class does not appear in the view. It does appear if I
select List By Namespace, but the Project Options->Class View
setting has no influence on it.


2. Under Structs the structs are listed, but they do not show their
attributes.

3. Clicking with LMB on a struct opens the file where it is declared, but
does not go to the definition line. MMB opens and goes to the right line.
Even in the case of classes the old behaviour was more logical, but if
you have chosen that LMB opens the implementation file, it should jump
to the implementation of first method of the class.

Andras
Comment 1 Caleb Tennis 2003-01-01 03:25:16 UTC
1. Okay, after some investigation I found that this is happening because you  
have two Parser classes in the same namespace, but in different sub projects.   
The class view is only smart enough to handle one, so it finds the one in  
kommander/editor.  I'm not sure how high of a priority it will be to fix this 
or if it is even considered a 'bug'.  
  
2. Fixed in CVS..thank you. 
 
3. Fixed in CVS also.  Thanks. 
Comment 2 András Manţia 2003-01-02 14:43:56 UTC
Hi, 
 
1. Yes, indeed. I do not maintain Kommander, so I haven't realized the Parser class there. But I 
still consider it to be a bug, as it does not show correctly all the classes and because there are 
times when it appears in the classes tree... I don't have a way to reproduce it, but after working 
on the my parser class, which was not shown before, suddenly it appeared in the tree... 
 
Andras 
Comment 3 András Manţia 2003-01-07 17:09:39 UTC
Subject: Re:  Two Classes view bugs

> ------- Additional Comments From caleb@aei-tech.com  2003-01-01 03:25
> ------- 1. Okay, after some investigation I found that this is happening
> because you have two Parser classes in the same namespace, but in different
> sub projects. The class view is only smart enough to handle one, so it
> finds the one in kommander/editor.  I'm not sure how high of a priority it
> will be to fix this or if it is even considered a 'bug'.

One more reason why this is a bug: the class view behaves wrong, even if we 
say that it supports only one class with the name Parser in a namespace, when 
you switch to "List by Namespaces". In this case under the Parser will appear 
a mix of the two Parser classes methods, and:

1. clicking on the Parser node opens the first parser.h (from the kommander 
subproject).

2. clicking on the Parser ctor opens the second parser.h and the corresponding 
parser.cpp.

BTW it's pretty bad that subprojects are in the same namespace, as usually 
they are not tighted to the main project, both works and can be released 
separately, and as the classes with same name does not conflict during 
compilation/linking/runtime, they shouldn't cause any conflict for KDevelop 
either. Of course, it's possible to develop even in this case, but this is 
definetly a bug. If you wish I reopen this bug report or create  a new one 
for this.

Andras


Comment 4 Caleb Tennis 2003-01-08 15:05:41 UTC
Reopening because this is indeed a bug that can be fixed. 
Comment 5 Jens Dagerbo 2003-09-01 03:04:41 UTC
As far as I can tell, this now works fine with the new classbrowser. Closing. 
Comment 6 Jens Dagerbo 2003-09-01 03:08:03 UTC
hmm.. konqueror is buggy. ;)
Comment 7 Aleix Pol 2013-03-31 01:30:56 UTC
moving to kdevplatform's classbrowser