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

Fix (or suppress) warnings on the first REPL startup. #54

Closed

Conversation

fukamachi
Copy link
Contributor

I'll leave GitHub comments for each line.

@@ -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))
Copy link
Contributor Author

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))
Copy link
Contributor Author

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))
Copy link
Contributor Author

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))
Copy link
Contributor Author

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))

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

Successfully merging this pull request may close these issues.

None yet

1 participant