Add Vala bindings to Couchdb-GLib

Bug #669204 reported by Pavol Klačanský
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
couchdb-glib
Won't Fix
Medium
dobey

Bug Description

Couchdb-GLib should ship Vala bindings for both libcouchdb-glib and desktopcouch-glib.

In order to do that we have to work on getting gobject introspection working correctly with both libraries.

Related branches

Revision history for this message
Krzysztof Klimonda (kklimonda) wrote : Re: [Bug 669204] [NEW] error: too many arguments to function‘couchdb_document_new’

On Sun, 2010-10-31 at 19:28 +0000, Pavol Klačanský wrote:
> Public bug reported:
>
> I have latest maverick packages and .vapi file
>
> I get this problem while compiling
>
> int main (string[] args)
> {
> var conn = new CouchDB.Session ();
> conn.create_database ("test");
> var newdoc = new CouchDB.Document (conn);
>
>
> return 0;
> }

Hey,
  We don't provide vala binding at this time (one reason for that is
that couchdb-glib doesn't have a complete gobject introspection done so
such bindings wouldn't work.
  The bindings (which you probably got from
https://code.launchpad.net/~adiroiban/couchdb-glib/vala-bindings) are
outdated.
  We (or rather me) are planning to get a working Vala support (and
gobject introspection) during this cycle but it won't get backported to
maverick as it's a part of a bigger work on the couchdb-glib itself.
  The bug should be closed because we don't have vala bindings at this
time but I'll just rename it and change the description to add a nice
todo item and keep track of it.

 priority wishlist
 status inprogress
 assignee kklimonda

--
Krzysztof Klimonda <email address hidden>

summary: - error: too many arguments to function ‘couchdb_document_new’
+ Add Vala bindings to Couchdb-GLib
description: updated
Revision history for this message
Pavol Klačanský (pavolzetor-deactivatedaccount) wrote :

so there is no way howto use either desktopcouch nad couchdb in vala?

Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

Well, you can try generating bindings yourself, either from .gir file or using vala-gen-introspect. You can even try editing the bindings you have by hand - but I can't say how old are they, and how much work would that be.
But yeah, there is no easy way to use both libraries in vala for now.

Revision history for this message
Pavol Klačanský (pavolzetor-deactivatedaccount) wrote :

Thanks, is there latest desktopcouch/couchdb PPA?
Anyway, what I need for storing data in ubuntu one? Couchdb or desktopcouch (IMHO something above couchdb) bindings?

Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

There is no PPA at this time as the changes I'm working on haven't been yet merged. Desktopcouch deals, at least for now, only with finding the port that the couchdb is running on. After that it's just yet another couchdb database.

Revision history for this message
Pavol Klačanský (pavolzetor-deactivatedaccount) wrote :

so what I should use? desktopcouch or couchdb? and Can I compile yours branch?

Changed in couchdb-glib:
status: In Progress → Fix Released
status: Fix Released → Fix Committed
dobey (dobey)
Changed in couchdb-glib:
status: Fix Committed → In Progress
assignee: Krzysztof Klimonda (kklimonda) → Rodney Dawes (dobey)
importance: Undecided → Medium
Revision history for this message
dobey (dobey) wrote :

I'm changing this to Won't Fix as we should be using the gir support of vala instead. Bug #736308 is filed for the issues with the gir data not being correct at the moment.

Changed in couchdb-glib:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.