{"action":"created","issue":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/607","labels_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/607/labels{/name}","comments_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/607/comments","events_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/607/events","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/607","id":106768987,"number":607,"title":"\"Cannot satisfy -package-id\" after editing dependency","user":{"login":"k-bx","id":107968,"avatar_url":"https://avatars.githubusercontent.com/u/107968?v=3","gravatar_id":"","url":"https://api.github.com/users/k-bx","html_url":"https://github.com/k-bx","followers_url":"https://api.github.com/users/k-bx/followers","following_url":"https://api.github.com/users/k-bx/following{/other_user}","gists_url":"https://api.github.com/users/k-bx/gists{/gist_id}","starred_url":"https://api.github.com/users/k-bx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-bx/subscriptions","organizations_url":"https://api.github.com/users/k-bx/orgs","repos_url":"https://api.github.com/users/k-bx/repos","events_url":"https://api.github.com/users/k-bx/events{/privacy}","received_events_url":"https://api.github.com/users/k-bx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-16T13:01:18Z","updated_at":"2015-09-17T02:18:20Z","closed_at":null,"body":"Just installed latest ghc-mod to try it out with stack. My project looks like this:\r\n\r\n```\r\nproj/stack.yaml\r\nproj/proj-main\r\nproj/proj-shared\r\nproj/somelib\r\n```\r\n\r\n`stack.yaml` looks something like this:\r\n\r\n```\r\npackages:\r\n- proj/proj-main\r\n- proj/proj-shared\r\n- proj/somelib\r\n```\r\nIn cabal files `proj-main` depends on both `proj-shared` and `somelib`, `proj-shared` depends on `somelib`.\r\n\r\nSo, I was working on `proj-main` sources, then I needed to add something to `somelib`. I edited `somelib`, but now, when I edit that file in `proj-main` and save it, I see an error like this:\r\n\r\n```\r\n<command line>: cannot satisfy -package-id somelib-0.1.0.0-da9b3c4909a3f015e12d703130c3d265\r\n    (use -v for more information)\r\n```\r\n\r\nRunning `sudo killall -9 ghc-mod` didn't help. Running `stack build` form terminal didn't help either (it built fine, showing actual errors in file I'm editing from `proj-main`). Restarting emacs doesn't help.\r\n\r\nWhat's the cause? Please help.\r\n\r\nUPDATE: emacs restart didn't help, sorry for confusion"},"comment":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/comments/140944431","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/607#issuecomment-140944431","issue_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/607","id":140944431,"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-09-17T02:18:20Z","updated_at":"2015-09-17T02:18:20Z","body":"Can you try removing `.stack-work/.stack-work/dist/*/Cabal-*/setu-config.ghc-mod.*` those are our persistent caches that might be getting in the way again and not being invalidated properly. If that doesn't help then this sounds like a problem in stack because ghc-mod just uses whatever package versions it finds in Cabal's setup-config state file."}}