Looking at your backtrace, it appears that accepting-values is being called on a stream from SLIME rather than a CLIM stream, so naturally there are no applicable methods. CLIM usually binds *standard-input* and *standard-output* to reasonable defaults (see frame-standard-input, frame-standard-output which make this choice). I don't know why that isn't happening here without seeing your code, maybe it is running in an unusual context (like before the frame toplevel binds those stream variables, or in an event handler). In any case, all you need to do is obtain the appropriate CLIM streams (via any of frame-standard-input, get-frame-pane, etc) for your window and write to those.
On 2/1/06, Peter Braroe peter.braroe@newsmachine.com wrote:
Hello all!
I am trying to get into mcCLIM to write a frontend to a text (news) analysis tool... I use CMUCL and have followed the INSTALL.CMU file and most of the demos work fine. But as I get down to it and start writing code to use "accepting-values" for instance I get the message below. I also get it when running the demos so i assume that something is wrong with the environment... but what? It's probably something simple but I have tried to figgure it out for a lot of hours and some ideas would be greatly appreciated!
Thanks,
/Peter
PS I tried wihout SLIME but that didn't work either. See second trace below.
CL-USER> (clim-demo::accepting-interval)
No matching method for the generic function #<STANDARD-GENERIC-FUNCTION CLIM:STREAM-CURSOR-POSITION (2) {58BBC3B9}>, when called with arguments (#<Two-Way Stream, Input = #<SWANK-BACKEND::SLIME-INPUT-STREAM {58B7D7B5}>, Output = #<Stream for descriptor 7>>). [Condition of type PCL::NO-APPLICABLE-METHOD-ERROR]
Restarts: 0: [CONTINUE] Retry call to :FUNCTION. 1: [ABORT] Abort handling SLIME request. 2: [ABORT] Return to Top-Level.
Backtrace: 0: ("DEFMETHOD NO-APPLICABLE-METHOD (T)" #<#1=unused-arg> #<#1#> #<STANDARD-GENERIC-FUNCTION CLIM:STREAM-CURSOR-POSITION (2) {58BBC3B9}> (#<Two-Way Stream, Input = #<SWANK-BACKEND::SLIME-INPUT-STREAM {58B7D7B5}>, Output = #<Stream for descriptor 7>>)) 1: (CLIM-INTERNALS::INVOKE-ACCEPTING-VALUES #<Two-Way Stream, Input = #SWANK-BACKEND::SLIME-INPUT-STREAM {58B7D7B5}, Output = #<Stream for descriptor 7>> #<Closure Over Function (FLET #:ACCEPTING-VALUES-CONTINUATION1 CLIM-DEMO::ACCEPTING-INTERVAL) {58A68171}> :OWN-WINDOW #<unused-arg> ...) 2: (CLIM-DEMO::ACCEPTING-INTERVAL :MIN -1.0 :MAX 1.0 ...) 3: (SWANK::EVAL-REGION "(clim-demo::accepting-interval)" T) 4: ("DEFSLIMEFUN LISTENER-EVAL")
_____________________TRACE WITHOUT SLIME ________________________________________
- (clim-demo::accepting-interval)
No matching method for the generic function #<STANDARD-GENERIC-FUNCTION CLIM:STREAM-CURSOR-POSITION (2) {58B61979}>, when called with arguments (#<Synonym Stream to *TERMINAL-IO*>). [Condition of type PCL::NO-APPLICABLE-METHOD-ERROR]
Restarts: 0: [CONTINUE] Retry call to :FUNCTION. 1: [ABORT ] Return to Top-Level.
Debug (type H for help)
("DEFMETHOD NO-APPLICABLE-METHOD (T)" #<unused-arg> #<unused-arg> #<STANDARD-GENERIC-FUNCTION CLIM:STREAM-CURSOR-POSITION (2) {58B61979}> (#<Synonym Stream to *TERMINAL-IO*>)) Source: ; File: target:pcl/braid.lisp (CERROR "Retry call to ~S." 'NO-APPLICABLE-METHOD-ERROR :FUNCTION GENERIC-FUNCTION ...) 0]
mcclim-devel mailing list mcclim-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/mcclim-devel