{"action":"closed","issue":{"url":"https://api.github.com/repos/clojure-emacs/cider/issues/1048","labels_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1048/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1048/comments","events_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1048/events","html_url":"https://github.com/clojure-emacs/cider/issues/1048","id":65422529,"number":1048,"title":"Debugger errors with 'recur and 'do","user":{"login":"DesmondHayes","id":6135076,"avatar_url":"https://avatars.githubusercontent.com/u/6135076?v=3","gravatar_id":"","url":"https://api.github.com/users/DesmondHayes","html_url":"https://github.com/DesmondHayes","followers_url":"https://api.github.com/users/DesmondHayes/followers","following_url":"https://api.github.com/users/DesmondHayes/following{/other_user}","gists_url":"https://api.github.com/users/DesmondHayes/gists{/gist_id}","starred_url":"https://api.github.com/users/DesmondHayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DesmondHayes/subscriptions","organizations_url":"https://api.github.com/users/DesmondHayes/orgs","repos_url":"https://api.github.com/users/DesmondHayes/repos","events_url":"https://api.github.com/users/DesmondHayes/events{/privacy}","received_events_url":"https://api.github.com/users/DesmondHayes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clojure-emacs/cider/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/clojure-emacs/cider/labels/Debugger","name":"Debugger","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T10:43:52Z","updated_at":"2015-04-02T09:05:56Z","closed_at":"2015-04-02T09:05:56Z","body":"1.\r\n```clojure\r\n(defn factorial\r\n  [n]\r\n  (loop [cnt n acc 1]\r\n    (if (zero? cnt)\r\n      acc\r\n      (recur (dec cnt) (* acc cnt)))))\r\n```\r\nC-u C-c C-c to debug factorial gives an error in cider buffer:\r\n```\r\nFailed to instrument  (recur # #)\r\nCompilerException java.lang.UnsupportedOperationException: Can only recur from tail position, compiling:(blah-blah-blah)\r\n```\r\n2.\r\n```clojure\r\n(defn foo\r\n  [v]\r\n  (do v))\r\n```\r\nC-u C-c C-c to debug foo gives an error in cider buffer:\r\n```\r\nFailed to instrument  (do v)\r\n```\r\nand also sometimes hangs cider repl so that only C-c C-c can stop it (at which point it gives a huge error with a stacktrace)."}}