Closed saufesma closed 5 years ago
What libraries did you load before running this code? What is a value of climi::*server-path-search-order*
? I've removed cache whatsoever and everything still worked for me just fine.
> (ql:quickload 'mcclim)
> (load "app.lisp")
> (app:app-main)
;; magic happens
CL-USER> climi::server-path-search-order (:CLX :NULL)
CL-USER> (find-package 'CLIM)
CL-USER> (find-package 'CLIM-LISP)
May you tell me what did you remove for me to get an idea what cache means.
rm -rf ~/.cache/common-lisp
I'm not asking if these packages are loaded but rather if you had loaded mcclim
system, which pulls dependency on backends.
I get the point. I issued (ql:quicklisp 'clim)
instead of
(ql:quicklisp 'mcclim)
That was the problem. Thanks
On Tue, Dec 4, 2018 at 3:33 AM Daniel Kochmanski notifications@github.com wrote:
rm -rf ~/.cache/common-lisp
I'm not asking if these packages are loaded but rather if you had loaded mcclim system, which pulls dependency on backends.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sharplispers/clx/issues/122#issuecomment-444014694, or mute the thread https://github.com/notifications/unsubscribe-auth/AreTbltjajNnw-S_EgQzSqMNkpyE7mJEks5u1jNHgaJpZM4Y_-9q .
When I try the following code ;;;;====McCLIM Guided Tour=========== (in-package :common-lisp-user)
(defpackage "HELLO" (:use :clim :clim-lisp) (:export "HELLO-MAIN"))
(in-package :hello)
(define-application-frame hello-world () ((greeting :initform "Hello World" :accessor greeting)) (:pane (make-pane 'hello-world-pane)))
(defclass hello-world-pane (clim-stream-pane) ())
;;; Behavior defined by the Handle Repaint Protocol (defmethod handle-repaint ((pane hello-world-pane) region) (let ((w (bounding-rectangle-width pane)) (h (bounding-rectangle-height pane))) ;; Blanc the pane out (draw-rectangle pane 0 0 w h :filled t :ink (pane-background pane)) ;; Draw greeting in center of pane (draw-text pane (greeting application-frame) (floor w 2) (floor h 2) :align-x :center :align-y :center)))
(defun hello-main () (run-frame-top-level (make-application-frame 'hello-world)))
I have this output
There is no applicable method for the generic function
when called with arguments (NIL). [Condition of type SIMPLE-ERROR]
May you explain me what is going on.
On Tue, Dec 4, 2018 at 3:39 AM igor denisov saufesma@gmail.com wrote:
I get the point. I issued (ql:quicklisp 'clim)
instead of
(ql:quicklisp 'mcclim)
That was the problem. Thanks
On Tue, Dec 4, 2018 at 3:33 AM Daniel Kochmanski notifications@github.com wrote:
rm -rf ~/.cache/common-lisp
I'm not asking if these packages are loaded but rather if you had loaded mcclim system, which pulls dependency on backends.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sharplispers/clx/issues/122#issuecomment-444014694, or mute the thread https://github.com/notifications/unsubscribe-auth/AreTbltjajNnw-S_EgQzSqMNkpyE7mJEks5u1jNHgaJpZM4Y_-9q .
This is most likely a bug in McCLIM, please report a new issue in there[1]. I'll take a look at it when I have a bit more time. I can reproduce the problem locally (and it doesn't look like there is anything wrong with your code).
Already did. Why this happens to me.
On Tue, Dec 4, 2018 at 4:04 AM Daniel Kochmanski notifications@github.com wrote:
This is most likely a bug in McCLIM, please report a new issue in there. I'll take a look at it when I have a bit more time. I can reproduce the problem locally (and it doesn't look like there is anything wrong with your code).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sharplispers/clx/issues/122#issuecomment-444023975, or mute the thread https://github.com/notifications/unsubscribe-auth/AreTbm1Qn80gN0yFGz1dgT5TrZgsu8Kxks5u1jq1gaJpZM4Y_-9q .
(ql:quicklisp 'mcclim)
(in-package :common-lisp-user)
(defpackage "APP" (:use :clim :clim-lisp) (:export "APP-MAIN"))
(in-package :app)
(define-application-frame superapp () () (:panes (int :interactor :height 400 :width 600)) (:layouts (default int)))
(defun app-main () (run-frame-top-level (make-application-frame 'superapp)))
;;;To fire up ;;;in-package :app (app-main)
Couple of days ago the app was ok and oops today.