{"action":"created","issue":{"url":"https://api.github.com/repos/rikvdkleij/intellij-haskell/issues/16","labels_url":"https://api.github.com/repos/rikvdkleij/intellij-haskell/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/rikvdkleij/intellij-haskell/issues/16/comments","events_url":"https://api.github.com/repos/rikvdkleij/intellij-haskell/issues/16/events","html_url":"https://github.com/rikvdkleij/intellij-haskell/issues/16","id":66360188,"number":16,"title":"\"Go to declaration\" either goes to a wrong place, or searches for usages instead","user":{"login":"KarolS","id":1790750,"avatar_url":"https://avatars.githubusercontent.com/u/1790750?v=3","gravatar_id":"","url":"https://api.github.com/users/KarolS","html_url":"https://github.com/KarolS","followers_url":"https://api.github.com/users/KarolS/followers","following_url":"https://api.github.com/users/KarolS/following{/other_user}","gists_url":"https://api.github.com/users/KarolS/gists{/gist_id}","starred_url":"https://api.github.com/users/KarolS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KarolS/subscriptions","organizations_url":"https://api.github.com/users/KarolS/orgs","repos_url":"https://api.github.com/users/KarolS/repos","events_url":"https://api.github.com/users/KarolS/events{/privacy}","received_events_url":"https://api.github.com/users/KarolS/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-04T20:02:55Z","updated_at":"2015-04-21T19:30:58Z","closed_at":"2015-04-21T19:30:58Z","body":"Note: Both Ctrl-B and Ctrl-LClick are bound to \"Go to declaration\" action, and nothing else. Both those shortcuts result in the same behaviour, as does picking \"Go to declaration\" from the popup menu.\r\n\r\nSource file and project in question: https://github.com/KarolS/PlaylistSubscriber/blob/master/src/PlaylistSubscriber/PersistentSet.hs\r\n\r\n\t\treadPersistentSet :: PersistentSet a -> IO [a]\r\n\t\treadPersistentSet s = do\r\n\t\t\tlet p = persistentSetPath s\r\n\t\t\texists <- doesFileExist p\r\n\t\t\tif exists\r\n\t\t\tthen do\r\n\t\t\t\tcontents <- readFile p\r\n\t\t\t\treturn $ map (persistentSetDeserialization s) $ filter (/=\"\") $ lines contents\r\n\t\t\telse return []\r\n\r\nIn the above function, if I ctrl-click on `IO`, Intellij starts searching for usages of `IO` instead. The same with `lines`, `readFile`, and many others. A small popup \"Show usages\" shows when I'm holding down Ctrl and hovering mouse over the identifier.\r\n\r\nIf I ctrl-click on `persistentSetPath`, `persistentSetDeserialization`, `contents`, `PersistentSet`, then it behaves correctly and jumps to the declaration.\r\n\r\nIf I ctrl-click on the first `return`, it jumps to the second `return`.\r\n\r\nIf I ctrl-click on any usage of  `PersistentSet` in `Main.hs`, then it works correctly, but all cross-project jumps don't.\r\n\r\n----\r\n\r\nUbuntu 14.04, Intellij-Haskell 0.81, Intellij IDEA 14.1.1, Cabal 1.20.0.2, GHC 7.6.3, ghc-mod 4.1.3\r\n"},"comment":{"url":"https://api.github.com/repos/rikvdkleij/intellij-haskell/issues/comments/94913235","html_url":"https://github.com/rikvdkleij/intellij-haskell/issues/16#issuecomment-94913235","issue_url":"https://api.github.com/repos/rikvdkleij/intellij-haskell/issues/16","id":94913235,"user":{"login":"rikvdkleij","id":509315,"avatar_url":"https://avatars.githubusercontent.com/u/509315?v=3","gravatar_id":"","url":"https://api.github.com/users/rikvdkleij","html_url":"https://github.com/rikvdkleij","followers_url":"https://api.github.com/users/rikvdkleij/followers","following_url":"https://api.github.com/users/rikvdkleij/following{/other_user}","gists_url":"https://api.github.com/users/rikvdkleij/gists{/gist_id}","starred_url":"https://api.github.com/users/rikvdkleij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rikvdkleij/subscriptions","organizations_url":"https://api.github.com/users/rikvdkleij/orgs","repos_url":"https://api.github.com/users/rikvdkleij/repos","events_url":"https://api.github.com/users/rikvdkleij/events{/privacy}","received_events_url":"https://api.github.com/users/rikvdkleij/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T19:30:58Z","updated_at":"2015-04-21T19:30:58Z","body":"@KarolS \r\nIt is fixed in 14.1.2 EAP, see:\r\nhttps://confluence.jetbrains.com/display/IDEADEV/IDEA+14.1+EAP"}}