-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix (or suppress) warnings on the first REPL startup. #54
Fix (or suppress) warnings on the first REPL startup. #54
Conversation
@@ -6,7 +6,8 @@ exec ros -Q -L sbcl-bin -- $0 "$@" | |||
(progn ;;init forms | |||
(ros:ensure-asdf) | |||
(unless (find-package :cl-repl) | |||
(ql:quickload :cl-repl :silent t))) | |||
(handler-bind ((asdf:bad-system-name #'muffle-warning)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This suppresses the following ASDF warning:
WARNING: System definition file #P"/home/fukamachi/.roswell/lisp/quicklisp/dists/quicklisp/software/cl-ppcre-20190521-git/cl-ppcre.asd" contains definition for system "cl-ppcre-test". Please only define "cl-ppcre" and secondary systems with a name starting with "cl-ppcre/" (e.g. "cl-ppcre/test") in that file.
@@ -6,7 +6,8 @@ exec ros -Q -L sbcl-bin -- $0 "$@" | |||
(progn ;;init forms | |||
(ros:ensure-asdf) | |||
(unless (find-package :cl-repl) | |||
(ql:quickload :cl-repl :silent t))) | |||
(handler-bind ((asdf:bad-system-name #'muffle-warning)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This suppresses the following ASDF warning:
WARNING: System definition file #P"/home/fukamachi/.roswell/lisp/quicklisp/dists/quicklisp/software/cl-ppcre-20190521-git/cl-ppcre.asd" contains definition for system "cl-ppcre-test". Please only define "cl-ppcre" and secondary systems with a name starting with "cl-ppcre/" (e.g. "cl-ppcre/test") in that file.
(multiple-value-bind (options free-args) | ||
(handler-case | ||
(if argv (opts:get-opts argv) (opts:get-opts)) | ||
(error () | ||
(format t "try `cl-repl --help`.~&") | ||
(uiop:quit 1))) | ||
(declare (ignore free-args)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the following style-warning:
; caught STYLE-WARNING:
; The variable FREE-ARGS is defined but never used.
@@ -61,13 +61,14 @@ | |||
(rl:register-function :complete #'completer) | |||
(install-inspector)) | |||
|
|||
(defun main (&optional argv &key (show-logo t)) | |||
(defun main (argv &key (show-logo t)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the following style-warning on SBCL:
; caught STYLE-WARNING:
; &OPTIONAL and &KEY found in the same lambda list: (&OPTIONAL ARGV &KEY
; (SHOW-LOGO T))
I'll leave GitHub comments for each line.