libera/#shirakumo - IRC Chatlog
Search
16:07:46
Colleen
<shinmera> I have no idea how as I'm... fairly certain that function is stable these days.
16:38:23
Colleen
<shinmera> I'm also getting a weird thing where the semaphore appears to be incremented even without me seeing any print message associated with it being incremented.
16:44:41
Colleen
<shinmera> weird thing where the mac callback has a "queue" pointer as an arg, but that's apparently /not/ the queue we should be using.
16:48:12
Colleen
<shinmera> Also some changes recently have started windows to fuck up with null-refs somewhere in the UI render code
17:08:18
Colleen
<shinmera> Got things to a point where it pretends its playing stuff back but I can't actually hear anything.
17:13:37
Colleen
<shinmera> ok, if I don't do internal resampling I can get it to play, but it's still crusty as fuck.
17:34:04
Colleen
<tomelam@gmail.com> I couldn't get the example module's CSS file to match the path specified in the HTML.
17:34:24
Colleen
<tomelam@gmail.com> thomaselam@Thomass-MBP example % tree
.
├── example.asd
├── example.lisp
├── static
│ └── example.css
└── template
2 directories, 4 files
17:34:59
Colleen
<tomelam@gmail.com> For the tutorial, I tried this on a MacBook Pro (M1 chip) running Big Sur:
(ql:register-local-projects)
(ql:quickload :radiance)
(ql:quickload :plaster)
(radiance:startup)
(ql:quickload :lass)
(lass:generate (asdf:system-relative-pathname :plaster "static/plaster.lass"))
(in-package #:plaster)
(define-page edit "plaster/edit" (:clip "edit.ctml")
(r-clip:process T))
(define-page view "plaster/view/(.*)" (:uri-groups (id) :clip "view.ctml")
(r-clip:process T))
I didn't see any errors in the REPL, but when I visited localhost:8080/plaster/edit I got the Radiance welcome page.
17:35:44
Colleen
<tomelam@gmail.com> Here's what happens on an iMac running macOS Catalina:
; All Lisp interaction in SBCL 2.1.5. (Also re-tried in SBCL 2.1.6.)
; Preliminaries:
(ql:update-dist "quicklisp")
[lots of messages]
(ql:update-client)
[a few messages]
(ql:add-to-init-file)
; I quit SBCL and restarted it, then:
(ql:quickload :radiance)
...
(radiance:startup)
...
[package ironclad-vm];
; caught ERROR:
; READ error during COMPILE-FILE:
;
; Lock on package SB-VM violated when interning MAKE-EA while in package
; IRONCLAD-VM.
; See also:
; The SBCL Manual, Node "Package Locks"
;
; (in form starting at line: 34, column: 0, position: 1344)
debugger invoked on a UIOP/LISP-BUILD:COMPILE-FILE-ERROR in thread
#<THREAD "main thread" RUNNING {10015382C3}>:
COMPILE-FILE-ERROR while
compiling #<IRONCLAD-SOURCE-FILE "ironclad" "src" "opt" "sbcl" "x86oid-vm">
17:37:08
Colleen
<shinmera> that last problem has nothing to do with radiance. your packages are out of date.
17:38:27
Colleen
<shinmera> for the second problem, there's no route to plaster on that url. Try localhost:8080/!/plaster/edit instead to virtualise the domain.
17:40:28
Colleen
<tomelam@gmail.com> Did you say (ql:update-dist "quicklisp") will update my packages? I did that.
17:40:50
Colleen
<shinmera> :shrug: the error is from ironclad. Something about your packages is weird.
17:41:22
Colleen
<tomelam@gmail.com> Hmm. I will try tearing down my Lisp setup on that system and redoing it.
17:42:01
Colleen
<tomelam@gmail.com> Anyhow, you've given me some confidence that, more or less, I'm on the right track.
17:43:35
Colleen
<tomelam@gmail.com> In my first problem, is it possible my HTML page output is wrong?
17:45:27
Colleen
<tomelam@gmail.com>
thomaselam@Thomass-MBP example % cat example.lisp
(in-package #:rad-user)
(define-module #:example
(:use #:cl #:radiance))
(in-package #:example)
(define-page example "/example" ()
(cl-who:with-html-output-to-string (o)
(cl-who:htm
(:html
(:head (:title "Example Page")
(:link :rel "stylesheet" :type "text/css"
:href (uri-to-url "/static/example/example.css" :representation :external)))
(:body (:header (:h1 "Couldn't Be Simpler."))
(:main (:p "Trust me on this one.")))))))
17:47:55
Colleen
<tomelam@gmail.com> (uri-to-url "/static/example/example.css" ...) does not match my directory tree. Then should I change the uri to "/example/static/example.css"?
17:49:38
Colleen
<tomelam@gmail.com> Maybe I don't understand uri-to-url then. I'll read up. It's just not working for me. The CSS is not found (404 error). Any suggestions, please?
17:51:47
Colleen
<shinmera> In Radiance /static/ is special. It decomposes the url by looking at /static/{module}/{path..} and then turns that into {path-to-module-root}/static/{path...}
17:52:28
Colleen
<shinmera> But in order for that to work it needs to know where this module root is, and for that to work the ASD needs to be set up as a 'virtual module', and it has to be seen by ASDF (you can't C-c C-c the definition, for instance)
17:54:44
Colleen
<tomelam@gmail.com> Alright, I think I have enough to go on. I will check the ASD file. Is there any way I can set whether 'example' has been set up as a 'virtual module'?
17:56:51
Colleen
<tomelam@gmail.com> Alright. Now, in the documentation I don't think I saw that 'example' was quickloaded. Am I missing something? Should I just go ahead and try quickloading it?
18:00:35
Colleen
<tomelam@gmail.com> Could I be having the path problem if I forgot to (create-module "example")?
18:02:34
Colleen
<tomelam@gmail.com> Alright, thanks for all your help! I'll go away for a while and try this tonight or early tomorrow. Good night! Stay safe.
20:43:43
Colleen
<tomelam@gmail.com> @shinmera I'm beginning to understand Radiance better now, but I'm getting bumped into the debugger with the error 'The system example has no version specified, so Radiance does not know how to migrate it to the latest point.' Have I done it wrong? How can I avoid getting that error when I follow the simple tutorial?
21:33:29
Colleen
<tomelam@gmail.com> Oh, the instructions at https://shirakumo.github.io/radiance/ are great! I got the example to work with the CSS. If I had been more careful, I would have got this to work much earlier. Thanks for your help!