-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
cider-load-buffer
throws an error for buffers without a ns form
#2058
Comments
I've gone back to 0.14 for now. |
@plandes can you help me recreate it? I'm cranking up a simple fizzbuzz project on the tip of master, the tagged release, and I'm not running into issues. When this ns-cache was being made, there were discussions of multiple connections and projects. Is it possible that there are some other steps required to reproduce this, perhaps multiple projects or something along those lines? But as it stands, I'm able to load buffers and files just fine. |
@dpsutton Sorry I didn't give more background. I assumed it was any file but it only chokes on files that don't start with a namespace ( |
ah ok. that makes this start to make more sense. I had a conversation on slack just now and it appears that |
That's correct. It started in 0.15.0 and rolling back to 0.14.0 fixed it. Also yes, there are lots of cases where declaring a |
cider-load-buffer
throws an errorcider-load-buffer
throws an error for buffers without a ns form
Can you list a couple? In what ns do you expect to load the buffer? "user"? Or the ns of the REPL? |
Hi @vspinu The use case that caused the issue for me was an invocation of
Of course in all these cases you could add a namespace, but that clutters things. However, a better reason is that it takes me time and extra thought to come up with some meaningful name and would just rather if I don't have to. I requiring namespaces might also lead to code that randomly generates namespaces like file names in Re which namespace to evaluate in when not declared: in cases where it doesn't matter either "user" or REPL would work. |
Expected behavior
Evaluate the buffer.
Actual behavior
Throws an error.
Steps to reproduce the problem
Load any Clojure file and then invoke:
M-x cider-load-buffer
.Here's the stack trace:
Environment & Version information
CIDER version information
Lein/Boot version
E.g. Lein 2.6.1 (skip this when you didn't start the nREPL server
using Lein or Boot)
Emacs version
GNU Emacs 25.2.1 (x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G29)) of 2017-07-20
Operating system
macOS Sierra
The text was updated successfully, but these errors were encountered: