{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/3636","repository_url":"https://api.github.com/repos/haskell/cabal","labels_url":"https://api.github.com/repos/haskell/cabal/issues/3636/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/3636/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/3636/events","html_url":"https://github.com/haskell/cabal/issues/3636","id":168120452,"number":3636,"title":"new-build produces bad error message on missing cabal.project","user":{"login":"BardurArantsson","id":459138,"avatar_url":"https://avatars.githubusercontent.com/u/459138?v=3","gravatar_id":"","url":"https://api.github.com/users/BardurArantsson","html_url":"https://github.com/BardurArantsson","followers_url":"https://api.github.com/users/BardurArantsson/followers","following_url":"https://api.github.com/users/BardurArantsson/following{/other_user}","gists_url":"https://api.github.com/users/BardurArantsson/gists{/gist_id}","starred_url":"https://api.github.com/users/BardurArantsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BardurArantsson/subscriptions","organizations_url":"https://api.github.com/users/BardurArantsson/orgs","repos_url":"https://api.github.com/users/BardurArantsson/repos","events_url":"https://api.github.com/users/BardurArantsson/events{/privacy}","received_events_url":"https://api.github.com/users/BardurArantsson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell/cabal/labels/attention:%20pr-welcome","name":"attention: pr-welcome","color":"0e8a16"},{"url":"https://api.github.com/repos/haskell/cabal/labels/component:%20cabal-install","name":"component: cabal-install","color":"fef2c0"},{"url":"https://api.github.com/repos/haskell/cabal/labels/component:%20nix-local-build","name":"component: nix-local-build","color":"fef2c0"},{"url":"https://api.github.com/repos/haskell/cabal/labels/meta:%20easy","name":"meta: easy","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-28T15:10:30Z","updated_at":"2016-08-12T21:12:29Z","closed_at":null,"body":"If the cabal.project file is missing `cabal new-build` produces the rather opaque error message\r\n\r\n```\r\nBadPackageLocations [BadLocGlobEmptyMatch \"./*.cabal\"]\r\n```\r\n\r\nIt should probably print something more informative. :)"},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/239561009","html_url":"https://github.com/haskell/cabal/issues/3636#issuecomment-239561009","issue_url":"https://api.github.com/repos/haskell/cabal/issues/3636","id":239561009,"user":{"login":"BardurArantsson","id":459138,"avatar_url":"https://avatars.githubusercontent.com/u/459138?v=3","gravatar_id":"","url":"https://api.github.com/users/BardurArantsson","html_url":"https://github.com/BardurArantsson","followers_url":"https://api.github.com/users/BardurArantsson/followers","following_url":"https://api.github.com/users/BardurArantsson/following{/other_user}","gists_url":"https://api.github.com/users/BardurArantsson/gists{/gist_id}","starred_url":"https://api.github.com/users/BardurArantsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BardurArantsson/subscriptions","organizations_url":"https://api.github.com/users/BardurArantsson/orgs","repos_url":"https://api.github.com/users/BardurArantsson/repos","events_url":"https://api.github.com/users/BardurArantsson/events{/privacy}","received_events_url":"https://api.github.com/users/BardurArantsson/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T21:12:29Z","updated_at":"2016-08-12T21:12:29Z","body":"Sigh... I suppose the labels mean that I really should do this...? I'm just (semi-)joking, I'd be happy to, given the hint.\r\n\r\nAside: Why are we relying on overriding defaults in this manner? Shouldn't we just have a (huge) sum type for every single error that Cabal/cabal-install can show and then be *forced* to implement a human-readable error message? (I'm sure I'm doing a \"couldn't we just...\" type thing here, but...)\r\n\r\n(Assigning to self in the hope of finally starting to contribute to Cabal again.)"}}
{"actor":{"display_login":"BardurArantsson"}}