{"action":"created","issue":{"url":"https://api.github.com/repos/scalacenter/scalafix/issues/106","repository_url":"https://api.github.com/repos/scalacenter/scalafix","labels_url":"https://api.github.com/repos/scalacenter/scalafix/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/scalacenter/scalafix/issues/106/comments","events_url":"https://api.github.com/repos/scalacenter/scalafix/issues/106/events","html_url":"https://github.com/scalacenter/scalafix/issues/106","id":218112859,"number":106,"title":"Expose cli options to construct offline mirror","user":{"login":"olafurpg","id":1408093,"avatar_url":"https://avatars3.githubusercontent.com/u/1408093?v=3","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-30T08:03:37Z","updated_at":"2017-03-30T18:17:58Z","closed_at":null,"body":"It should be possible to run semantic rewrites from the cli with `--sourcepath` and `--classpath` options. Those options are necessary to construct an offline scala.meta.Mirror, see here: https://github.com/scalameta/scalameta/blob/baf4bc3c3b77d692750c7aec89c6ff66b1f1cf9e/scalahost/src/main/scala/scala/meta/Mirror.scala#L12\r\n"},"comment":{"url":"https://api.github.com/repos/scalacenter/scalafix/issues/comments/290498615","html_url":"https://github.com/scalacenter/scalafix/issues/106#issuecomment-290498615","issue_url":"https://api.github.com/repos/scalacenter/scalafix/issues/106","id":290498615,"user":{"login":"olafurpg","id":1408093,"avatar_url":"https://avatars3.githubusercontent.com/u/1408093?v=3","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"created_at":"2017-03-30T18:17:58Z","updated_at":"2017-03-30T18:17:58Z","body":"Cool! Heads up, we just split scalahost into a library part and compiler plugin part https://github.com/scalameta/scalameta/pull/775 Feel free to bump up the scalameta/scalahost dependency in scalafix to \r\n\r\n```scala\r\nresolvers += Resolver.bintrayIvyRepo(\"scalameta\", \"maven\")\r\nlibraryDependencies += \"org.scalameta\" %% \"scalameta\" % \"1.7.0-485-086c4ac9\"\r\n```\r\n\r\nI'm OK with depending on pre-release versions of scalameta on master branch in the scalafix repo .\r\n\r\nThe offline Mirror constructor we want to call from scalafix-cli is this one here: https://github.com/scalameta/scalameta/blob/086c4ac9ff63da2278d40f80b4e389d70fc3f1a6/scalahost/core/src/main/scala/scala/meta/Mirror.scala#L39 Please let me know if you feel something is missing from the docstring.\r\n"}}
{"actor":{"display_login":"olafurpg"}}