Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » bug: code completion is not working when namespaces are used
bug: code completion is not working when namespaces are used [message #24269] Fri, 08 January 2010 12:13 Go to next message
aftershock is currently offline  aftershock
Messages: 143
Registered: May 2008
Experienced Member
Hi,

The code completion mechanism does not work if you try something like that:
mynamespace::varprefix
Re: bug: code completion is not working when namespaces are used [message #24312 is a reply to message #24269] Sun, 10 January 2010 14:44 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
aftershock wrote on Fri, 08 January 2010 06:13

Hi,

The code completion mechanism does not work if you try something like that:
mynamespace::varprefix


namespaces are ignored.
Re: bug: code completion is not working when namespaces are used [message #24317 is a reply to message #24312] Sun, 10 January 2010 16:43 Go to previous messageGo to next message
aftershock is currently offline  aftershock
Messages: 143
Registered: May 2008
Experienced Member
They should not be ignored..Do not you think?
Re: bug: code completion is not working when namespaces are used [message #24324 is a reply to message #24317] Mon, 11 January 2010 08:24 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
aftershock wrote on Sun, 10 January 2010 10:43

They should not be ignored..Do not you think?



In ideal world, yes.

In real world, I trade fast autocompletition for ignoring namespaces.

BTW, it is still the same issue: You can do this "correct way": that means running preprocesor on the file each time you request autocomplete and each time you leave the file (to have the global map of symbols).

Preprocessor itself on average file runs for 2-3 seconds. It creates an output that has about one million of lines (because of includes) - then you have to parse this file.

Plus, autocomplete would cease to work in certain header files too...

That is why I believe it is essential to cheat here.

Mirek
Re: bug: code completion is not working when namespaces are used [message #24398 is a reply to message #24324] Thu, 14 January 2010 09:35 Go to previous message
aftershock is currently offline  aftershock
Messages: 143
Registered: May 2008
Experienced Member
I cannot see why would you need to run the preprocessor each time.
You could cache it the symbol table deduced from the preprocessed files.
If the lines before includes change or header file change you could make the program redo the preprocessising.
Otherwise, you could just use the cached information.
In most cases, it would be fast.

Previous Topic: another parsing bug
Next Topic: umk options suggestion
Goto Forum:
  


Current Time: Thu Mar 28 15:10:56 CET 2024

Total time taken to generate the page: 0.01996 seconds