{"action":"created","issue":{"url":"https://api.github.com/repos/ardumont/emacs-psci/issues/9","labels_url":"https://api.github.com/repos/ardumont/emacs-psci/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/ardumont/emacs-psci/issues/9/comments","events_url":"https://api.github.com/repos/ardumont/emacs-psci/issues/9/events","html_url":"https://github.com/ardumont/emacs-psci/issues/9","id":116968867,"number":9,"title":"Sending commands to psci causes the process to quit","user":{"login":"bsermons","id":3093423,"avatar_url":"https://avatars.githubusercontent.com/u/3093423?v=3","gravatar_id":"","url":"https://api.github.com/users/bsermons","html_url":"https://github.com/bsermons","followers_url":"https://api.github.com/users/bsermons/followers","following_url":"https://api.github.com/users/bsermons/following{/other_user}","gists_url":"https://api.github.com/users/bsermons/gists{/gist_id}","starred_url":"https://api.github.com/users/bsermons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsermons/subscriptions","organizations_url":"https://api.github.com/users/bsermons/orgs","repos_url":"https://api.github.com/users/bsermons/repos","events_url":"https://api.github.com/users/bsermons/events{/privacy}","received_events_url":"https://api.github.com/users/bsermons/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-15T02:55:34Z","updated_at":"2015-11-15T14:18:53Z","closed_at":null,"body":"Using 0.7.5.3 of purescript/psci, anything that calls the psci/--run-psci-command! function causes the psci process to quit.  \r\n\r\nI think it is the call to process-send-eof that is causing it since manually sending EOF has the same behavior."},"comment":{"url":"https://api.github.com/repos/ardumont/emacs-psci/issues/comments/156814464","html_url":"https://github.com/ardumont/emacs-psci/issues/9#issuecomment-156814464","issue_url":"https://api.github.com/repos/ardumont/emacs-psci/issues/9","id":156814464,"user":{"login":"ardumont","id":718812,"avatar_url":"https://avatars.githubusercontent.com/u/718812?v=3","gravatar_id":"","url":"https://api.github.com/users/ardumont","html_url":"https://github.com/ardumont","followers_url":"https://api.github.com/users/ardumont/followers","following_url":"https://api.github.com/users/ardumont/following{/other_user}","gists_url":"https://api.github.com/users/ardumont/gists{/gist_id}","starred_url":"https://api.github.com/users/ardumont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardumont/subscriptions","organizations_url":"https://api.github.com/users/ardumont/orgs","repos_url":"https://api.github.com/users/ardumont/repos","events_url":"https://api.github.com/users/ardumont/events{/privacy}","received_events_url":"https://api.github.com/users/ardumont/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T14:18:53Z","updated_at":"2015-11-15T14:18:53Z","body":"Hello,\r\n\r\nyou can test your assertion by monkey-patching this function from:\r\n\r\n```lisp\r\n(defun psci/--run-psci-command! (command)\r\n  \"Run psci COMMAND as string.\"\r\n  (-when-let (process (get-buffer-process (psci/--process-name psci/buffer-name)))\r\n    (comint-simple-send process command)\r\n    (process-send-eof process)))\r\n\r\n```\r\n\r\nto:\r\n```lisp\r\n(defun psci/--run-psci-command! (command)\r\n  \"Run psci COMMAND as string.\"\r\n  (-when-let (process (get-buffer-process (psci/--process-name psci/buffer-name)))\r\n    (comint-simple-send process command)))\r\n```\r\n(not tested)\r\n\r\nUse a *scratch* buffer, copy the second definition and eval it (M-x eval-buffer).\r\n\r\nThen try again what you actually did to have the problem.\r\nIs it better?\r\n\r\nNote: \r\n- I did not tested it.\r\n- This is volatile and only for test purposes. As soon as you will restart your emacs, those changes will be lost. To get back to the normal definition without restarting emacs, eval the first definition.\r\n\r\nCheers,"}}