unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: David Pirotte <david@altosw.be>
To: Andy Wingo <wingo@pobox.com>
Cc: bug-guile@gnu.org, "Ludovic Courtès" <ludo@gnu.org>
Subject: Re: module system / (oop goops) / :duplicates (merge-generics) / bug?
Date: Fri, 19 Aug 2011 02:40:43 -0300	[thread overview]
Message-ID: <20110819024043.74a4d71e@rascar> (raw)
In-Reply-To: <87bovngf01.fsf@pobox.com>

Hi Andy,

Le Thu, 18 Aug 2011 13:01:34 +0200,
Andy Wingo <wingo@pobox.com> a écrit :

> Hi David,
> 
> I fixed it!

Thank you very much! The examples I sent earlier now all work, but I still have a
problem when running my app [the app is working perfectly if I name differently all
exported slot accessors, which I did while you were debugging]: I am trying to
figure out what is happening and hope to get back with a better 'figure' but here is
the backtrace I get [below].

	note that I did double check [in the gtk-repl before to click the 'print
	button' which triggers the error] that (default-duplicate-binding-handler)
	is effectively 'global' [in my init.scm] and returns what 'it should':
		(merge-generics replace warn-override-core warn last)

It is strange because the ERROR mentions No applicable method for #<<generic> show
(2)> in call (show #<procedure a279930 at oop/goops/dispatch.scm:196:4 args>)

     show is the gtk function of course, and the argument I pass should be the result of
     the following code extract [of a module which uses many others, 2 of which both
     export dialog]:

	...
	(define (kp/select-gui tl-widget)
	  (let* ((kp/widget (kp/make-dialog (dialog tl-widget) (glade-file tl-widget))) 
		   (widget (dialog kp/widget)))
	    (show widget)
	...

so as if (dialog kp/widget) returned a procedure ? As i said i will try to or debug
or better inform you, but if you have an idea, let me know...

Cheers,
David

;; -- 

scheme@(guile-user) [1]> Backtrace:
In unknown file:
   ?: 19 [scm-error goops-error #f ...]
In ice-9/boot-9.scm:
 115: 18 [#<procedure a5de5c8 at ice-9/boot-9.scm:110:6 (thrown-k . args)> goops-error ...]
In ice-9/r4rs.scm:
 174: 17 [with-input-from-port #<variable 9f15ad0 value: #<input: soft 9c20e10>> ...]
 178: 16 [with-output-to-port #<variable 9f15940 value: #<output: soft 9c20690>> ...]
 182: 15 [with-error-to-port #<variable 9f15780 value: #<output: soft 9c20690>> ...]
In system/repl/repl.scm:
 160: 14 [run-repl #<<repl> language: # options: # tm-stats: # gc-stats: # debug: #>]
In ice-9/boot-9.scm:
 170: 13 [catch #t #<procedure a24a650 at system/repl/repl.scm:115:4 ()> ...]
In ice-9/r4rs.scm:
 174: 12 [with-input-from-port #<variable 9b319f0 value: #<input: soft 9c20e10>> ...]
In system/repl/repl.scm:
  88: 11 [#<procedure a279d50 at system/repl/repl.scm:87:6 ()>]
 213: 10 [flush-leading-whitespace]
In unknown file:
   ?: 9 [peek-char #<undefined>]
In ice-9/buffered-input.scm:
  73: 8 [get-character]
 104: 7 [#<procedure 9d42400 at ice-9/buffered-input.scm:103:28 (continuation?)> #t]
In gnome/gtk/graphical-repl.scm:
 269: 6 [#<procedure a1218a0 at gnome/gtk/graphical-repl.scm:260:16 (continuation?)> #t]
In unknown file:
   ?: 5 [%gw:dynamic-procedure #<gw:wcp <g-main-loop> 0xa7e7f28>]
In ice-9/boot-9.scm:
 170: 4 [catch #t #<catch-closure a27be10> ...]
In unknown file:
   ?: 3 [catch-closure]
In kise/print.scm:
  56: 2 [kp/select-gui #<<kise/tl-widget> 9ecae00>]
In oop/goops/dispatch.scm:
 231: 1 [cache-miss # #]
In unknown file:
   ?: 0 [scm-error goops-error #f ...]

ERROR: In procedure scm-error:
ERROR: No applicable method for #<<generic> show (2)> in call (show #<procedure a279930 at oop/goops/dispatch.scm:196:4 args>)




  reply	other threads:[~2011-08-19  5:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-05 21:32 module system / (oop goops) / :duplicates (merge-generics) / bug? David Pirotte
2011-07-06 16:17 ` Ludovic Courtès
2011-07-06 19:22   ` David Pirotte
2011-07-07 11:37     ` Andy Wingo
2011-07-07 16:26       ` David Pirotte
2011-07-07 20:59         ` Andy Wingo
2011-07-08 17:05           ` David Pirotte
2011-07-09 10:02             ` Andy Wingo
2011-07-09 15:08               ` David Pirotte
2011-07-11 15:49                 ` Andy Wingo
2011-07-12  1:25                   ` David Pirotte
2011-08-18 11:01                     ` Andy Wingo
2011-08-19  5:40                       ` David Pirotte [this message]
2011-08-29 17:05                         ` David Pirotte
2011-08-30  2:56                           ` David Pirotte
2011-09-02 11:26                           ` Andy Wingo
2011-09-06 15:41                             ` David Pirotte
2011-08-03 12:28                   ` David Pirotte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110819024043.74a4d71e@rascar \
    --to=david@altosw.be \
    --cc=bug-guile@gnu.org \
    --cc=ludo@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).