{"action":"created","issue":{"url":"https://api.github.com/repos/fbehrens/sublime_ExternalREPL/issues/2","labels_url":"https://api.github.com/repos/fbehrens/sublime_ExternalREPL/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/fbehrens/sublime_ExternalREPL/issues/2/comments","events_url":"https://api.github.com/repos/fbehrens/sublime_ExternalREPL/issues/2/events","html_url":"https://github.com/fbehrens/sublime_ExternalREPL/issues/2","id":37810304,"number":2,"title":"Silent failure on OS X","user":{"login":"CGamesPlay","id":1216626,"avatar_url":"https://avatars.githubusercontent.com/u/1216626?v=3","gravatar_id":"","url":"https://api.github.com/users/CGamesPlay","html_url":"https://github.com/CGamesPlay","followers_url":"https://api.github.com/users/CGamesPlay/followers","following_url":"https://api.github.com/users/CGamesPlay/following{/other_user}","gists_url":"https://api.github.com/users/CGamesPlay/gists{/gist_id}","starred_url":"https://api.github.com/users/CGamesPlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CGamesPlay/subscriptions","organizations_url":"https://api.github.com/users/CGamesPlay/orgs","repos_url":"https://api.github.com/users/CGamesPlay/repos","events_url":"https://api.github.com/users/CGamesPlay/events{/privacy}","received_events_url":"https://api.github.com/users/CGamesPlay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-07-14T17:59:10Z","updated_at":"2015-08-02T09:36:57Z","closed_at":null,"body":"This is more of a note; something that might be useful in the README. When I press `Ctrl-Shift-Enter`, the cursor moves down a line but the tmux session gets no input.\r\n\r\nThe problem ended up being caused by `tmux` not being in Sublime's `PATH`. To verify that this, I opened the console `Ctrl-`` and ran:\r\n\r\n```python\r\nfrom subprocess import check_output\r\ncheck_output(\"which tmux\", shell=True)\r\n# subprocess.CalledProcessError: Command 'which tmux' returned non-zero exit status 1\r\ncheck_output(\"echo $PATH\", shell=True)\r\n# b'/usr/bin:/bin:/usr/sbin:/sbin\\n'\r\n```\r\n\r\nTo fix this, I created a new file `~/Library/Application Support/Sublime Text 3/Packages/User/User.py`:\r\n\r\n```python\r\nimport os\r\nos.environ['PATH'] = \"/usr/local/bin:\" + os.environ['PATH']\r\n```\r\n\r\nSublime reloaded the plugin automatically and my `PATH` was correctly set up.\r\n\r\nThe reason this happened: I installed `tmux` using `brew install tmux`, which places it into `/usr/local/bin/tmux`. This is fine, because `/etc/paths` contains `/usr/local/bin`. However, `/etc/paths` is only used in console applications, so Sublime Text is exempted."},"comment":{"url":"https://api.github.com/repos/fbehrens/sublime_ExternalREPL/issues/comments/127006755","html_url":"https://github.com/fbehrens/sublime_ExternalREPL/issues/2#issuecomment-127006755","issue_url":"https://api.github.com/repos/fbehrens/sublime_ExternalREPL/issues/2","id":127006755,"user":{"login":"fbehrens","id":13704,"avatar_url":"https://avatars.githubusercontent.com/u/13704?v=3","gravatar_id":"","url":"https://api.github.com/users/fbehrens","html_url":"https://github.com/fbehrens","followers_url":"https://api.github.com/users/fbehrens/followers","following_url":"https://api.github.com/users/fbehrens/following{/other_user}","gists_url":"https://api.github.com/users/fbehrens/gists{/gist_id}","starred_url":"https://api.github.com/users/fbehrens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbehrens/subscriptions","organizations_url":"https://api.github.com/users/fbehrens/orgs","repos_url":"https://api.github.com/users/fbehrens/repos","events_url":"https://api.github.com/users/fbehrens/events{/privacy}","received_events_url":"https://api.github.com/users/fbehrens/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T09:36:57Z","updated_at":"2015-08-02T09:36:57Z","body":"Thanks for the comment. I really appreciate your feedback. Sorry for the delay.\r\nYes configuration is a hazzle, I added a comment in the readme.\r\n"}}