{"action":"created","issue":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/561","labels_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/561/labels{/name}","comments_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/561/comments","events_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/561/events","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/561","id":102505719,"number":561,"title":"Emacs front-end for ghc-mod-5.3.0.0 does not highlight errors correctly","user":{"login":"konn","id":21860,"avatar_url":"https://avatars.githubusercontent.com/u/21860?v=3","gravatar_id":"","url":"https://api.github.com/users/konn","html_url":"https://github.com/konn","followers_url":"https://api.github.com/users/konn/followers","following_url":"https://api.github.com/users/konn/following{/other_user}","gists_url":"https://api.github.com/users/konn/gists{/gist_id}","starred_url":"https://api.github.com/users/konn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konn/subscriptions","organizations_url":"https://api.github.com/users/konn/orgs","repos_url":"https://api.github.com/users/konn/repos","events_url":"https://api.github.com/users/konn/events{/privacy}","received_events_url":"https://api.github.com/users/konn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kazu-yamamoto","id":165387,"avatar_url":"https://avatars.githubusercontent.com/u/165387?v=3","gravatar_id":"","url":"https://api.github.com/users/kazu-yamamoto","html_url":"https://github.com/kazu-yamamoto","followers_url":"https://api.github.com/users/kazu-yamamoto/followers","following_url":"https://api.github.com/users/kazu-yamamoto/following{/other_user}","gists_url":"https://api.github.com/users/kazu-yamamoto/gists{/gist_id}","starred_url":"https://api.github.com/users/kazu-yamamoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazu-yamamoto/subscriptions","organizations_url":"https://api.github.com/users/kazu-yamamoto/orgs","repos_url":"https://api.github.com/users/kazu-yamamoto/repos","events_url":"https://api.github.com/users/kazu-yamamoto/events{/privacy}","received_events_url":"https://api.github.com/users/kazu-yamamoto/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2015-08-22T05:40:45Z","updated_at":"2015-08-28T07:44:16Z","closed_at":null,"body":"Emacs front-end for ghc-mod-5.3.0.0 does not highlight warnings/errors correctly in my environment.\r\nFor example, in the following, LINE 1 is highlighted as error instead of LINE 4:\r\n\r\n```haskell\r\nmodule Main where\r\n\r\nmain :: IO ()\r\nmain = undefine\r\n```\r\n\r\nHere's my environment:\r\n\r\n* ghc-mod-5.3.0.0 package (installed with`cabal install ghc-mod`)\r\n* ghc.el 5.3.0.0 (installed from melpa-stable with package-install)\r\n* GNU Emacs 24.5.1 (installed with`brew install emcs-mac`)\r\n* GHC: 7.10.2 (also occurred with 7.8.3)\r\n* OS X Yosemite 10.10.5 (14F27)\r\n* MacBook Pro (Retina, 13-inch, Late 2013)\r\n* `ghc-debug` result: \r\n  ```elisp\r\n  Path: check if you are using intended programs.\r\n  \t  ghc.el path: /Users/hiromi/.emacs.d/elpa/ghc-5.3.0.0/ghc.el\r\n  \t ghc-mod path: /Users/hiromi/Library/Haskell/bin/ghc-mod\r\n  \t     ghc path: /usr/bin/ghc\r\n  \r\n  Version: all GHC versions must be the same.\r\n  \t  ghc.el version 5.3.0.0\r\n  \t ghc-mod version 5.3.0.0 compiled by GHC 7.10.2\r\n  \tThe Glorious Glasgow Haskell Compilation System, version 7.10.2\r\n  \r\n  Environment variables:\r\n  \tPATH=/Users/hiromi/.local/bin:/Users/hiromi/.rbenv/shims:/usr/texbin:/usr/local/bin:/Users/hiromi/usr/bin:/Users/hiromi/Library/Haskell/bin:/Users/hiromi/prog/idris/.cabal-sandbox/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Library/TeX/texbin\r\n  ```"},"comment":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/comments/135663873","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/561#issuecomment-135663873","issue_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/561","id":135663873,"user":{"login":"dbushenko","id":352763,"avatar_url":"https://avatars.githubusercontent.com/u/352763?v=3","gravatar_id":"","url":"https://api.github.com/users/dbushenko","html_url":"https://github.com/dbushenko","followers_url":"https://api.github.com/users/dbushenko/followers","following_url":"https://api.github.com/users/dbushenko/following{/other_user}","gists_url":"https://api.github.com/users/dbushenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dbushenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbushenko/subscriptions","organizations_url":"https://api.github.com/users/dbushenko/orgs","repos_url":"https://api.github.com/users/dbushenko/repos","events_url":"https://api.github.com/users/dbushenko/events{/privacy}","received_events_url":"https://api.github.com/users/dbushenko/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T07:44:16Z","updated_at":"2015-08-28T07:44:16Z","body":"@kazu-yamamoto Yes, certainly I understand that this is harmful. I just tried to use any other mode without error highlighting so that it will not interfere with ghc-mod highlighting. And that didn't help.\r\n\r\nAlso it does not find errors with ghc-goto-next-error. This is why I think that the bug is not in the highlighting itself, maybe it is a bit deeper.\r\n\r\nWhat I'm interested in, do you see your errors highlighted in emacs with ghc 7.8.x? If yes -- can you show your emacs config?"}}