{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt/issues/2860","repository_url":"https://api.github.com/repos/sbt/sbt","labels_url":"https://api.github.com/repos/sbt/sbt/issues/2860/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt/issues/2860/comments","events_url":"https://api.github.com/repos/sbt/sbt/issues/2860/events","html_url":"https://github.com/sbt/sbt/issues/2860","id":193294230,"number":2860,"title":"`show` and `set` should accept the same syntax","user":{"login":"dragos","id":133742,"avatar_url":"https://avatars.githubusercontent.com/u/133742?v=3","gravatar_id":"","url":"https://api.github.com/users/dragos","html_url":"https://github.com/dragos","followers_url":"https://api.github.com/users/dragos/followers","following_url":"https://api.github.com/users/dragos/following{/other_user}","gists_url":"https://api.github.com/users/dragos/gists{/gist_id}","starred_url":"https://api.github.com/users/dragos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragos/subscriptions","organizations_url":"https://api.github.com/users/dragos/orgs","repos_url":"https://api.github.com/users/dragos/repos","events_url":"https://api.github.com/users/dragos/events{/privacy}","received_events_url":"https://api.github.com/users/dragos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-03T15:38:26Z","updated_at":"2016-12-03T23:47:29Z","closed_at":null,"body":"In the Sbt console, `show` and `set` should accept the same syntax for settings.\r\n\r\n## steps\r\n\r\n```\r\n> show dotty-library/*:scalacOptions \r\n[info] * -feature\r\n[info] * -deprecation\r\n[info] * -encoding\r\n[info] * UTF8\r\n[info] * -language:existentials,higherKinds,implicitConversions\r\n[success] Total time: 2 s, completed Dec 3, 2016 4:34:16 PM\r\n> set dotty-library/*:scalacOptions  := \"-verbose\"\r\n<set>:1: error: unclosed comment\r\ndotty-library/*:scalacOptions  := \"-verbose\"\r\n             ^\r\n[error] Error parsing expression.  Ensure that there are no blank lines within a setting.\r\n> \r\n```\r\n\r\n## expectation\r\n\r\nI'd expect the syntax used to show a setting should work for setting it.\r\n"},"comment":{"url":"https://api.github.com/repos/sbt/sbt/issues/comments/264673643","html_url":"https://github.com/sbt/sbt/issues/2860#issuecomment-264673643","issue_url":"https://api.github.com/repos/sbt/sbt/issues/2860","id":264673643,"user":{"login":"eed3si9n","id":184683,"avatar_url":"https://avatars.githubusercontent.com/u/184683?v=3","gravatar_id":"","url":"https://api.github.com/users/eed3si9n","html_url":"https://github.com/eed3si9n","followers_url":"https://api.github.com/users/eed3si9n/followers","following_url":"https://api.github.com/users/eed3si9n/following{/other_user}","gists_url":"https://api.github.com/users/eed3si9n/gists{/gist_id}","starred_url":"https://api.github.com/users/eed3si9n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eed3si9n/subscriptions","organizations_url":"https://api.github.com/users/eed3si9n/orgs","repos_url":"https://api.github.com/users/eed3si9n/repos","events_url":"https://api.github.com/users/eed3si9n/events{/privacy}","received_events_url":"https://api.github.com/users/eed3si9n/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T23:47:29Z","updated_at":"2016-12-03T23:47:29Z","body":"`show` command has higher affinity with command invocation in the sbt shell than to `set`.\r\nThe shell notation (`test:compile`, `*:scalacOptions` etc.) supports tab completion and input args.\r\nSo changing the behavior of `show` I think should coincide with changing the shell notation altogether.\r\n\r\n`set` has affinity with `build.sbt`.\r\n\r\nOne thing that's potentially possible to provide a third command, like `get` that uses `build.sbt` notation, like `set`. That's something a plugin could potentially provide as an experiment."}}
{"actor":{"display_login":"eed3si9n"}}