Bug#37086: open include file under cursor

Roland Krause rokrau at yahoo.com
Sun Jan 13 23:50:04 UTC 2002


Joerg,
this is because you dont use the ctags feature. Install "exuberant
ctags" from ctags.sf.net, then go to Options->KDevelop Setup,
[Documentation] and eneable ctags database. After that, the loading of
include files will work as expected. 

Second, yes, the behavior is unintuitive but in the old codebase it is
quite hard to improve (possible but only with a crude hack). I decided
to wait until the editor was replaced by kate. 

gideon has also implemented this feature, so has kate, havent looked as
to how these guys do it but I am open to suggestions on how to improve
things, i.e. a patch :-)

Roland
--- Jörg Rüppel <joerg at sharky-x.de> wrote:
> Hi again,
> 
> I tried what you suggested but it doesn't work properly. It only
> works when 
> the file I want to open is in the same dir as the file I am currently
> in, 
> even when the #include statement contains a relative path to the
> included 
> file from the current one. It also doesn't work for system headers
> (i.e. 
> #include <someheader.h> ). And marking the whole filename isnt very 
> intuitive, either. It would be better if KDevelop automagically
> noticed that 
> the cursor is in an include statement and also opens the header
> according to 
> the current context (i.e. open the same file as the preprocessor
> would ).
> 
> Just my 2 cents ( yes, we really have cents now here in Germany :)
> 
> Regards,
> Jörg
> 
> Am Samstag, 12. Januar 2002 19:12 schrieben Sie:
> > Hi,
> >
> > just highlight the filename, click on it with the right mouse
> button and
> > choose "Open File".
> >
> > Harry
> >
> > > Package: kdevelop
> > > Version: 2.0.2 (using KDE 2.2.2 )
> > > Severity: wishlist
> > > Installed from:    SuSE
> > > Compiler:          gcc version 2.95.3 20010315 (SuSE)
> > > OS:                Linux (i686) release 2.4.16-4GB
> > > OS/Compiler notes:
> > >
> > > Hello,
> > >
> > > I'm not sure if this has been wishlisted before, but I was not
> able to
> > > find something like this. I'd like to open header files thorugh a
> context
> > > menu when the cursor is in an include statement, like this
> > >
> > > #include "base.h"
> > >
> > > Right clicking and selecting open "base.h" should take to this
> file.
> > >
> > > (Submitted via bugs.kde.org)
> > > (Called from KBugReport dialog)
> 
> _______________________________________________
> Kdevelop-devel mailing list
> Kdevelop-devel at barney.cs.uni-potsdam.de
> http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/




More information about the KDevelop-devel mailing list