Some problems with anjuta API

View: New views
5 Messages — Rating Filter:   Alert me  

Some problems with anjuta API

by Pavel Kostyuchenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
my problems are:
1. Project manager: I cannot get a target id (e.g. /src/images:data)
and then use it for adding files to that target silently.
2. Symbol manager: I'd like to have an ability to get symbols for some
file by-demand, without waiting for it to be saved.
3. Seems like some strange things happen when closing project in a way
other then closing anjuta. Looks like some other plugins don't work
well in that situation too. What is the difference in finalization
process when closing the project by quiting anjuta and by running
"close all"?

--
Regards
Pavel

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Anjuta-devel mailing list
Anjuta-devel@...
https://lists.sourceforge.net/lists/listinfo/anjuta-devel

Re: Some problems with anjuta API

by Johannes Schmid-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

> 1. Project manager: I cannot get a target id (e.g. /src/images:data)
> and then use it for adding files to that target silently.

Can you give some more details about that? Do you need to change the
interface? gnome-build should support that internally.

> 2. Symbol manager: I'd like to have an ability to get symbols for some
> file by-demand, without waiting for it to be saved.

symbol-db saves times based on a timeout but I should be no problem to
force a save (though this will always be done async).

> 3. Seems like some strange things happen when closing project in a way
> other then closing anjuta. Looks like some other plugins don't work
> well in that situation too. What is the difference in finalization
> process when closing the project by quiting anjuta and by running
> "close all"?

When anjuta is closed the plugin unloading is not done very clean afaik
unless you pass "--proper-shutdown" option. There are some bugs with
this and it would be great if you could investigate where things break!

Thanks,
Johannes


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Anjuta-devel mailing list
Anjuta-devel@...
https://lists.sourceforge.net/lists/listinfo/anjuta-devel

signature.asc (196 bytes) Download Attachment

Re: Some problems with anjuta API

by Abderrahim Kitouni-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

> > 1. Project manager: I cannot get a target id (e.g. /src/images:data)
> > and then use it for adding files to that target silently.
>
> Can you give some more details about that? Do you need to change the
> interface? gnome-build should support that internally.
Since you're talking about this, I need something similiar, I don't know if
it's already available (DocumentManager is full of FIXMEs), I want something
like :
List<string> get_sources_for_target (string target)
or more generally :
List<string> get_elements_for_target (string target, ElementType element_type)

And I guess Pavel needs the corresponding add_* .

What do you think of this?

Regards,
Abderrahim

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Anjuta-devel mailing list
Anjuta-devel@...
https://lists.sourceforge.net/lists/listinfo/anjuta-devel

Re: Some problems with anjuta API

by Pavel Kostyuchenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jul 9, 2008 at 3:32 AM, Johannes Schmid <jhs@...> wrote:
>> 1. Project manager: I cannot get a target id (e.g. /src/images:data)
>> and then use it for adding files to that target silently.
> Can you give some more details about that? Do you need to change the
> interface? gnome-build should support that internally.

I have this functionality implemented, but existing interfaces don't
allow me to use it in normal way, so I used a hack.
I want to keep some target as default, but IProjectManger allows URIs
only. And then, when I try to add some source to the target, project
manager implementation tries to convert URI back to target ID by
guessing target type. Btw, it tries only "shared_lib", "static_lib"
and "program", but not "data" or "other"). gnome-build seems to
support nothing but IDs for targets. Also I cannot add a source
without a dialog.

>> 2. Symbol manager: I'd like to have an ability to get symbols for some
>> file by-demand, without waiting for it to be saved.
> symbol-db saves times based on a timeout but I should be no problem to
> force a save (though this will always be done async).

OK, I think it's better to leave this problem until there will be a
stable version of symbol-db.

--
Pavel

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Anjuta-devel mailing list
Anjuta-devel@...
https://lists.sourceforge.net/lists/listinfo/anjuta-devel

Re: Some problems with anjuta API

by Johannes Schmid-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

Am Mittwoch, den 09.07.2008, 16:49 +0300 schrieb Pavel Kostyuchenko:

> On Wed, Jul 9, 2008 at 3:32 AM, Johannes Schmid <jhs@...> wrote:
> >> 1. Project manager: I cannot get a target id (e.g. /src/images:data)
> >> and then use it for adding files to that target silently.
> > Can you give some more details about that? Do you need to change the
> > interface? gnome-build should support that internally.
>
> I have this functionality implemented, but existing interfaces don't
> allow me to use it in normal way, so I used a hack.
> I want to keep some target as default, but IProjectManger allows URIs
> only. And then, when I try to add some source to the target, project
> manager implementation tries to convert URI back to target ID by
> guessing target type. Btw, it tries only "shared_lib", "static_lib"
> and "program", but not "data" or "other"). gnome-build seems to
> support nothing but IDs for targets. Also I cannot add a source
> without a dialog.
Feel free to rewrite the interface!

Regards,
Johannes


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Anjuta-devel mailing list
Anjuta-devel@...
https://lists.sourceforge.net/lists/listinfo/anjuta-devel

signature.asc (196 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price