{"action":"created","issue":{"url":"https://api.github.com/repos/mvoidex/hsdev/issues/38","repository_url":"https://api.github.com/repos/mvoidex/hsdev","labels_url":"https://api.github.com/repos/mvoidex/hsdev/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/mvoidex/hsdev/issues/38/comments","events_url":"https://api.github.com/repos/mvoidex/hsdev/issues/38/events","html_url":"https://github.com/mvoidex/hsdev/issues/38","id":193858549,"number":38,"title":"stack not being called correctly","user":{"login":"ruslantalpa","id":5537246,"avatar_url":"https://avatars.githubusercontent.com/u/5537246?v=3","gravatar_id":"","url":"https://api.github.com/users/ruslantalpa","html_url":"https://github.com/ruslantalpa","followers_url":"https://api.github.com/users/ruslantalpa/followers","following_url":"https://api.github.com/users/ruslantalpa/following{/other_user}","gists_url":"https://api.github.com/users/ruslantalpa/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslantalpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslantalpa/subscriptions","organizations_url":"https://api.github.com/users/ruslantalpa/orgs","repos_url":"https://api.github.com/users/ruslantalpa/repos","events_url":"https://api.github.com/users/ruslantalpa/events{/privacy}","received_events_url":"https://api.github.com/users/ruslantalpa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-06T19:12:04Z","updated_at":"2016-12-06T19:30:47Z","closed_at":null,"body":"i think this line is wrong\r\nhttps://github.com/mvoidex/hsdev/blob/master/src/HsDev/Stack.hs#L67\r\nliftIO $ readProcess stackExe (cmd' ++ [\"--compiler\", comp, \"--arch\", stackArch]) \"\"\r\n\r\nstack wants it's parameters before the main command\r\nfor example this works\r\n`/bin/stack --stack-yaml ./stack.yaml --compiler \"ghc-7.10.3\" --arch x86_64 path`\r\n\r\nthis doesn't \r\n`/bin/stack path --stack-yaml ./stack.yaml --compiler \"ghc-7.10.3\" --arch x86_64` and fails with\r\n\r\nand fails with\r\n```\r\nInvalid argument `ghc-7.10.3'\r\nAuxiliary command not found in path `stack-path'\r\nFile does not exist or is not a regular file `path'\r\n```\r\n\r\n\r\nthis manifests itself here\r\n```\r\nhsdev scan --path=./\r\n{\"notify\":[{\"status\":\"working\",\"progress\":null,\"name\":\"/Users/username/projectdir\",\"task\":\"scanning\",\"type\":\"path\"}]}\r\n{\"notify\":[{\"status\":{\"error\":\"io error\",\"msg\":\"readCreateProcess: /bin/stack \\\"path\\\" \\\"--stack-yaml\\\" \\\"/Users/username/projectdir/stack.yaml\\\" \\\"--compiler\\\" \\\"ghc-7.10.3\\\" \\\"--arch\\\" \\\"x86_64\\\" (exit 1): failed\"},\"progress\":null,\"name\":\"/Users/username/projectdir\",\"task\":\"scanning\",\"type\":\"path\"}]}\r\n[]\r\n```\r\n\r\n\r\nAm i missing something and this actually works for someone?\r\nI am trying to get this working with sublime.\r\nDo you want a PR for this (though it's trivial) and once it's merged, any pointers on how to have this new version working/installed (i am spoiled and only used stack when working with haskell)?\r\nThank you.\r\n\r\nPS: also, before this, hsdev did not find stack in /usr/local/bin/stack but after i added a symlink to /usr/bin/stack it worked"},"comment":{"url":"https://api.github.com/repos/mvoidex/hsdev/issues/comments/265248196","html_url":"https://github.com/mvoidex/hsdev/issues/38#issuecomment-265248196","issue_url":"https://api.github.com/repos/mvoidex/hsdev/issues/38","id":265248196,"user":{"login":"mvoidex","id":1637937,"avatar_url":"https://avatars.githubusercontent.com/u/1637937?v=3","gravatar_id":"","url":"https://api.github.com/users/mvoidex","html_url":"https://github.com/mvoidex","followers_url":"https://api.github.com/users/mvoidex/followers","following_url":"https://api.github.com/users/mvoidex/following{/other_user}","gists_url":"https://api.github.com/users/mvoidex/gists{/gist_id}","starred_url":"https://api.github.com/users/mvoidex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvoidex/subscriptions","organizations_url":"https://api.github.com/users/mvoidex/orgs","repos_url":"https://api.github.com/users/mvoidex/repos","events_url":"https://api.github.com/users/mvoidex/events{/privacy}","received_events_url":"https://api.github.com/users/mvoidex/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T19:30:47Z","updated_at":"2016-12-06T19:30:47Z","body":"What's your stack version (`stack --version`)?\r\nMy is `Version 1.2.0 x86_64 hpack-0.14.0` and both commands works."}}
{"actor":{"display_login":"mvoidex"}}