{"action":"created","issue":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/450","labels_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/450/labels{/name}","comments_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/450/comments","events_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/450/events","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/450","id":60731520,"number":450,"title":"Regression: does not detect sandbox if cabal file is missing","user":{"login":"rpglover64","id":233689,"avatar_url":"https://avatars.githubusercontent.com/u/233689?v=3","gravatar_id":"","url":"https://api.github.com/users/rpglover64","html_url":"https://github.com/rpglover64","followers_url":"https://api.github.com/users/rpglover64/followers","following_url":"https://api.github.com/users/rpglover64/following{/other_user}","gists_url":"https://api.github.com/users/rpglover64/gists{/gist_id}","starred_url":"https://api.github.com/users/rpglover64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpglover64/subscriptions","organizations_url":"https://api.github.com/users/rpglover64/orgs","repos_url":"https://api.github.com/users/rpglover64/repos","events_url":"https://api.github.com/users/rpglover64/events{/privacy}","received_events_url":"https://api.github.com/users/rpglover64/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-11T21:19:47Z","updated_at":"2015-04-15T19:58:25Z","closed_at":null,"body":"The same issue as #164 seems to be relevant again.\r\n\r\n```\r\n$ cabal sandbox init\r\n$ cabal install split\r\n$ vim Main.hs # write a trivial file that imports Data.List.Split\r\n$ ghc-mod check -v Main.hs # I replaced the actual path with $PWD to avoid distraction\r\nMain.hs:4:8:Could not find module `Data.List.Split'\r\nLocations searched:\r\n  $PWD/Data/List/Split.hs\r\n  $PWD/Data/List/Split.lhs\r\n  $PWD/x86_64-linux-ghc-7.6.3-packages.conf.d/Data/List/Split.hs\r\n  $PWD/.cabal-sandbox/x86_64-linux-ghc-7.6.3-packages.conf.d/Data/List/Split.lhs\r\n$ ghc-mod --version\r\nghc-mod version 5.2.1.2 compiled by GHC 7.6.3\r\n```"},"comment":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/comments/93549313","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/450#issuecomment-93549313","issue_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/450","id":93549313,"user":{"login":"DanielG","id":199218,"avatar_url":"https://avatars.githubusercontent.com/u/199218?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielG","html_url":"https://github.com/DanielG","followers_url":"https://api.github.com/users/DanielG/followers","following_url":"https://api.github.com/users/DanielG/following{/other_user}","gists_url":"https://api.github.com/users/DanielG/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielG/subscriptions","organizations_url":"https://api.github.com/users/DanielG/orgs","repos_url":"https://api.github.com/users/DanielG/repos","events_url":"https://api.github.com/users/DanielG/events{/privacy}","received_events_url":"https://api.github.com/users/DanielG/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T19:58:25Z","updated_at":"2015-04-15T19:58:25Z","body":"@rpglover64 can you confirm this is fixed in master now?"}}