{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/Pkg.jl/issues/662","repository_url":"https://api.github.com/repos/JuliaLang/Pkg.jl","labels_url":"https://api.github.com/repos/JuliaLang/Pkg.jl/issues/662/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/Pkg.jl/issues/662/comments","events_url":"https://api.github.com/repos/JuliaLang/Pkg.jl/issues/662/events","html_url":"https://github.com/JuliaLang/Pkg.jl/pull/662","id":351005441,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NzEwMzY5","number":662,"title":"[WIP] user error messages in the REPL","user":{"login":"00vareladavid","id":11048133,"node_id":"MDQ6VXNlcjExMDQ4MTMz","avatar_url":"https://avatars0.githubusercontent.com/u/11048133?v=4","gravatar_id":"","url":"https://api.github.com/users/00vareladavid","html_url":"https://github.com/00vareladavid","followers_url":"https://api.github.com/users/00vareladavid/followers","following_url":"https://api.github.com/users/00vareladavid/following{/other_user}","gists_url":"https://api.github.com/users/00vareladavid/gists{/gist_id}","starred_url":"https://api.github.com/users/00vareladavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/00vareladavid/subscriptions","organizations_url":"https://api.github.com/users/00vareladavid/orgs","repos_url":"https://api.github.com/users/00vareladavid/repos","events_url":"https://api.github.com/users/00vareladavid/events{/privacy}","received_events_url":"https://api.github.com/users/00vareladavid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-15T23:42:17Z","updated_at":"2018-08-17T01:17:34Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/JuliaLang/Pkg.jl/pulls/662","html_url":"https://github.com/JuliaLang/Pkg.jl/pull/662","diff_url":"https://github.com/JuliaLang/Pkg.jl/pull/662.diff","patch_url":"https://github.com/JuliaLang/Pkg.jl/pull/662.patch"},"body":"The main idea is to set up a set of points where errors can be caught and given some context; in order to provide better user error messages.\r\n\r\nCurrent Examples:\r\n```\r\n(Pkg) pkg> dev --foo\r\nERROR: Option `--foo` is not a valid option for command `dev`\r\n\r\n(Pkg) pkg> --foo dev\r\nERROR: Option `--foo` is not a valid meta option\r\n\r\n(Pkg) pkg> --major up\r\nERROR: Option `--major` is not a valid meta option\r\nHint: `--major` is a valid option for `up`, try placing it after the command.\r\n\r\n(Pkg) pkg> up --major=5\r\nERROR: Option `--major` does not take an argument, but argument '5' given.\r\n\r\n(Pkg) pkg> dev Example#foo\r\nERROR: `dev` does not accept arguments with revisions.\r\n\r\n(Pkg) pkg> add Example#foo#foo\r\nERROR: While processing arguments: floating revision `#foo` found.\r\n\r\n(Pkg) pkg> add Example#foo@v0.0.1\r\nERROR: While processing arguments: floating version `@0.0.1` found.\r\n\r\n(Pkg) pkg> activate one two\r\nERROR: Given 2 arguments, but `activate` only accepts [0, 1] arguments\r\n\r\n(Pkg) pkg> registry add --foo=2\r\nERROR: Option `--foo` is not a valid option for command `registry add`\r\n\r\n(Pkg) pkg> --preview\r\nERROR: No command given: when parsing `--preview`\r\n\r\n(Pkg) pkg> registry add ---foo\r\nERROR: Encountered malformed option `---foo` when parsing `registry add ---foo`\r\n\r\n(Pkg) pkg> registry add Example;develop \"https://foo.com/bar;add One\r\nERROR: unterminated quote when parsing `develop \"https://foo.com/bar`\r\n\r\n(Pkg) pkg> init\r\nERROR: `init` is not a valid Pkg command (when parsing `init`)\r\n\r\n(Pkg) pkg> registry --foo --bar=2\r\nERROR: `--foo` is not a subcommand of `registry`\r\nHint: Try tab completions after `registry` to see available subcommands.\r\n\r\n(Pkg) pkg> registry\r\nERROR: No subcommand found (when parsing `registry`)\r\nHint: `registry` is a compound command and requires a subcommand.\r\nHint: Try tab completions after `registry` to see available subcommands.\r\n\r\n(Pkg) pkg> regis add --foo\r\nERROR: `regis` is not a valid Pkg command (when parsing `regis add --foo`)\r\n\r\n(Pkg) pkg> up --major --minor\r\nERROR: `--major`, `--minor` are conflicting options for command `up`. Choose only one.\r\n```\r\nThe actual wording of the error messages can be revised, of course."},"comment":{"url":"https://api.github.com/repos/JuliaLang/Pkg.jl/issues/comments/413729334","html_url":"https://github.com/JuliaLang/Pkg.jl/pull/662#issuecomment-413729334","issue_url":"https://api.github.com/repos/JuliaLang/Pkg.jl/issues/662","id":413729334,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzcyOTMzNA==","user":{"login":"00vareladavid","id":11048133,"node_id":"MDQ6VXNlcjExMDQ4MTMz","avatar_url":"https://avatars0.githubusercontent.com/u/11048133?v=4","gravatar_id":"","url":"https://api.github.com/users/00vareladavid","html_url":"https://github.com/00vareladavid","followers_url":"https://api.github.com/users/00vareladavid/followers","following_url":"https://api.github.com/users/00vareladavid/following{/other_user}","gists_url":"https://api.github.com/users/00vareladavid/gists{/gist_id}","starred_url":"https://api.github.com/users/00vareladavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/00vareladavid/subscriptions","organizations_url":"https://api.github.com/users/00vareladavid/orgs","repos_url":"https://api.github.com/users/00vareladavid/repos","events_url":"https://api.github.com/users/00vareladavid/events{/privacy}","received_events_url":"https://api.github.com/users/00vareladavid/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T01:17:34Z","updated_at":"2018-08-17T01:17:34Z","author_association":"CONTRIBUTOR","body":"bors try"}}
{"actor":{"display_login":"00vareladavid"}}