{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/issues/359","repository_url":"https://api.github.com/repos/clojure-emacs/cider-nrepl","labels_url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/issues/359/comments","events_url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/issues/359/events","html_url":"https://github.com/clojure-emacs/cider-nrepl/issues/359","id":155087606,"number":359,"title":"Provide a way to opt out of nrepl middleware","user":{"login":"kurtwheeler","id":4026833,"avatar_url":"https://avatars.githubusercontent.com/u/4026833?v=3","gravatar_id":"","url":"https://api.github.com/users/kurtwheeler","html_url":"https://github.com/kurtwheeler","followers_url":"https://api.github.com/users/kurtwheeler/followers","following_url":"https://api.github.com/users/kurtwheeler/following{/other_user}","gists_url":"https://api.github.com/users/kurtwheeler/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtwheeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtwheeler/subscriptions","organizations_url":"https://api.github.com/users/kurtwheeler/orgs","repos_url":"https://api.github.com/users/kurtwheeler/repos","events_url":"https://api.github.com/users/kurtwheeler/events{/privacy}","received_events_url":"https://api.github.com/users/kurtwheeler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-16T18:15:51Z","updated_at":"2016-05-16T18:46:52Z","closed_at":null,"body":"Hello. I'd like to be able to not have any of the `middleware.out` code run. I like having my output go to stdout. I have been unable to find a way to unset the behavior that the `middleware.out` specifies.\r\n\r\nI've tried resetting the value of `*out*` with:\r\n```\r\n(do\r\n  (require '[cider.nrepl.middleware.out])\r\n  (alter-var-root #'*out* (constantly cider.nrepl.middleware.out/original-out))\r\n```\r\n\r\nbut that didn't work.\r\n\r\n## Expected behavior\r\n`(println \"hi\")` prints a line to stdout\r\n\r\n## Actual behavior\r\n`(println \"hi\")` prints a line to the Cider REPL.\r\n\r\n## Steps to reproduce the problem\r\n1. Start an app which launches an NREPL server.\r\n2. Connect emacs to that NREPL server using cider-mode\r\n3. Evaluate a form `(println \"hi\")`.\r\n\r\n## Environment & Version information\r\n\r\n### cider-nrepl version\r\n\r\n0.11.0\r\n\r\n### Java version\r\n\r\n1.7\r\n\r\n### Operating system\r\n\r\nXubuntu\r\n\r\n\r\nThanks for any help, support, or insight you can provide for this use case!"},"comment":{"url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/issues/comments/219510880","html_url":"https://github.com/clojure-emacs/cider-nrepl/issues/359#issuecomment-219510880","issue_url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/issues/359","id":219510880,"user":{"login":"Malabarba","id":453029,"avatar_url":"https://avatars.githubusercontent.com/u/453029?v=3","gravatar_id":"","url":"https://api.github.com/users/Malabarba","html_url":"https://github.com/Malabarba","followers_url":"https://api.github.com/users/Malabarba/followers","following_url":"https://api.github.com/users/Malabarba/following{/other_user}","gists_url":"https://api.github.com/users/Malabarba/gists{/gist_id}","starred_url":"https://api.github.com/users/Malabarba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Malabarba/subscriptions","organizations_url":"https://api.github.com/users/Malabarba/orgs","repos_url":"https://api.github.com/users/Malabarba/repos","events_url":"https://api.github.com/users/Malabarba/events{/privacy}","received_events_url":"https://api.github.com/users/Malabarba/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T18:46:52Z","updated_at":"2016-05-16T18:46:52Z","body":"The out middleware is not suppose to hide output from stdout. That is, it should print to *both* the repl and stdout. Is that the behaviour you get?"}}