{"action":"created","issue":{"url":"https://api.github.com/repos/supercollider/supercollider/issues/1657","labels_url":"https://api.github.com/repos/supercollider/supercollider/issues/1657/labels{/name}","comments_url":"https://api.github.com/repos/supercollider/supercollider/issues/1657/comments","events_url":"https://api.github.com/repos/supercollider/supercollider/issues/1657/events","html_url":"https://github.com/supercollider/supercollider/issues/1657","id":107055201,"number":1657,"title":"calling ScIDE prSend from a routine makes the ide unreachable","user":{"login":"telephon","id":1810559,"avatar_url":"https://avatars.githubusercontent.com/u/1810559?v=3","gravatar_id":"","url":"https://api.github.com/users/telephon","html_url":"https://github.com/telephon","followers_url":"https://api.github.com/users/telephon/followers","following_url":"https://api.github.com/users/telephon/following{/other_user}","gists_url":"https://api.github.com/users/telephon/gists{/gist_id}","starred_url":"https://api.github.com/users/telephon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telephon/subscriptions","organizations_url":"https://api.github.com/users/telephon/orgs","repos_url":"https://api.github.com/users/telephon/repos","events_url":"https://api.github.com/users/telephon/events{/privacy}","received_events_url":"https://api.github.com/users/telephon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/supercollider/supercollider/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/supercollider/supercollider/labels/env:%20Qt%20IDE","name":"env: Qt IDE","color":"90D1B0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-17T19:24:40Z","updated_at":"2015-09-17T19:41:10Z","closed_at":null,"body":"if you call an IDE command from a routine, it makes the ide unreachable from sclang:\r\n\r\n````\r\ns.boot;\r\ns.mute; // works\r\ns.unmute;\r\n\r\nfork { ScIDE.prSend(\\mute) };\r\n\r\ns.mute; // broken.\r\n````\r\n\r\nyou need to reboot the interpreter to wake up the connection to the ide."},"comment":{"url":"https://api.github.com/repos/supercollider/supercollider/issues/comments/141204283","html_url":"https://github.com/supercollider/supercollider/issues/1657#issuecomment-141204283","issue_url":"https://api.github.com/repos/supercollider/supercollider/issues/1657","id":141204283,"user":{"login":"telephon","id":1810559,"avatar_url":"https://avatars.githubusercontent.com/u/1810559?v=3","gravatar_id":"","url":"https://api.github.com/users/telephon","html_url":"https://github.com/telephon","followers_url":"https://api.github.com/users/telephon/followers","following_url":"https://api.github.com/users/telephon/following{/other_user}","gists_url":"https://api.github.com/users/telephon/gists{/gist_id}","starred_url":"https://api.github.com/users/telephon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telephon/subscriptions","organizations_url":"https://api.github.com/users/telephon/orgs","repos_url":"https://api.github.com/users/telephon/repos","events_url":"https://api.github.com/users/telephon/events{/privacy}","received_events_url":"https://api.github.com/users/telephon/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T19:41:10Z","updated_at":"2015-09-17T19:41:10Z","body":"The problem can be circumvented by deferring:\r\n\r\n````fork { defer { ScIDE.prSend(\\mute) } };````\r\n\r\nSo essentially, the IDE has to be called from an AppClock thread. If this is true, then ````prSend```` should be doing this."}}