{"action":"opened","issue":{"url":"https://api.github.com/repos/clojure-emacs/cider/issues/1839","repository_url":"https://api.github.com/repos/clojure-emacs/cider","labels_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1839/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1839/comments","events_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1839/events","html_url":"https://github.com/clojure-emacs/cider/issues/1839","id":174662386,"number":1839,"title":"Running two debuggable function calls in parallel hangs evaluation of first thread","user":{"login":"aengelberg","id":4122172,"avatar_url":"https://avatars.githubusercontent.com/u/4122172?v=3","gravatar_id":"","url":"https://api.github.com/users/aengelberg","html_url":"https://github.com/aengelberg","followers_url":"https://api.github.com/users/aengelberg/followers","following_url":"https://api.github.com/users/aengelberg/following{/other_user}","gists_url":"https://api.github.com/users/aengelberg/gists{/gist_id}","starred_url":"https://api.github.com/users/aengelberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aengelberg/subscriptions","organizations_url":"https://api.github.com/users/aengelberg/orgs","repos_url":"https://api.github.com/users/aengelberg/repos","events_url":"https://api.github.com/users/aengelberg/events{/privacy}","received_events_url":"https://api.github.com/users/aengelberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-02T01:33:47Z","updated_at":"2016-09-02T01:33:47Z","closed_at":null,"body":"## Steps to reproduce the problem\r\n\r\nWrite this function and send its definition to the REPL:\r\n\r\n```clojure\r\n(defn foo\r\n  [x]\r\n  #dbg (+ x 2))\r\n```\r\n\r\nThis compiles normally. Then, evaluate this in the REPL:\r\n\r\n```clojure\r\nuser=> (do (future (println (foo 1)))\r\n           (Thread/sleep 1000)\r\n           (future (println (foo 2))))\r\n```\r\n\r\n## Expected behavior\r\n\r\nI get to step through `(foo 1)`, and then I get to step through `(foo 2)`.\r\n\r\n## Actual behavior\r\n\r\nThe debugger appears showing `x => 1`. One second later, the 1 turns into a 2. After hitting <kbd>n</kbd> multiple times to step through the second expression, `4` prints out in the repl. The first expression never appears to finish evaluating.\r\n\r\n## Environment & Version information\r\n\r\n### CIDER version information\r\n\r\n```\r\n;; CIDER 0.13.0 (California), nREPL 0.2.12\r\n;; Clojure 1.8.0, Java 1.8.0_92\r\n```\r\n\r\n### Lein/Boot version\r\n\r\nLeiningen 2.6.1\r\n\r\n### Emacs version\r\n\r\n24.5.1\r\n\r\n### Operating system\r\n\r\nOS X 10.11.3 \"El Capitan\"\r\n"}}
{"actor":{"display_login":"aengelberg"}}