-
-
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-repl-set-ns
has become artificial
#909
Comments
I just noticed this is happening only at the cljs repl. |
@danskarda This command doesn't use eval, so I don't see the connection to #830. |
I have the same bug with CIDER 0.8.2 |
Someone suggested that aeb125e might have caused this, but the REPL ns is associated with REPL buffer and doing |
In a cljs situation it may come to pass that the server needs to send the client unsolicited messages that the developer has instructed it to do. What does the client do then when the message looks like this:
when the This makes me think that we can't help but resort to calling the real |
To be clear, these messages originate within the same session as this transcript shows:
Actually I don't even think the unsolicited messages matter. The returned result simply insists on using the |
While I can add a workaround for this I strongly feel this is a piggieback bug. It seems pretty strange that the request and the response have different |
If I think the thought behind aeb125e was that all REPL evaluations can be sent with an This and nrepl/weasel#26 popped up in my notifications at the same time. FWIW, I'm using piggieback 0.1.5-SNAPSHOT with cider 0.6.0alpha and CLJS 2665 and cider-repl-set-ns works as expected. |
@cemerick, thanks for the quick response.
Indeed, it was.
I understand what you're saying, although in CIDER this is unlikely to ever the a problem. This change was done half an year ago and nobody has complained about problems caused by it. For me the actual problem is that piggieback's behaviour differs from the standard nREPL behaviour - piggieback returns |
I'm mobile a.t.m., so I've bit looked at the code, but I'm not sure that nrepl isn't in the wrong here, if it's really returning the ns argument instead of |
Forms like
Other forms, however, return the
In the previous example no Perhaps the eval requests are altering the |
The nREPL test related to the argument doesn't check what Combined with the fact that IMO, the |
I'm fine with filing this as an nREPL bug and making it to behave like piggieback. |
@cemerick Filed a nREPL ticket a reverted to the old behaviour in CIDER. All related tickets can now be closed. |
Yup, thanks @bbatsov. People can follow http://dev.clojure.org/jira/browse/NREPL-72. |
C-c M-n
temporarily sets ns which gets reset tocljs.user
after evaling an expression.On closer look. My suspicion seems confirmed:
Also calling
in-ns
from the repl gets the job done. So somewhere along the line something likein-ns
doesn't get called.ielm => (cider-version) "CIDER 0.8.2snapshot (package: 20141130.803)"
Regards.
The text was updated successfully, but these errors were encountered: