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

%edit command not working #60

Open
justjoheinz opened this issue Mar 4, 2023 · 1 comment
Open

%edit command not working #60

justjoheinz opened this issue Mar 4, 2023 · 1 comment

Comments

@justjoheinz
Copy link

Invoking %edit with or without filename results in an error:

CL-USER> %edit
CL-REPL will make a temporary file named: /var/folders/vr/t70kp3dd5m14_99ngdw8gdv40000gn/T/cl-repl-editJAIDFZTC.lisp
Openning file: /var/folders/vr/t70kp3dd5m14_99ngdw8gdv40000gn/T/cl-repl-editJAIDFZTC.lisp
Error: The value
                        NIL
                      is not of type
                        (OR STRING PATHNAME SYNONYM-STREAM FILE-STREAM)
                      when binding PATHNAME
[OUT]: NIL
CL-USER> %edit "repl.lisp"
Openning file: repl.lisp
Error: The value
                        NIL
                      is not of type
                        (OR STRING PATHNAME SYNONYM-STREAM FILE-STREAM)
                      when binding PATHNAME

the installation is

cl-repl 0.6.4 on Roswell 22.12.14.113, SBCL 2.3.1

using Mac OS.

@justjoheinz
Copy link
Author

Ah, just found that it is not the problem with the file provided, but with the env var EDITOR not being set. Maybe the check could provide a better error message?
Please feel free to close the issue, I just leave it open for your attention.

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

1 participant