rabbibotton / clog

CLOG - The Common Lisp Omnificent GUI
Other
1.53k stars 106 forks source link

problem compiling clog on Windows 10, sbcl 2.7.7 #211

Closed iantor closed 2 years ago

iantor commented 2 years ago

I am attempting to get clog working. I have installed the latest code from github. I am running into the following error:
(ql:quickload :clog)

Compilation proceeds, stops with the following error:

` [package clog-webgl]........................... ; file: c:/Users/ian/quicklisp/local-projects/clog/source/clog-document.lisp ; in: DEFMETHOD LOAD-SCRIPT (CLOG-DOCUMENT T) ; (FORMAT NIL "$.getScript('~A', function() {~ ; $(clog['document']).trigger('on-load-script',~ ; '~A')})" ; (CLOG:ESCAPE-STRING CLOG::SCRIPT-URL) ; (CLOG:ESCAPE-STRING CLOG::SCRIPT-URL)) ; ; caught ERROR: ; during macroexpansion of ; (FORMATTER "$.getScript('~A', function() {~ ; $(clog['document']).trigger('on-load-script',~ ; '~A')})"). ; Use BREAK-ON-SIGNALS to intercept. ; ; error in FORMAT: Unknown directive (character: Return) ; $.getScript('~A', function() {~ ; $(clog['document']).trigger('on-load-script',~ ; '~A')}) ; ^

debugger invoked on a UIOP/LISP-BUILD:COMPILE-FILE-ERROR in thread

<THREAD "main thread" RUNNING {1001E18003}>:

COMPILE-FILE-ERROR while compiling #<CL-SOURCE-FILE "clog" "source" "clog-document">

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name): 0: [RETRY ] Retry compiling #<CL-SOURCE-FILE "clog" "source" "clog-document">. 1: [ACCEPT ] Continue, treating compiling #<CL-SOURCE-FILE "clog" "source" "clog-document"> as having been successful. 2: Retry ASDF operation. 3: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the configuration. 4: Retry ASDF operation. 5: Retry ASDF operation after resetting the configuration. 6: [ABORT ] Give up on "clog" 7: [REGISTER-LOCAL-PROJECTS ] Register local projects and try again. 8: Exit debugger, returning to top level.

(UIOP/LISP-BUILD:CHECK-LISP-COMPILE-RESULTS NIL T T "~/asdf-action::format-action/" ((#<ASDF/LISP-ACTION:COMPILE-OP > . #<ASDF/LISP-ACTION:CL-SOURCE-FILE "clog" "source" "clog-document">))) error finding frame source: Bogus form-number: the source file has probably changed too much to cope with. source: NIL 0] `

Please advise. I did see mention of a problem with clog-document but can't locate that now.

rabbibotton commented 2 years ago

Look in to it now

rabbibotton commented 2 years ago

You must have git set up to translate new lines as windows new lines or modified clog-document and a crlf slipped in. It is a known bug in sbcl. You will most likely want to use - git config --global core.autocrlf input

rabbibotton commented 2 years ago

meant - git config --global core.autocrlf input So that it is checked out as is and checked in always unix style

iantor commented 2 years ago

got it. I use git for windows. Will reconfigure accordingly (they ask during installation), clear quicklisp, clone all repos again and try it.

On Sun, Aug 21, 2022 at 6:01 PM David Botton @.***> wrote:

You must have git set up to translate new lines as windows new lines or modified clog-document and a crlf slipped in. It is a known bug in sbcl. You will most likely want to use - git config --global core.autocrlf true

— Reply to this email directly, view it on GitHub https://github.com/rabbibotton/clog/issues/211#issuecomment-1221628433, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEGRFOAEB4PGIRBLQAYBLLV2KRNDANCNFSM57FQZIGQ . 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