{"action":"created","issue":{"url":"https://api.github.com/repos/puniverse/pulsar/issues/60","repository_url":"https://api.github.com/repos/puniverse/pulsar","labels_url":"https://api.github.com/repos/puniverse/pulsar/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/puniverse/pulsar/issues/60/comments","events_url":"https://api.github.com/repos/puniverse/pulsar/issues/60/events","html_url":"https://github.com/puniverse/pulsar/issues/60","id":166067455,"number":60,"title":"Reloading defsfn in the REPL","user":{"login":"andreasthoelke","id":6566914,"avatar_url":"https://avatars.githubusercontent.com/u/6566914?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasthoelke","html_url":"https://github.com/andreasthoelke","followers_url":"https://api.github.com/users/andreasthoelke/followers","following_url":"https://api.github.com/users/andreasthoelke/following{/other_user}","gists_url":"https://api.github.com/users/andreasthoelke/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasthoelke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasthoelke/subscriptions","organizations_url":"https://api.github.com/users/andreasthoelke/orgs","repos_url":"https://api.github.com/users/andreasthoelke/repos","events_url":"https://api.github.com/users/andreasthoelke/events{/privacy}","received_events_url":"https://api.github.com/users/andreasthoelke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"circlespainter","id":6113296,"avatar_url":"https://avatars.githubusercontent.com/u/6113296?v=3","gravatar_id":"","url":"https://api.github.com/users/circlespainter","html_url":"https://github.com/circlespainter","followers_url":"https://api.github.com/users/circlespainter/followers","following_url":"https://api.github.com/users/circlespainter/following{/other_user}","gists_url":"https://api.github.com/users/circlespainter/gists{/gist_id}","starred_url":"https://api.github.com/users/circlespainter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/circlespainter/subscriptions","organizations_url":"https://api.github.com/users/circlespainter/orgs","repos_url":"https://api.github.com/users/circlespainter/repos","events_url":"https://api.github.com/users/circlespainter/events{/privacy}","received_events_url":"https://api.github.com/users/circlespainter/received_events","type":"User","site_admin":false},"assignees":[{"login":"circlespainter","id":6113296,"avatar_url":"https://avatars.githubusercontent.com/u/6113296?v=3","gravatar_id":"","url":"https://api.github.com/users/circlespainter","html_url":"https://github.com/circlespainter","followers_url":"https://api.github.com/users/circlespainter/followers","following_url":"https://api.github.com/users/circlespainter/following{/other_user}","gists_url":"https://api.github.com/users/circlespainter/gists{/gist_id}","starred_url":"https://api.github.com/users/circlespainter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/circlespainter/subscriptions","organizations_url":"https://api.github.com/users/circlespainter/orgs","repos_url":"https://api.github.com/users/circlespainter/repos","events_url":"https://api.github.com/users/circlespainter/events{/privacy}","received_events_url":"https://api.github.com/users/circlespainter/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-07-18T10:52:47Z","updated_at":"2016-07-18T21:12:32Z","closed_at":null,"body":"Thank you for Pulsar, it looks amazing!\r\n\r\nIt seems I can't reload suspendable functions in the REPL. Entering this in the REPL works as expected (printing \"one\"):\r\n\r\n```clojure\r\n(defsfn a1 []\r\n  (receive\r\n    :ab (println \"one\")))\r\n\r\n(def aa (spawn a1))\r\n\r\n(! aa :ab)\r\n```\r\nHowever when entering the expressions again (slightly changed) (or alternatively calling `(clojure.tools.namespace.repl/refresh)`), I won't see a result printed:\r\n\r\n```clojure\r\n(defsfn a1 []\r\n  (receive\r\n    :ab (println \"two\")))\r\n\r\n(def aa (spawn a1))\r\n\r\n(! aa :ab)\r\n```\r\n\r\nI'm using\r\n```clojure\r\n  :dependencies [[org.clojure/clojure \"1.8.0\"] \r\n                 [co.paralleluniverse/quasar-core \"0.7.5\"]\r\n                 [co.paralleluniverse/pulsar \"0.7.5\"]\r\n                 ]\r\n  :java-agents  [[co.paralleluniverse/quasar-core \"0.7.5\"]]\r\n```"},"comment":{"url":"https://api.github.com/repos/puniverse/pulsar/issues/comments/233460499","html_url":"https://github.com/puniverse/pulsar/issues/60#issuecomment-233460499","issue_url":"https://api.github.com/repos/puniverse/pulsar/issues/60","id":233460499,"user":{"login":"andreasthoelke","id":6566914,"avatar_url":"https://avatars.githubusercontent.com/u/6566914?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasthoelke","html_url":"https://github.com/andreasthoelke","followers_url":"https://api.github.com/users/andreasthoelke/followers","following_url":"https://api.github.com/users/andreasthoelke/following{/other_user}","gists_url":"https://api.github.com/users/andreasthoelke/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasthoelke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasthoelke/subscriptions","organizations_url":"https://api.github.com/users/andreasthoelke/orgs","repos_url":"https://api.github.com/users/andreasthoelke/repos","events_url":"https://api.github.com/users/andreasthoelke/events{/privacy}","received_events_url":"https://api.github.com/users/andreasthoelke/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T21:12:32Z","updated_at":"2016-07-18T21:12:32Z","body":"Just to confirm, as expected `def a (sfn [] ...` works fine with component/reloaded workflow, while `defsfn a [] ..` doesn't."}}
{"actor":{"display_login":"andreasthoelke"}}