Hi Sharninder,

Well, this isn't the right place to discuss about this, but anyway to
enlighten ...

On Mon, 2003-09-08 at 11:38, Sharninder Singh wrote:
> but one thing i have always missed (and wondered
> wether it was really that difficult to implement !!) is the ability of the
> IDE to refresh the side window containing the module/function list as soon
> as a new function/module/variable is added to the program.
> 
This is not the first time it's been brought up. We had many discussion
on this and the result is the 'SourceBase' project (founded by
Biswapesh, another Indian, who is also Anjuta developer). But it's in
its infancy right now.

The incremental update you mentioned isn't that easy to implement as you
speculated with the current code base. There are so many things.

First is that you will literally require a 'compiler' running in
parallel, which is much 'smarter' than your regular compiler, since it
won't be getting any sensible code most of the time.

Second is the editor is overloaded with runtime parsing (eg, syntax
highlighting, autocompletion, calltips etc.) and putting the incremental
symbol parser right next to them would crawl the editor.

Third is the parser used in Tagmanager (in Anjuta) doesn't support
incremental parsing and would require complete re-implementation of all
the parsers.

> I have observed
> that both in Kdevelop and Anjuta one has to save the project and manually
> refresh the modules window to make the newly added code to appear in the
> list.
Normally, saving the file is all that's required to updated the symbol
list. You do not need to refresh it again explicitly.

> I was able to atleast make the modules list refresh
> whenever the enter key was pressed ( I know this is not exactly wat we want,
> I forgot to save the project and then refresh .. but u get the idea
> basically !!).
I am interested in how you did that. Are you refreshing symbol database
every time you press Enter? That won't sound like an incremental update,
nor would it be very pleasant to edit under such load.

> After two hours of fiddling with the code and grepping the source if I could
> manage to add the above feature whats stopping the developers to add this
> feature to the IDEs (This is for the first time i was looking at the source
> code of Anjuta), why can't this feature be implemented in the IDE (and
> properly implemeted, not my dumb implementation.)
> 
That's the catch 'Proper implemenation'. Please visit old emails in
anjuta-devel mailing list archive if you want to know more about it. You
are also welcome to discuss this further in anjuta-devel mailing list.

Regards,
-Naba



_______________________________________________
ilugd mailing list
[EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to