Re: [Chicken-users] tk and pstk eggs

2013-09-17 Thread Mario Domenech Goulart
Hi Jeronimo,

On Tue, 17 Sep 2013 17:51:08 -0300 Jeronimo Pellegrini j...@aleph0.info 
wrote:

 I am trying to create a simple GUI for a Chicken program, but I don't think
 I understood how the tk and pstk eggs work -- I tried both.

 With tk, I have tried the tutorial in the documentation (the Hello World
 program):

 (require-extension tk)
 (start-tk)

 But them when I do

 (define hello-button (tk 'create-widget 'button))

 I get this error:

 Error: (car) bad argument type: Fontconfig

   Call history:

   syntax  (define hello-button (tk (quote create-widget) (quote 
 button)))
   syntax  (##core#set! hello-button (tk (quote create-widget) 
 (quote
 button)))
   syntax  (tk (quote create-widget) (quote button))
   syntax  (quote create-widget)
   syntax  (##core#quote create-widget)
   syntax  (quote button)
   syntax  (##core#quote button)
   eval(tk (quote create-widget) (quote button)) --


 With pstk, I could not even load the extension with require-extension:

 #;1 (require-extension pstk)
 ; loading /usr/local/lib/chicken/7/pstk.import.so ...
 ; loading /usr/local/lib/chicken/7/chicken.import.so ...
 ; loading /usr/local/lib/chicken/7/posix.import.so ...
 ; loading /usr/local/lib/chicken/7/data-structures.import.so ...
 ; loading /usr/local/lib/chicken/7/srfi-13.import.so ...
 ; loading /usr/local/lib/chicken/7/pstk.so ...

 Error: (string-intersperse) bad argument type - not a string: #unspecified

   Call history:

   syntax  (require-extension pstk)
   syntax  (##core#require-extension (pstk) #t)
   syntax  (##core#begin (##core#begin (##core#begin 
 (##sys#require
 (quote pstk))) (import pstk)) (##core#undef..
   syntax  (##core#begin (##core#begin (##sys#require (quote 
 pstk)))
 (import pstk))
   syntax  (##core#begin (##sys#require (quote pstk)))
   syntax  (##sys#require (quote pstk))
   syntax  (quote pstk)
   syntax  (##core#quote pstk)
   syntax  (import pstk)
   syntax  (import scheme chicken posix posix (only 
 data-structures
 string-intersperse) (only srfi-13 string-co..
   syntax  (##core#undefined)
   syntax  (##core#undefined)
   syntax  (##core#undefined)
   eval(##sys#require (quote pstk))  --

 Are these bugs, or am I doing something wrong?

 I have chicken compiled from git (today), tk version 1.9 and pstk version
 1.2.1.

I'd guess pstk is relaying on the old behavior of letrec.  It'll
probably work with the latest stable release.

Don't know about the tk egg problem.

Best wishes.
Mario
-- 
http://parenteses.org/mario

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] tk and pstk eggs

2013-09-17 Thread Peter Bex
On Tue, Sep 17, 2013 at 08:57:52PM +, Mario Domenech Goulart wrote:
 I'd guess pstk is relaying on the old behavior of letrec.  It'll
 probably work with the latest stable release.

That's correct.  Luckily, this was a trivial thing to fix.  I've now
pushed pstk 1.2.2 which should work with any CHICKEN version, be it
master or one of the released versions.

This version should become available shortly.

 Don't know about the tk egg problem.

Same here.

Cheers,
Peter
-- 
http://www.more-magic.net

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] tk and pstk eggs

2013-09-17 Thread Jeronimo Pellegrini
Hello,

I am trying to create a simple GUI for a Chicken program, but I don't think
I understood how the tk and pstk eggs work -- I tried both.

With tk, I have tried the tutorial in the documentation (the Hello World
program):

(require-extension tk)
(start-tk)

But them when I do

(define hello-button (tk 'create-widget 'button))

I get this error:

Error: (car) bad argument type: Fontconfig

Call history:

syntax  (define hello-button (tk (quote create-widget) (quote 
button)))
syntax  (##core#set! hello-button (tk (quote create-widget) 
(quote
button)))
syntax  (tk (quote create-widget) (quote button))
syntax  (quote create-widget)
syntax  (##core#quote create-widget)
syntax  (quote button)
syntax  (##core#quote button)
eval(tk (quote create-widget) (quote button)) --


With pstk, I could not even load the extension with require-extension:

#;1 (require-extension pstk)
; loading /usr/local/lib/chicken/7/pstk.import.so ...
; loading /usr/local/lib/chicken/7/chicken.import.so ...
; loading /usr/local/lib/chicken/7/posix.import.so ...
; loading /usr/local/lib/chicken/7/data-structures.import.so ...
; loading /usr/local/lib/chicken/7/srfi-13.import.so ...
; loading /usr/local/lib/chicken/7/pstk.so ...

Error: (string-intersperse) bad argument type - not a string: #unspecified

Call history:

syntax  (require-extension pstk)
syntax  (##core#require-extension (pstk) #t)
syntax  (##core#begin (##core#begin (##core#begin 
(##sys#require
(quote pstk))) (import pstk)) (##core#undef..
syntax  (##core#begin (##core#begin (##sys#require (quote 
pstk)))
(import pstk))
syntax  (##core#begin (##sys#require (quote pstk)))
syntax  (##sys#require (quote pstk))
syntax  (quote pstk)
syntax  (##core#quote pstk)
syntax  (import pstk)
syntax  (import scheme chicken posix posix (only 
data-structures
string-intersperse) (only srfi-13 string-co..
syntax  (##core#undefined)
syntax  (##core#undefined)
syntax  (##core#undefined)
eval(##sys#require (quote pstk))  --

Are these bugs, or am I doing something wrong?

I have chicken compiled from git (today), tk version 1.9 and pstk version
1.2.1.

Thanks a lot!
J.



___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users