* [ANN] guile-colorized released!
@ 2012-12-04 6:42 nalaginrut
2012-12-04 13:32 ` Ludovic Courtès
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: nalaginrut @ 2012-12-04 6:42 UTC (permalink / raw)
To: guile-user
[-- Attachment #1: Type: text/plain, Size: 494 bytes --]
hi folks!
Here is the project to colorize Guile REPL:
https://github.com/NalaGinrut/guile-colorized
Play it according to README.
Attached a screen shot for the effect.
Enjoy it!
And it uses 'before-print-hook', Daniel posted a patch to add REPL
optional printer in another thread.
I'll update my project for this after that patch is accepted, and format
a patch.
PS: Though I've tested it, but maybe bugs remain.
Both bug-report/patches/suggestion are welcome, thanks!
Happy hacking!
[-- Attachment #2: mmr.png --]
[-- Type: image/png, Size: 29757 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ANN] guile-colorized released!
2012-12-04 6:42 [ANN] guile-colorized released! nalaginrut
@ 2012-12-04 13:32 ` Ludovic Courtès
2012-12-04 14:10 ` Luiji Maryo
2012-12-04 22:20 ` Yanbin Zhang
2 siblings, 0 replies; 9+ messages in thread
From: Ludovic Courtès @ 2012-12-04 13:32 UTC (permalink / raw)
To: guile-user
Hi!
nalaginrut <nalaginrut@gmail.com> skribis:
> Here is the project to colorize Guile REPL:
> https://github.com/NalaGinrut/guile-colorized
> Play it according to README.
> Attached a screen shot for the effect.
Looks nice!
I’ll look at the patch you posted to guile-devel eventually.
Ludo’.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ANN] guile-colorized released!
2012-12-04 6:42 [ANN] guile-colorized released! nalaginrut
2012-12-04 13:32 ` Ludovic Courtès
@ 2012-12-04 14:10 ` Luiji Maryo
2012-12-04 22:20 ` Yanbin Zhang
2 siblings, 0 replies; 9+ messages in thread
From: Luiji Maryo @ 2012-12-04 14:10 UTC (permalink / raw)
To: nalaginrut; +Cc: Guile Mailing List
[-- Attachment #1: Type: text/plain, Size: 854 bytes --]
That's pretty awesome! I'll try it out later and report any bugs if I find
them.
On Tue, Dec 4, 2012 at 1:42 AM, nalaginrut <nalaginrut@gmail.com> wrote:
> hi folks!
> Here is the project to colorize Guile REPL:
> https://github.com/NalaGinrut/guile-colorized
> Play it according to README.
> Attached a screen shot for the effect.
> Enjoy it!
>
> And it uses 'before-print-hook', Daniel posted a patch to add REPL
> optional printer in another thread.
> I'll update my project for this after that patch is accepted, and format
> a patch.
>
> PS: Though I've tested it, but maybe bugs remain.
> Both bug-report/patches/suggestion are welcome, thanks!
>
> Happy hacking!
>
>
--
- Luiji Maryo
mail: luiji@users.sourceforge.net
blog: http://brainboyblogger.blogspot.com/
corp: http://www.entertainingsoftware.com/
fun: http://www.secretmaryo.org/
[-- Attachment #2: Type: text/html, Size: 1596 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ANN] guile-colorized released!
2012-12-04 6:42 [ANN] guile-colorized released! nalaginrut
2012-12-04 13:32 ` Ludovic Courtès
2012-12-04 14:10 ` Luiji Maryo
@ 2012-12-04 22:20 ` Yanbin Zhang
2012-12-05 2:43 ` Nala Ginrut
2 siblings, 1 reply; 9+ messages in thread
From: Yanbin Zhang @ 2012-12-04 22:20 UTC (permalink / raw)
To: nalaginrut; +Cc: guile-user
[-- Attachment #1: Type: text/plain, Size: 1277 bytes --]
Hi,
In the example of the README file, the module is spelled as "colorised". I
guess it should be "colorized".
I tried the example but I got:
scheme@(guile-user)> (use-modules (oop goops) (rnrs) (ice-9 colorized))
While compiling expression:
ERROR: In procedure module-lookup: Unbound variable: <record-type>
I am using Guile 2.0.5
This is definitely a cool feature if I can get it working. But myself is
quite new to Guile and does not know my way around very well. Thanks.
Yanbin
On Tue, Dec 4, 2012 at 12:42 AM, nalaginrut <nalaginrut@gmail.com> wrote:
> hi folks!
> Here is the project to colorize Guile REPL:
> https://github.com/NalaGinrut/guile-colorized
> Play it according to README.
> Attached a screen shot for the effect.
> Enjoy it!
>
> And it uses 'before-print-hook', Daniel posted a patch to add REPL
> optional printer in another thread.
> I'll update my project for this after that patch is accepted, and format
> a patch.
>
> PS: Though I've tested it, but maybe bugs remain.
> Both bug-report/patches/suggestion are welcome, thanks!
>
> Happy hacking!
>
>
--
Yanbin Zhang
---------------------------------------------
Research Assistant
Department of Petroleum Engineering
Texas A&M University
3116 TAMU - 702 RICH
College Station, TX, 77843
[-- Attachment #2: Type: text/html, Size: 1944 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ANN] guile-colorized released!
2012-12-04 22:20 ` Yanbin Zhang
@ 2012-12-05 2:43 ` Nala Ginrut
2012-12-05 3:58 ` Yanbin Zhang
2013-01-13 10:58 ` Andy Wingo
0 siblings, 2 replies; 9+ messages in thread
From: Nala Ginrut @ 2012-12-05 2:43 UTC (permalink / raw)
To: Yanbin Zhang; +Cc: guile-user
On Tue, 2012-12-04 at 16:20 -0600, Yanbin Zhang wrote:
> Hi,
>
>
> In the example of the README file, the module is spelled as
> "colorised". I guess it should be "colorized".
>
Ah~thanks!
>
> I tried the example but I got:
> scheme@(guile-user)> (use-modules (oop goops) (rnrs) (ice-9
> colorized))
> While compiling expression:
> ERROR: In procedure module-lookup: Unbound variable: <record-type>
>
Can you provide more information?
You may post a trace result like that:
===============cut=================
,tr (use-modules (ice-9 colorized))
===============end=================
And Guile-2.0.5 is old, maybe bugs there.
I use the latest Guile, and I suggest you update to Guile-2.0.7.
> I am using Guile 2.0.5
>
>
> This is definitely a cool feature if I can get it working. But myself
> is quite new to Guile and does not know my way around very well.
> Thanks.
>
>
> Yanbin
>
>
>
> On Tue, Dec 4, 2012 at 12:42 AM, nalaginrut <nalaginrut@gmail.com>
> wrote:
> hi folks!
> Here is the project to colorize Guile REPL:
> https://github.com/NalaGinrut/guile-colorized
> Play it according to README.
> Attached a screen shot for the effect.
> Enjoy it!
>
> And it uses 'before-print-hook', Daniel posted a patch to add
> REPL
> optional printer in another thread.
> I'll update my project for this after that patch is accepted,
> and format
> a patch.
>
> PS: Though I've tested it, but maybe bugs remain.
> Both bug-report/patches/suggestion are welcome, thanks!
>
> Happy hacking!
>
>
>
>
>
> --
> Yanbin Zhang
> ---------------------------------------------
> Research Assistant
> Department of Petroleum Engineering
> Texas A&M University
> 3116 TAMU - 702 RICH
> College Station, TX, 77843
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ANN] guile-colorized released!
2012-12-05 2:43 ` Nala Ginrut
@ 2012-12-05 3:58 ` Yanbin Zhang
2012-12-05 4:08 ` Nala Ginrut
2013-01-13 10:58 ` Andy Wingo
1 sibling, 1 reply; 9+ messages in thread
From: Yanbin Zhang @ 2012-12-05 3:58 UTC (permalink / raw)
To: Nala Ginrut; +Cc: guile-user
[-- Attachment #1: Type: text/plain, Size: 8291 bytes --]
Hi Nala,
It may be the old version of guile that caused the problem. Unfortunately,
I usually do not live on the bleeding edge...
Here is the trace (I have to admit that I am totally lost by looking at it):
scheme@(guile-user)> ,tr (use-modules (ice-9 colorized))
trace: | (#<procedure 878a910> #(#<directory (guile-user) 82006c0> #f # …))
trace: | #(#<directory (guile-user) 82006c0> guile (guile) # ((guile) #
#f) …)
trace: (#<procedure 879ac80 ()>)
trace: | (#<procedure 821dd20 at ice-9/boot-9.scm:2493:4 (name #:option…>
…)
trace: | | (nested-ref-module #<module () 8200d38> (guile))
trace: | | | (module-ref-submodule #<module () 8200d38> guile)
trace: | | | | (#<procedure 8219b20 at ice-9/boot-9.scm:170…> …)
trace: | | | | #<hash-table 821dd70 121/223>
trace: | | | | (hashq-ref #<hash-table 821dd70 121/223> guile)
trace: | | | | #<module (guile) 8200e10>
trace: | | | #<module (guile) 8200e10>
trace: | | #<module (guile) 8200e10>
trace: | | (#<procedure 8235750 at ice-9/deprecated.scm:408:8 (mod)> #)
trace: | | | (#<procedure 8219a20 at ice-9/boot-9.scm:1709:2 (m…> …)
trace: | | | #<interface (guile) 8200dc8>
trace: | | #<interface (guile) 8200dc8>
trace: | #<module (guile) 8200e10>
trace: | (process-use-modules (((ice-9 colorized))))
trace: | | (map #<procedure 82201a0 at ice-9/boot-9.scm:3244:25 (mi…> …)
trace: | | | (#<procedure 82201a0 at ice-9/boot-9.scm:3244:25 (…> …)
trace: | | | | (resolve-interface (ice-9 colorized))
trace: | | | | | (#<procedure 821dd20 at ice-9/boot-9.s…> …)
trace: | | | | | | (nested-ref-module #<module () 8…> …)
trace: | | | | | | | (module-ref-submodule #<mo…> …)
trace: | | | | | | | | (#<procedure 8219b20…> …)
trace: | | | | | | | | #<hash-table 821dd70 121/223>
trace: | | | | | | | | (hashq-ref #<hash-ta…> …)
trace: | | | | | | | | #<directory (ice-9) 8200c18>
trace: | | | | | | | #<directory (ice-9) 8200c18>
trace: | | | | | | | (module-ref-submodule #<di…> …)
trace: | | | | | | | | (#<procedure 8219b20…> …)
trace: | | | | | | | | #<hash-table 82253a0 26/31>
trace: | | | | | | | | (hashq-ref #<hash-ta…> …)
trace: | | | | | | | | #<directory (ice-9 colorized) 852baf8>
trace: | | | | | | | #<directory (ice-9 colorized) 852baf8>
trace: | | | | | | #<directory (ice-9 colorized) 852baf8>
trace: | | | | | | (#<procedure 8235750 at ice-9/de…> …)
trace: | | | | | | | (#<procedure 8219a20 at ic…> …)
trace: | | | | | | | #<interface (ice-9 colorized) 852bab0>
trace: | | | | | | #<interface (ice-9 colorized) 852bab0>
trace: | | | | | #<directory (ice-9 colorized) 852baf8>
trace: | | | | | (#<procedure 8235750 at ice-9/deprecat…> …)
trace: | | | | | | (#<procedure 8219a20 at ice-9/bo…> …)
trace: | | | | | | #<interface (ice-9 colorized) 852bab0>
trace: | | | | | #<interface (ice-9 colorized) 852bab0>
trace: | | | | #<interface (ice-9 colorized) 852bab0>
trace: | | | #<interface (ice-9 colorized) 852bab0>
trace: | | (reverse! (#<interface (ice-9 colorized) 852bab0>))
trace: | | (#<interface (ice-9 colorized) 852bab0>)
trace: | (call-with-deferred-observers #<procedure 888f110 at ice-9/boot…>)
trace: | | (#<procedure 8219820 at ice-9/boot-9.scm:1807:6 ()>)
trace: | | | (lock-mutex #<mutex 80f1870>)
trace: | | | #t
trace: | | #<unspecified>
trace: | | (#<procedure 849b130>)
trace: | | (() ((filename . "ice-9/boot-9.scm") (0 1806 . 6) (3 # . 8) #)
#)
trace: | | (#<procedure 84c9850>)
trace: | | (() ((filename . "ice-9/boot-9.scm") (0 1810 . 6) (5 # . 8) #
…) …)
trace: | | (#<procedure 888f110 at ice-9/boot-9.scm:3249:5 ()>)
trace: | | | (current-module)
trace: | | | #<directory (guile-user) 82006c0>
trace: | | (module-use-interfaces! #<directory (guile-user) 82006c0> #)
trace: | | | (#<procedure 8219fa0 at ice-9/boot-9.scm:1709:2 (m…> …)
trace: | | | (#<interface (guile) 8200dc8> #<autoload (system base
compi…> …)
trace: | | | (memq #<interface (ice-9 colorized) 852bab0> (#<…> …))
trace: | | | (#<interface (ice-9 colorized) 852bab0>)
trace: | | | (reverse ())
trace: | | | ()
trace: | | | (append (#<interface (guile) 8200dc8> #<autoloa…> …) …)
trace: | | | (#<interface (guile) 8200dc8> #<autoload (system base
compi…> …)
trace: | | | (#<procedure 8219f60 at ice-9/boot-9.scm:1709:2 (m…> …)
trace: | | | (#<interface (guile) 8200dc8> #<autoload (system base
compi…> …)
trace: | | | (#<procedure 8219ca0 at ice-9/boot-9.scm:1709:2 (m…> …)
trace: | | | #<hash-table 8259480 0/883>
trace: | | | (hash-clear! #<hash-table 8259480 0/883>)
trace: | | | #<unspecified>
trace: | | (module-modified #<directory (guile-user) 82006c0>)
trace: | | (hash-set! #<hash-table 82198d0 0/31> #<directory (guile…> …)
trace: | | #t
trace: | | (#<procedure 82197d0 at ice-9/boot-9.scm:1811:6 ()>)
trace: | | | (hash-for-each #<procedure 82197f0 at ice-9/boot-9…> …)
trace: | | | | (#<procedure 82197f0 at ice-9/boot-9.scm:181…> …)
trace: | | | | (module-call-observers #<directory (guile-use…>)
trace: | | | | | (#<procedure 8219c60 at ice-9/boot-9.s…> …)
trace: | | | | | ()
trace: | | | | | (for-each #<procedure 861dd70 at ice-9…> …)
trace: | | | | | #<unspecified>
trace: | | | | | (#<procedure 8219be0 at ice-9/boot-9.s…> …)
trace: | | | | | #<weak-key-hash-table 8259470 0/31>
trace: | | | | (hash-for-each #<procedure 862a350 at ice-9/…> …)
trace: | | | | #<unspecified>
trace: | | | #<unspecified>
trace: | | | (hash-clear! #<hash-table 82198d0 1/31>)
trace: | | | #<unspecified>
trace: | | (unlock-mutex #<mutex 80f1870>)
trace: | | #t
trace: | #t
trace: #<unspecified>
Thanks!
Yanbin
On Tue, Dec 4, 2012 at 8:43 PM, Nala Ginrut <nalaginrut@gmail.com> wrote:
> On Tue, 2012-12-04 at 16:20 -0600, Yanbin Zhang wrote:
> > Hi,
> >
> >
> > In the example of the README file, the module is spelled as
> > "colorised". I guess it should be "colorized".
> >
> Ah~thanks!
> >
> > I tried the example but I got:
> > scheme@(guile-user)> (use-modules (oop goops) (rnrs) (ice-9
> > colorized))
> > While compiling expression:
> > ERROR: In procedure module-lookup: Unbound variable: <record-type>
> >
> Can you provide more information?
> You may post a trace result like that:
> ===============cut=================
> ,tr (use-modules (ice-9 colorized))
> ===============end=================
>
> And Guile-2.0.5 is old, maybe bugs there.
> I use the latest Guile, and I suggest you update to Guile-2.0.7.
>
> > I am using Guile 2.0.5
> >
> >
> > This is definitely a cool feature if I can get it working. But myself
> > is quite new to Guile and does not know my way around very well.
> > Thanks.
> >
> >
> > Yanbin
> >
> >
> >
> > On Tue, Dec 4, 2012 at 12:42 AM, nalaginrut <nalaginrut@gmail.com>
> > wrote:
> > hi folks!
> > Here is the project to colorize Guile REPL:
> > https://github.com/NalaGinrut/guile-colorized
> > Play it according to README.
> > Attached a screen shot for the effect.
> > Enjoy it!
> >
> > And it uses 'before-print-hook', Daniel posted a patch to add
> > REPL
> > optional printer in another thread.
> > I'll update my project for this after that patch is accepted,
> > and format
> > a patch.
> >
> > PS: Though I've tested it, but maybe bugs remain.
> > Both bug-report/patches/suggestion are welcome, thanks!
> >
> > Happy hacking!
> >
> >
> >
> >
> >
> > --
> > Yanbin Zhang
> > ---------------------------------------------
> > Research Assistant
> > Department of Petroleum Engineering
> > Texas A&M University
> > 3116 TAMU - 702 RICH
> > College Station, TX, 77843
> >
> >
> >
>
>
>
>
--
Yanbin Zhang
---------------------------------------------
Research Assistant
Department of Petroleum Engineering
Texas A&M University
3116 TAMU - 702 RICH
College Station, TX, 77843
979-847-8797
[-- Attachment #2: Type: text/html, Size: 10799 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ANN] guile-colorized released!
2012-12-05 3:58 ` Yanbin Zhang
@ 2012-12-05 4:08 ` Nala Ginrut
2012-12-05 4:26 ` Yanbin Zhang
0 siblings, 1 reply; 9+ messages in thread
From: Nala Ginrut @ 2012-12-05 4:08 UTC (permalink / raw)
To: Yanbin Zhang; +Cc: guile-user
Hmm...it's hard to find the problem.
Seems <record-type> wasn't exported in that version?
But you may comment out this line in colorized.scm:
---------------------cut----------------------
(,<record-type> ,color-record-type dark-gray)
---------------------end----------------------
And give it a try.
I think it won't effect anything wrong for you, but <record-type> will
be rendered as an <unknown> object.
On Tue, 2012-12-04 at 21:58 -0600, Yanbin Zhang wrote:
> Hi Nala,
>
>
> It may be the old version of guile that caused the problem.
> Unfortunately, I usually do not live on the bleeding edge...
> Here is the trace (I have to admit that I am totally lost by looking
> at it):
> scheme@(guile-user)> ,tr (use-modules (ice-9 colorized))
> trace: | (#<procedure 878a910> #(#<directory (guile-user) 82006c0> #f
> # …))
> trace: | #(#<directory (guile-user) 82006c0> guile (guile) # ((guile)
> # #f) …)
> trace: (#<procedure 879ac80 ()>)
> trace: | (#<procedure 821dd20 at ice-9/boot-9.scm:2493:4 (name
> #:option…> …)
> trace: | | (nested-ref-module #<module () 8200d38> (guile))
> trace: | | | (module-ref-submodule #<module () 8200d38> guile)
> trace: | | | | (#<procedure 8219b20 at ice-9/boot-9.scm:170…> …)
> trace: | | | | #<hash-table 821dd70 121/223>
> trace: | | | | (hashq-ref #<hash-table 821dd70 121/223> guile)
> trace: | | | | #<module (guile) 8200e10>
> trace: | | | #<module (guile) 8200e10>
> trace: | | #<module (guile) 8200e10>
> trace: | | (#<procedure 8235750 at ice-9/deprecated.scm:408:8 (mod)>
> #)
> trace: | | | (#<procedure 8219a20 at ice-9/boot-9.scm:1709:2 (m…> …
> )
> trace: | | | #<interface (guile) 8200dc8>
> trace: | | #<interface (guile) 8200dc8>
> trace: | #<module (guile) 8200e10>
> trace: | (process-use-modules (((ice-9 colorized))))
> trace: | | (map #<procedure 82201a0 at ice-9/boot-9.scm:3244:25 (mi…
> > …)
> trace: | | | (#<procedure 82201a0 at ice-9/boot-9.scm:3244:25 (…> …
> )
> trace: | | | | (resolve-interface (ice-9 colorized))
> trace: | | | | | (#<procedure 821dd20 at ice-9/boot-9.s…> …)
> trace: | | | | | | (nested-ref-module #<module () 8…> …)
> trace: | | | | | | | (module-ref-submodule #<mo…> …)
> trace: | | | | | | | | (#<procedure 8219b20…> …)
> trace: | | | | | | | | #<hash-table 821dd70 121/223>
> trace: | | | | | | | | (hashq-ref #<hash-ta…> …)
> trace: | | | | | | | | #<directory (ice-9) 8200c18>
> trace: | | | | | | | #<directory (ice-9) 8200c18>
> trace: | | | | | | | (module-ref-submodule #<di…> …)
> trace: | | | | | | | | (#<procedure 8219b20…> …)
> trace: | | | | | | | | #<hash-table 82253a0 26/31>
> trace: | | | | | | | | (hashq-ref #<hash-ta…> …)
> trace: | | | | | | | | #<directory (ice-9 colorized) 852baf8>
> trace: | | | | | | | #<directory (ice-9 colorized) 852baf8>
> trace: | | | | | | #<directory (ice-9 colorized) 852baf8>
> trace: | | | | | | (#<procedure 8235750 at ice-9/de…> …)
> trace: | | | | | | | (#<procedure 8219a20 at ic…> …)
> trace: | | | | | | | #<interface (ice-9 colorized) 852bab0>
> trace: | | | | | | #<interface (ice-9 colorized) 852bab0>
> trace: | | | | | #<directory (ice-9 colorized) 852baf8>
> trace: | | | | | (#<procedure 8235750 at ice-9/deprecat…> …)
> trace: | | | | | | (#<procedure 8219a20 at ice-9/bo…> …)
> trace: | | | | | | #<interface (ice-9 colorized) 852bab0>
> trace: | | | | | #<interface (ice-9 colorized) 852bab0>
> trace: | | | | #<interface (ice-9 colorized) 852bab0>
> trace: | | | #<interface (ice-9 colorized) 852bab0>
> trace: | | (reverse! (#<interface (ice-9 colorized) 852bab0>))
> trace: | | (#<interface (ice-9 colorized) 852bab0>)
> trace: | (call-with-deferred-observers #<procedure 888f110 at
> ice-9/boot…>)
> trace: | | (#<procedure 8219820 at ice-9/boot-9.scm:1807:6 ()>)
> trace: | | | (lock-mutex #<mutex 80f1870>)
> trace: | | | #t
> trace: | | #<unspecified>
> trace: | | (#<procedure 849b130>)
> trace: | | (() ((filename . "ice-9/boot-9.scm") (0 1806 . 6) (3 # .
> 8) #) #)
> trace: | | (#<procedure 84c9850>)
> trace: | | (() ((filename . "ice-9/boot-9.scm") (0 1810 . 6) (5 # .
> 8) # …) …)
> trace: | | (#<procedure 888f110 at ice-9/boot-9.scm:3249:5 ()>)
> trace: | | | (current-module)
> trace: | | | #<directory (guile-user) 82006c0>
> trace: | | (module-use-interfaces! #<directory (guile-user) 82006c0>
> #)
> trace: | | | (#<procedure 8219fa0 at ice-9/boot-9.scm:1709:2 (m…> …
> )
> trace: | | | (#<interface (guile) 8200dc8> #<autoload (system base
> compi…> …)
> trace: | | | (memq #<interface (ice-9 colorized) 852bab0> (#<…> …))
> trace: | | | (#<interface (ice-9 colorized) 852bab0>)
> trace: | | | (reverse ())
> trace: | | | ()
> trace: | | | (append (#<interface (guile) 8200dc8> #<autoloa…> …) …
> )
> trace: | | | (#<interface (guile) 8200dc8> #<autoload (system base
> compi…> …)
> trace: | | | (#<procedure 8219f60 at ice-9/boot-9.scm:1709:2 (m…> …
> )
> trace: | | | (#<interface (guile) 8200dc8> #<autoload (system base
> compi…> …)
> trace: | | | (#<procedure 8219ca0 at ice-9/boot-9.scm:1709:2 (m…> …
> )
> trace: | | | #<hash-table 8259480 0/883>
> trace: | | | (hash-clear! #<hash-table 8259480 0/883>)
> trace: | | | #<unspecified>
> trace: | | (module-modified #<directory (guile-user) 82006c0>)
> trace: | | (hash-set! #<hash-table 82198d0 0/31> #<directory (guile…
> > …)
> trace: | | #t
> trace: | | (#<procedure 82197d0 at ice-9/boot-9.scm:1811:6 ()>)
> trace: | | | (hash-for-each #<procedure 82197f0 at ice-9/boot-9…> …
> )
> trace: | | | | (#<procedure 82197f0 at ice-9/boot-9.scm:181…> …)
> trace: | | | | (module-call-observers #<directory (guile-use…>)
> trace: | | | | | (#<procedure 8219c60 at ice-9/boot-9.s…> …)
> trace: | | | | | ()
> trace: | | | | | (for-each #<procedure 861dd70 at ice-9…> …)
> trace: | | | | | #<unspecified>
> trace: | | | | | (#<procedure 8219be0 at ice-9/boot-9.s…> …)
> trace: | | | | | #<weak-key-hash-table 8259470 0/31>
> trace: | | | | (hash-for-each #<procedure 862a350 at ice-9/…> …)
> trace: | | | | #<unspecified>
> trace: | | | #<unspecified>
> trace: | | | (hash-clear! #<hash-table 82198d0 1/31>)
> trace: | | | #<unspecified>
> trace: | | (unlock-mutex #<mutex 80f1870>)
> trace: | | #t
> trace: | #t
> trace: #<unspecified>
>
>
> Thanks!
>
>
> Yanbin
>
> On Tue, Dec 4, 2012 at 8:43 PM, Nala Ginrut <nalaginrut@gmail.com>
> wrote:
> On Tue, 2012-12-04 at 16:20 -0600, Yanbin Zhang wrote:
> > Hi,
> >
> >
> > In the example of the README file, the module is spelled as
> > "colorised". I guess it should be "colorized".
> >
>
> Ah~thanks!
> >
> > I tried the example but I got:
> > scheme@(guile-user)> (use-modules (oop goops) (rnrs) (ice-9
> > colorized))
> > While compiling expression:
> > ERROR: In procedure module-lookup: Unbound variable:
> <record-type>
> >
>
> Can you provide more information?
> You may post a trace result like that:
> ===============cut=================
> ,tr (use-modules (ice-9 colorized))
> ===============end=================
>
> And Guile-2.0.5 is old, maybe bugs there.
> I use the latest Guile, and I suggest you update to
> Guile-2.0.7.
>
> > I am using Guile 2.0.5
> >
> >
> > This is definitely a cool feature if I can get it working.
> But myself
> > is quite new to Guile and does not know my way around very
> well.
> > Thanks.
> >
> >
> > Yanbin
> >
> >
> >
> > On Tue, Dec 4, 2012 at 12:42 AM, nalaginrut
> <nalaginrut@gmail.com>
> > wrote:
> > hi folks!
> > Here is the project to colorize Guile REPL:
> > https://github.com/NalaGinrut/guile-colorized
> > Play it according to README.
> > Attached a screen shot for the effect.
> > Enjoy it!
> >
> > And it uses 'before-print-hook', Daniel posted a
> patch to add
> > REPL
> > optional printer in another thread.
> > I'll update my project for this after that patch is
> accepted,
> > and format
> > a patch.
> >
> > PS: Though I've tested it, but maybe bugs remain.
> > Both bug-report/patches/suggestion are welcome,
> thanks!
> >
> > Happy hacking!
> >
> >
> >
> >
> >
> > --
> > Yanbin Zhang
> > ---------------------------------------------
> > Research Assistant
> > Department of Petroleum Engineering
> > Texas A&M University
> > 3116 TAMU - 702 RICH
> > College Station, TX, 77843
> >
> >
> >
>
>
>
>
>
>
>
>
> --
> Yanbin Zhang
> ---------------------------------------------
> Research Assistant
> Department of Petroleum Engineering
> Texas A&M University
> 3116 TAMU - 702 RICH
> College Station, TX, 77843
> 979-847-8797
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ANN] guile-colorized released!
2012-12-05 4:08 ` Nala Ginrut
@ 2012-12-05 4:26 ` Yanbin Zhang
0 siblings, 0 replies; 9+ messages in thread
From: Yanbin Zhang @ 2012-12-05 4:26 UTC (permalink / raw)
To: Nala Ginrut; +Cc: guile-user
[-- Attachment #1: Type: text/plain, Size: 10648 bytes --]
Removing <record-type> makes things working fine. I got colorful outputs,
which is very nice! Thanks.
On Tue, Dec 4, 2012 at 10:08 PM, Nala Ginrut <nalaginrut@gmail.com> wrote:
> Hmm...it's hard to find the problem.
> Seems <record-type> wasn't exported in that version?
> But you may comment out this line in colorized.scm:
> ---------------------cut----------------------
> (,<record-type> ,color-record-type dark-gray)
> ---------------------end----------------------
> And give it a try.
> I think it won't effect anything wrong for you, but <record-type> will
> be rendered as an <unknown> object.
>
> On Tue, 2012-12-04 at 21:58 -0600, Yanbin Zhang wrote:
> > Hi Nala,
> >
> >
> > It may be the old version of guile that caused the problem.
> > Unfortunately, I usually do not live on the bleeding edge...
> > Here is the trace (I have to admit that I am totally lost by looking
> > at it):
> > scheme@(guile-user)> ,tr (use-modules (ice-9 colorized))
> > trace: | (#<procedure 878a910> #(#<directory (guile-user) 82006c0> #f
> > # …))
> > trace: | #(#<directory (guile-user) 82006c0> guile (guile) # ((guile)
> > # #f) …)
> > trace: (#<procedure 879ac80 ()>)
> > trace: | (#<procedure 821dd20 at ice-9/boot-9.scm:2493:4 (name
> > #:option…> …)
> > trace: | | (nested-ref-module #<module () 8200d38> (guile))
> > trace: | | | (module-ref-submodule #<module () 8200d38> guile)
> > trace: | | | | (#<procedure 8219b20 at ice-9/boot-9.scm:170…> …)
> > trace: | | | | #<hash-table 821dd70 121/223>
> > trace: | | | | (hashq-ref #<hash-table 821dd70 121/223> guile)
> > trace: | | | | #<module (guile) 8200e10>
> > trace: | | | #<module (guile) 8200e10>
> > trace: | | #<module (guile) 8200e10>
> > trace: | | (#<procedure 8235750 at ice-9/deprecated.scm:408:8 (mod)>
> > #)
> > trace: | | | (#<procedure 8219a20 at ice-9/boot-9.scm:1709:2 (m…> …
> > )
> > trace: | | | #<interface (guile) 8200dc8>
> > trace: | | #<interface (guile) 8200dc8>
> > trace: | #<module (guile) 8200e10>
> > trace: | (process-use-modules (((ice-9 colorized))))
> > trace: | | (map #<procedure 82201a0 at ice-9/boot-9.scm:3244:25 (mi…
> > > …)
> > trace: | | | (#<procedure 82201a0 at ice-9/boot-9.scm:3244:25 (…> …
> > )
> > trace: | | | | (resolve-interface (ice-9 colorized))
> > trace: | | | | | (#<procedure 821dd20 at ice-9/boot-9.s…> …)
> > trace: | | | | | | (nested-ref-module #<module () 8…> …)
> > trace: | | | | | | | (module-ref-submodule #<mo…> …)
> > trace: | | | | | | | | (#<procedure 8219b20…> …)
> > trace: | | | | | | | | #<hash-table 821dd70 121/223>
> > trace: | | | | | | | | (hashq-ref #<hash-ta…> …)
> > trace: | | | | | | | | #<directory (ice-9) 8200c18>
> > trace: | | | | | | | #<directory (ice-9) 8200c18>
> > trace: | | | | | | | (module-ref-submodule #<di…> …)
> > trace: | | | | | | | | (#<procedure 8219b20…> …)
> > trace: | | | | | | | | #<hash-table 82253a0 26/31>
> > trace: | | | | | | | | (hashq-ref #<hash-ta…> …)
> > trace: | | | | | | | | #<directory (ice-9 colorized) 852baf8>
> > trace: | | | | | | | #<directory (ice-9 colorized) 852baf8>
> > trace: | | | | | | #<directory (ice-9 colorized) 852baf8>
> > trace: | | | | | | (#<procedure 8235750 at ice-9/de…> …)
> > trace: | | | | | | | (#<procedure 8219a20 at ic…> …)
> > trace: | | | | | | | #<interface (ice-9 colorized) 852bab0>
> > trace: | | | | | | #<interface (ice-9 colorized) 852bab0>
> > trace: | | | | | #<directory (ice-9 colorized) 852baf8>
> > trace: | | | | | (#<procedure 8235750 at ice-9/deprecat…> …)
> > trace: | | | | | | (#<procedure 8219a20 at ice-9/bo…> …)
> > trace: | | | | | | #<interface (ice-9 colorized) 852bab0>
> > trace: | | | | | #<interface (ice-9 colorized) 852bab0>
> > trace: | | | | #<interface (ice-9 colorized) 852bab0>
> > trace: | | | #<interface (ice-9 colorized) 852bab0>
> > trace: | | (reverse! (#<interface (ice-9 colorized) 852bab0>))
> > trace: | | (#<interface (ice-9 colorized) 852bab0>)
> > trace: | (call-with-deferred-observers #<procedure 888f110 at
> > ice-9/boot…>)
> > trace: | | (#<procedure 8219820 at ice-9/boot-9.scm:1807:6 ()>)
> > trace: | | | (lock-mutex #<mutex 80f1870>)
> > trace: | | | #t
> > trace: | | #<unspecified>
> > trace: | | (#<procedure 849b130>)
> > trace: | | (() ((filename . "ice-9/boot-9.scm") (0 1806 . 6) (3 # .
> > 8) #) #)
> > trace: | | (#<procedure 84c9850>)
> > trace: | | (() ((filename . "ice-9/boot-9.scm") (0 1810 . 6) (5 # .
> > 8) # …) …)
> > trace: | | (#<procedure 888f110 at ice-9/boot-9.scm:3249:5 ()>)
> > trace: | | | (current-module)
> > trace: | | | #<directory (guile-user) 82006c0>
> > trace: | | (module-use-interfaces! #<directory (guile-user) 82006c0>
> > #)
> > trace: | | | (#<procedure 8219fa0 at ice-9/boot-9.scm:1709:2 (m…> …
> > )
> > trace: | | | (#<interface (guile) 8200dc8> #<autoload (system base
> > compi…> …)
> > trace: | | | (memq #<interface (ice-9 colorized) 852bab0> (#<…> …))
> > trace: | | | (#<interface (ice-9 colorized) 852bab0>)
> > trace: | | | (reverse ())
> > trace: | | | ()
> > trace: | | | (append (#<interface (guile) 8200dc8> #<autoloa…> …) …
> > )
> > trace: | | | (#<interface (guile) 8200dc8> #<autoload (system base
> > compi…> …)
> > trace: | | | (#<procedure 8219f60 at ice-9/boot-9.scm:1709:2 (m…> …
> > )
> > trace: | | | (#<interface (guile) 8200dc8> #<autoload (system base
> > compi…> …)
> > trace: | | | (#<procedure 8219ca0 at ice-9/boot-9.scm:1709:2 (m…> …
> > )
> > trace: | | | #<hash-table 8259480 0/883>
> > trace: | | | (hash-clear! #<hash-table 8259480 0/883>)
> > trace: | | | #<unspecified>
> > trace: | | (module-modified #<directory (guile-user) 82006c0>)
> > trace: | | (hash-set! #<hash-table 82198d0 0/31> #<directory (guile…
> > > …)
> > trace: | | #t
> > trace: | | (#<procedure 82197d0 at ice-9/boot-9.scm:1811:6 ()>)
> > trace: | | | (hash-for-each #<procedure 82197f0 at ice-9/boot-9…> …
> > )
> > trace: | | | | (#<procedure 82197f0 at ice-9/boot-9.scm:181…> …)
> > trace: | | | | (module-call-observers #<directory (guile-use…>)
> > trace: | | | | | (#<procedure 8219c60 at ice-9/boot-9.s…> …)
> > trace: | | | | | ()
> > trace: | | | | | (for-each #<procedure 861dd70 at ice-9…> …)
> > trace: | | | | | #<unspecified>
> > trace: | | | | | (#<procedure 8219be0 at ice-9/boot-9.s…> …)
> > trace: | | | | | #<weak-key-hash-table 8259470 0/31>
> > trace: | | | | (hash-for-each #<procedure 862a350 at ice-9/…> …)
> > trace: | | | | #<unspecified>
> > trace: | | | #<unspecified>
> > trace: | | | (hash-clear! #<hash-table 82198d0 1/31>)
> > trace: | | | #<unspecified>
> > trace: | | (unlock-mutex #<mutex 80f1870>)
> > trace: | | #t
> > trace: | #t
> > trace: #<unspecified>
> >
> >
> > Thanks!
> >
> >
> > Yanbin
> >
> > On Tue, Dec 4, 2012 at 8:43 PM, Nala Ginrut <nalaginrut@gmail.com>
> > wrote:
> > On Tue, 2012-12-04 at 16:20 -0600, Yanbin Zhang wrote:
> > > Hi,
> > >
> > >
> > > In the example of the README file, the module is spelled as
> > > "colorised". I guess it should be "colorized".
> > >
> >
> > Ah~thanks!
> > >
> > > I tried the example but I got:
> > > scheme@(guile-user)> (use-modules (oop goops) (rnrs) (ice-9
> > > colorized))
> > > While compiling expression:
> > > ERROR: In procedure module-lookup: Unbound variable:
> > <record-type>
> > >
> >
> > Can you provide more information?
> > You may post a trace result like that:
> > ===============cut=================
> > ,tr (use-modules (ice-9 colorized))
> > ===============end=================
> >
> > And Guile-2.0.5 is old, maybe bugs there.
> > I use the latest Guile, and I suggest you update to
> > Guile-2.0.7.
> >
> > > I am using Guile 2.0.5
> > >
> > >
> > > This is definitely a cool feature if I can get it working.
> > But myself
> > > is quite new to Guile and does not know my way around very
> > well.
> > > Thanks.
> > >
> > >
> > > Yanbin
> > >
> > >
> > >
> > > On Tue, Dec 4, 2012 at 12:42 AM, nalaginrut
> > <nalaginrut@gmail.com>
> > > wrote:
> > > hi folks!
> > > Here is the project to colorize Guile REPL:
> > > https://github.com/NalaGinrut/guile-colorized
> > > Play it according to README.
> > > Attached a screen shot for the effect.
> > > Enjoy it!
> > >
> > > And it uses 'before-print-hook', Daniel posted a
> > patch to add
> > > REPL
> > > optional printer in another thread.
> > > I'll update my project for this after that patch is
> > accepted,
> > > and format
> > > a patch.
> > >
> > > PS: Though I've tested it, but maybe bugs remain.
> > > Both bug-report/patches/suggestion are welcome,
> > thanks!
> > >
> > > Happy hacking!
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Yanbin Zhang
> > > ---------------------------------------------
> > > Research Assistant
> > > Department of Petroleum Engineering
> > > Texas A&M University
> > > 3116 TAMU - 702 RICH
> > > College Station, TX, 77843
> > >
> > >
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Yanbin Zhang
> > ---------------------------------------------
> > Research Assistant
> > Department of Petroleum Engineering
> > Texas A&M University
> > 3116 TAMU - 702 RICH
> > College Station, TX, 77843
> > 979-847-8797
> >
> >
>
>
>
>
--
Yanbin Zhang
---------------------------------------------
Research Assistant
Department of Petroleum Engineering
Texas A&M University
3116 TAMU - 702 RICH
College Station, TX, 77843
979-847-8797
[-- Attachment #2: Type: text/html, Size: 13288 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ANN] guile-colorized released!
2012-12-05 2:43 ` Nala Ginrut
2012-12-05 3:58 ` Yanbin Zhang
@ 2013-01-13 10:58 ` Andy Wingo
1 sibling, 0 replies; 9+ messages in thread
From: Andy Wingo @ 2013-01-13 10:58 UTC (permalink / raw)
To: Nala Ginrut; +Cc: Yanbin Zhang, guile-user
On Wed 05 Dec 2012 03:43, Nala Ginrut <nalaginrut@gmail.com> writes:
> You may post a trace result like that:
> ===============cut=================
> ,tr (use-modules (ice-9 colorized))
> ===============end=================
FWIW this probably doesn't do what you want -- the use-modules form is
actually evaluated twice: once at compilation time and again when it the
compiled expression is run. The first one probably has the interesting
side effects, but it happens outside of the trace.
I hear you've fixed it since then, but wanted to mention this point :)
Cheers,
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-01-13 10:58 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-04 6:42 [ANN] guile-colorized released! nalaginrut
2012-12-04 13:32 ` Ludovic Courtès
2012-12-04 14:10 ` Luiji Maryo
2012-12-04 22:20 ` Yanbin Zhang
2012-12-05 2:43 ` Nala Ginrut
2012-12-05 3:58 ` Yanbin Zhang
2012-12-05 4:08 ` Nala Ginrut
2012-12-05 4:26 ` Yanbin Zhang
2013-01-13 10:58 ` Andy Wingo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).