rabbibotton / clog

CLOG - The Common Lisp Omnificent GUI
Other
1.49k stars 102 forks source link

possible issue with clog-repl #216

Closed iantor closed 1 year ago

iantor commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

repl to me means that it is a place where you can enter code and evaluate it, similar to slime in emacs. In other words I would expect some facility to enter something like (+ 5 3) (in the browser window) and get a result of 8. If it is just printing text to a web browser window I wouldn't describe that as a repl.

On Sat, Aug 27, 2022 at 9:01 PM aykaramba @.***> wrote:

Awesome. Yes you got it right. It is 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?

— Reply to this email directly, view it on GitHub https://github.com/rabbibotton/clog/issues/216#issuecomment-1229349578, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEGRFOUDMDBW4563NYCK7LV3K25FANCNFSM57ZWLIZQ . You are receiving this because you authored the thread.Message ID: @.***>

--

Ian Garmaise Consultant Phorix Solutions Group @.*** Toronto cell: 416.432.2251 (also on Whatsapp)

https://www.linkedin.com/in/igarmaise/

http://www.PhorixSol.com

rabbibotton commented 1 year ago

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 commented 1 year ago

Hi David, that clears things up. I guess I just wasn't clear on the purpose of the feature. Thanks for your detailed reply.

Cheers,

Ian

On Sat, Aug 27, 2022 at 10:04 PM David Botton @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/rabbibotton/clog/issues/216#issuecomment-1229356628, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEGRFL5LWJQFH4DMXNEMK3V3LCJDANCNFSM57ZWLIZQ . You are receiving this because you authored the thread.Message ID: @.***>

--

Ian Garmaise Consultant Phorix Solutions Group @.*** Toronto cell: 416.432.2251 (also on Whatsapp)

https://www.linkedin.com/in/igarmaise/

http://www.PhorixSol.com

rabbibotton commented 1 year ago

any time!