{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt/issues/4193","repository_url":"https://api.github.com/repos/sbt/sbt","labels_url":"https://api.github.com/repos/sbt/sbt/issues/4193/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt/issues/4193/comments","events_url":"https://api.github.com/repos/sbt/sbt/issues/4193/events","html_url":"https://github.com/sbt/sbt/issues/4193","id":331747766,"node_id":"MDU6SXNzdWUzMzE3NDc3NjY=","number":4193,"title":"Some SBT_OPTS options not being recognized","user":{"login":"MichaelJAllen","id":2753426,"node_id":"MDQ6VXNlcjI3NTM0MjY=","avatar_url":"https://avatars3.githubusercontent.com/u/2753426?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaelJAllen","html_url":"https://github.com/MichaelJAllen","followers_url":"https://api.github.com/users/MichaelJAllen/followers","following_url":"https://api.github.com/users/MichaelJAllen/following{/other_user}","gists_url":"https://api.github.com/users/MichaelJAllen/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelJAllen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelJAllen/subscriptions","organizations_url":"https://api.github.com/users/MichaelJAllen/orgs","repos_url":"https://api.github.com/users/MichaelJAllen/repos","events_url":"https://api.github.com/users/MichaelJAllen/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelJAllen/received_events","type":"User","site_admin":false},"labels":[{"id":118566,"node_id":"MDU6TGFiZWwxMTg1NjY=","url":"https://api.github.com/repos/sbt/sbt/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":831417504,"node_id":"MDU6TGFiZWw4MzE0MTc1MDQ=","url":"https://api.github.com/repos/sbt/sbt/labels/area/launcher_script","name":"area/launcher_script","color":"baf3ff","default":false},{"id":729081937,"node_id":"MDU6TGFiZWw3MjkwODE5Mzc=","url":"https://api.github.com/repos/sbt/sbt/labels/good%20first%20issue","name":"good first issue","color":"abd1e8","default":true},{"id":120507452,"node_id":"MDU6TGFiZWwxMjA1MDc0NTI=","url":"https://api.github.com/repos/sbt/sbt/labels/help%20wanted","name":"help wanted","color":"eb6420","default":true},{"id":1061385681,"node_id":"MDU6TGFiZWwxMDYxMzg1Njgx","url":"https://api.github.com/repos/sbt/sbt/labels/x/waffle","name":"x/waffle","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-12T20:48:00Z","updated_at":"2018-11-02T10:47:31Z","closed_at":null,"author_association":"NONE","body":"- [X] I've read the [CONTRIBUTING](https://github.com/sbt/sbt/blob/1.x/CONTRIBUTING.md) guidelines\r\n\r\n## steps\r\nI'm running _SBT_ 1.1.6 on Linux Mint 18.3.\r\n\r\nTo reproduce, try this in a bash terminal:\r\n```\r\nexport SBT_OPTS=\"-no-colors -batch\"\r\nsbt test\r\n```\r\n\r\n## problem\r\nOutput of prior commands is as follows:\r\n```\r\nUnrecognized option: -no-colors\r\nError: Could not create the Java Virtual Machine.\r\nError: A fatal exception has occurred. Program will exit.\r\n```\r\n\r\n## expectation\r\n\r\n_SBT_ should have run successfully in non-interactive mode without any errors.\r\n\r\n## notes\r\n\r\nsbt version: *1.1.6*\r\n\r\nOddly, this works:\r\n```\r\nexport SBT_OPTS=\"-Dsbt.log.noformat=true\"\r\nsbt test\r\n```\r\n\r\nIt looks as though `SBT_OPTS` is not being parsed correctly: _SBT_ options are ignored, but JVM-style options are accepted."},"comment":{"url":"https://api.github.com/repos/sbt/sbt/issues/comments/435340435","html_url":"https://github.com/sbt/sbt/issues/4193#issuecomment-435340435","issue_url":"https://api.github.com/repos/sbt/sbt/issues/4193","id":435340435,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTM0MDQzNQ==","user":{"login":"michelou","id":1260870,"node_id":"MDQ6VXNlcjEyNjA4NzA=","avatar_url":"https://avatars3.githubusercontent.com/u/1260870?v=4","gravatar_id":"","url":"https://api.github.com/users/michelou","html_url":"https://github.com/michelou","followers_url":"https://api.github.com/users/michelou/followers","following_url":"https://api.github.com/users/michelou/following{/other_user}","gists_url":"https://api.github.com/users/michelou/gists{/gist_id}","starred_url":"https://api.github.com/users/michelou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelou/subscriptions","organizations_url":"https://api.github.com/users/michelou/orgs","repos_url":"https://api.github.com/users/michelou/repos","events_url":"https://api.github.com/users/michelou/events{/privacy}","received_events_url":"https://api.github.com/users/michelou/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T10:47:31Z","updated_at":"2018-11-02T10:47:31Z","author_association":"NONE","body":"Similar issue on Windows with sbt 1.2.6 (NB. `bin\\sb.bat` is not in sync with `bin\\sbt`)\r\n```\r\n> c:\\opt\\sbt-1.2.6\\bin\\sbt.bat -no-colors\r\n[info] Loading settings for project dotty-build-build from build.sbt ...\r\n[info] Loading project definition from C:\\dotty\\project\\project\r\n[info] Loading settings for project dotty-build from build.sbt,plugins.sbt ...\r\n[info] Loading project definition from C:\\dotty\\project\r\n[info] Loading settings for project dotty from build.sbt ...\r\n[info] Resolving key references (13262 settings) ...\r\n[info] Set current project to dotty (in build file:/C:/dotty/)\r\n[error] Expected symbol\r\n[error] Not a valid command: -\r\n[error] Expected end of input.\r\n[error] Expected '--'\r\n[error] Expected 'debug'\r\n[error] Expected 'info'\r\n[error] Expected 'warn'\r\n[error] Expected 'error'\r\n[error] Expected 'addPluginSbtFile'\r\n[error] -no-colors\r\n[error]  ^\r\n```\r\n**Quick fix**: add the following 2 lines in `bin\\sbt.bat`:\r\n```\r\n74: ) else if /I \"%~1\" == \"-no-colors\" (\r\n75:   set _JAVA_OPTS=!_JAVA_OPTS! -Dsbt.log.noformat=true\r\n```\r\n"}}
{"actor":{"display_login":"michelou"}}