{"action":"created","issue":{"url":"https://api.github.com/repos/wbolster/emacs-direnv/issues/17","repository_url":"https://api.github.com/repos/wbolster/emacs-direnv","labels_url":"https://api.github.com/repos/wbolster/emacs-direnv/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/wbolster/emacs-direnv/issues/17/comments","events_url":"https://api.github.com/repos/wbolster/emacs-direnv/issues/17/events","html_url":"https://github.com/wbolster/emacs-direnv/issues/17","id":254651942,"node_id":"MDU6SXNzdWUyNTQ2NTE5NDI=","number":17,"title":"direnv loads too late sometimes","user":{"login":"peterhoeg","id":722550,"node_id":"MDQ6VXNlcjcyMjU1MA==","avatar_url":"https://avatars1.githubusercontent.com/u/722550?v=4","gravatar_id":"","url":"https://api.github.com/users/peterhoeg","html_url":"https://github.com/peterhoeg","followers_url":"https://api.github.com/users/peterhoeg/followers","following_url":"https://api.github.com/users/peterhoeg/following{/other_user}","gists_url":"https://api.github.com/users/peterhoeg/gists{/gist_id}","starred_url":"https://api.github.com/users/peterhoeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterhoeg/subscriptions","organizations_url":"https://api.github.com/users/peterhoeg/orgs","repos_url":"https://api.github.com/users/peterhoeg/repos","events_url":"https://api.github.com/users/peterhoeg/events{/privacy}","received_events_url":"https://api.github.com/users/peterhoeg/received_events","type":"User","site_admin":false},"labels":[{"id":552684766,"node_id":"MDU6TGFiZWw1NTI2ODQ3NjY=","url":"https://api.github.com/repos/wbolster/emacs-direnv/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":612303766,"node_id":"MDU6TGFiZWw2MTIzMDM3NjY=","url":"https://api.github.com/repos/wbolster/emacs-direnv/labels/needs-info","name":"needs-info","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-09-01T14:07:58Z","updated_at":"2018-07-02T15:51:23Z","closed_at":null,"author_association":"NONE","body":"direnv doesn't add itself to the front of the ```post-command-hook``` meaning other things get to run before direnv has set up the environment.\r\n\r\nOne example is a haskell/stack project directory, where flycheck cannot find the executables because it runs before direnv has updated the ```PATH```.\r\n\r\nCc: @bkchr"},"comment":{"url":"https://api.github.com/repos/wbolster/emacs-direnv/issues/comments/401850019","html_url":"https://github.com/wbolster/emacs-direnv/issues/17#issuecomment-401850019","issue_url":"https://api.github.com/repos/wbolster/emacs-direnv/issues/17","id":401850019,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTg1MDAxOQ==","user":{"login":"adelbertc","id":1332980,"node_id":"MDQ6VXNlcjEzMzI5ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1332980?v=4","gravatar_id":"","url":"https://api.github.com/users/adelbertc","html_url":"https://github.com/adelbertc","followers_url":"https://api.github.com/users/adelbertc/followers","following_url":"https://api.github.com/users/adelbertc/following{/other_user}","gists_url":"https://api.github.com/users/adelbertc/gists{/gist_id}","starred_url":"https://api.github.com/users/adelbertc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adelbertc/subscriptions","organizations_url":"https://api.github.com/users/adelbertc/orgs","repos_url":"https://api.github.com/users/adelbertc/repos","events_url":"https://api.github.com/users/adelbertc/events{/privacy}","received_events_url":"https://api.github.com/users/adelbertc/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T15:51:23Z","updated_at":"2018-07-02T15:51:23Z","author_association":"NONE","body":"Same issue:\r\n\r\n```elisp\r\n(use-package direnv\r\n  :hook ((find-file flycheck-before-syntax-check) . direnv-update-environment)\r\n  :config\r\n  (direnv-mode))\r\n\r\n(use-package flycheck\r\n  :init\r\n  (global-flycheck-mode))\r\n\r\n(use-package flycheck-haskell\r\n  :hook (haskell-mode . flycheck-haskell-setup))\r\n\r\n(use-package haskell)\r\n```"}}
{"actor":{"display_login":"adelbertc"}}