Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible issue with clog-repl #216

Closed
iantor opened this issue Aug 27, 2022 · 7 comments
Closed

possible issue with clog-repl #216

iantor opened this issue Aug 27, 2022 · 7 comments

Comments

@iantor
Copy link

iantor commented Aug 27, 2022

Latest commits of clog components, sbcl 2.2.7, slime, windows 10, default browser Chrome (fully up-to-date)

I may be doing something wrong, but I do see one error message, and I don't think I am seeing the right thing in the browser (I've attached a screen capture).

CL-USER> (in-package clog-user)
#<PACKAGE "CLOG-USER">
CLOG-USER> (clog-repl)
Hunchentoot server is started.
Listening on 0.0.0.0:8080.
HTTP listening on : 0.0.0.0:8080
HTML root : c:/Users/ian/quicklisp/local-projects/clog/./static-files/
Long poll first : no
Boot function added : no
Boot html source use : compiled version, when no file
Boot js source use : compiled version
Boot file for path / : /debug.html
Unable to open browser.

Subprocess with command "explorer "http://127.0.0.1:8080/repl\""
exited with error code 1Use clog-user:body to access the clog-repl window.
NIL
New connection id - 9e5a64f6e415bed32e64d8592f8351de - #<SERVER {100309B483}>
CLOG-USER> (setf (background-color body) "beige")
"beige"
CLOG-USER> (create-div body :content "Hello World!")
#<CLOG-DIV {100FAD4B83}>

image

@aykaramba
Copy link
Contributor

Just a noob user here, but that looks right to me. You can do (create-div body :content "Hello World" :class "w3-orange") and you would get a "Hello World" with and orange background div.

What is the actual concern? The subprocess exited error message? I don't know what that is but everything seems to be rendering correctly.

Are you able to run the tutorials?

@iantor
Copy link
Author

iantor commented Aug 28, 2022

Yes, the tutorials are now working for me, although I had trouble earlier. I guess I thought that this was supposed to be a repl where I could execute code, certainly that was the impression I had from the docs.

@aykaramba
Copy link
Contributor

aykaramba commented Aug 28, 2022

Awesome. Yes you got it right. It is a REPL and you did execute pure lisp / CLOG code and it rendered it out. You can literally render out anything you want in al ive session with it.

What do you mean by " I guess I thought that this was supposed to be a repl where I could execute code, certainly that was the impression I had from the docs."?

Just out of curiosity, this --> (create-div body :content "something" :class "something") doesn't look like code to you? What are your expectations as a user?

Once I finish upgrading my skills a bit I will write a tutorial for the CLOG repl to show all noobs how each widget is rendered and how they all tie together including some css based layout tricks based on w3.css which is amazing.

@iantor
Copy link
Author

iantor commented Aug 28, 2022 via email

@rabbibotton
Copy link
Owner

iantor, the idea beyond "clog-repl" is to extend the slime repl to use clog (ie easy access to a window for output with the current slim repl), not a replacement REPL.

In the builder there actually is a full repl (not yet as powerful as slime + emacs but close) of the nature you are thinking of.

It would be easy to give access to the clog repl outside of the builder, but not sure the value of it, but if need I can probably whip something up for you.

@iantor
Copy link
Author

iantor commented Aug 28, 2022 via email

@rabbibotton
Copy link
Owner

any time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants