---------------------------- Original Message ----------------------------
Subject: Re: ruby collection trouble (was Re: )
From:    "Mark Watts" <miraiwar...@gmail.com>
Date:    Tue, August 14, 2012 7:41 pm
To:      "Erik Massop" <e.mas...@hccnet.nl>
--------------------------------------------------------------------------

Erik,

I manually applied the uint32 cleanup patch
(c24da0006f<http://git.xmms.se/xmms2/xmms2-mergetest/commit/?h=090e08d54d38cf2b8abf8b9c33a12b3e88096f46&id=c24da0006f5c56b066771bcd89b105e5e1f62527>)
and now it works. I had encountered a warning about `check_uint32` being an
invalid symbol and changed rb_collection.c just enough to make that message
go away (and leave me with a bug I didn't understand :P).

On Tue, Aug 14, 2012 at 11:18 AM, Erik Massop <e.mas...@hccnet.nl> wrote:

> Dear Mark,
>
> On Tue, August 14, 2012 12:53 pm, Mark Watts wrote:
> > The portion that's causing the error is pasted here -->
> > http://www.pasteall.org/34497/ruby
> > I know the collection built in that code snippet should get printed out
> in
> > the command-line client since one that's structured similarly
> ("not_iosys"
> > in the snippet) does. Neither collection query is successful in my
> script.
>
> Hmm, this script works for me... What version are you on? Could you check
> the daemon-side ("xmms2d -V") as well as the client-side ("xmms2 -v")? I'm
> on 090e08d [1] which will probably be devel soon.
>
> >> The second problem is that
> >> > `$myclient.playlist.add_collection(my_coll).wait.value` gives an
> error
> >> in
> >> > value.c line 295, but doesn't add the collection to the playlist.
> >> Is ".wait.error?" true? If so, does ".wait.error" give anything
> interesting?
> > It never gets out of `wait`, so I don't know.
>
> It does get out of wait for me (possibly since commit 678e68 from April
> 2011?).
>
> Either way, this is a bug in xmmsclient [3]. Its a very simple patch that
> I'll write and test this evening or tomorrow. You can workaround the bug
> by passing an empty order-argument. That is, by calling
> .add_collection(my_coll, []).
>
> I misread and thought you meant with coll_query_info still. add_collection
never hanged and your workaround fixed my problem so I'll leave that until
that patch gets commited.

>> I
> >> > subclassed Xmms::Collection-- could that cause a problem?
> >> I don't know at this instant.
> >> Since It doesn't work with my stored collection either, I don't think
> > that's it :/
>
> For me it works with a subclassed Xmms::Collection, so that indeed is not
> the problem.
>
> Regards,
> Erik Massop / nesciens
>
> [1]
>
> http://git.xmms.se/xmms2/xmms2-mergetest/log/?h=090e08d54d38cf2b8abf8b9c33a12b3e88096f46
> [2]
>
> http://git.xmms.se/xmms2/xmms2-devel/commit/?id=678e68cf6583cbec89597b489e12fe5a893459cf
> [3] http://bugs.xmms2.org/view.php?id=2544
>
> Thanks for the help!


-- 

Regards,
Mark Watts
College of Natural Sciences
University of Texas at Austin
--
_______________________________________________
Xmms2-devel mailing list
Xmms2-devel@lists.xmms.se
http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel

Reply via email to