{"action":"opened","issue":{"url":"https://api.github.com/repos/olafurpg/scalafmt/issues/392","repository_url":"https://api.github.com/repos/olafurpg/scalafmt","labels_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/392/comments","events_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/392/events","html_url":"https://github.com/olafurpg/scalafmt/issues/392","id":169772751,"number":392,"title":"Update to scalameta 1.0.0","user":{"login":"NicolasRouquette","id":2359166,"avatar_url":"https://avatars.githubusercontent.com/u/2359166?v=3","gravatar_id":"","url":"https://api.github.com/users/NicolasRouquette","html_url":"https://github.com/NicolasRouquette","followers_url":"https://api.github.com/users/NicolasRouquette/followers","following_url":"https://api.github.com/users/NicolasRouquette/following{/other_user}","gists_url":"https://api.github.com/users/NicolasRouquette/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolasRouquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolasRouquette/subscriptions","organizations_url":"https://api.github.com/users/NicolasRouquette/orgs","repos_url":"https://api.github.com/users/NicolasRouquette/repos","events_url":"https://api.github.com/users/NicolasRouquette/events{/privacy}","received_events_url":"https://api.github.com/users/NicolasRouquette/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-07T00:12:38Z","updated_at":"2016-08-07T00:12:38Z","closed_at":null,"body":"I have a code generator that uses scalameta 1.0.0; I would like to format the generated source with scalafmt like this:\r\n\r\nOriginal:\r\n```scala\r\nimport akka.util.ByteString\r\n\r\nobject SourceCodeFormatter {\r\n\r\n  def format\r\n  (source: scala.meta.Source)\r\n  : ByteString\r\n  = ByteString(org.scalafmt.Scalafmt.format(source.syntax).get)\r\n```\r\n\r\nUsing:\r\n* 0.2.11\r\n* --style default\r\n\r\nAt runtime, this fails with an exception:\r\n```\r\njava.lang.NoSuchMethodError: scala.meta.inputs.Input$.stringToInput()Lorg/scalameta/convert/Convert;\r\n\tat org.scalafmt.Scalafmt$.format(ScalaFmt.scala:30)\r\n\tat org.omg.oti.uml.md18.meta.SourceCodeFormatter$.format(SourceCodeFormatter.scala:49)\r\n```\r\n\r\nThis seems to be due to a change of API in scalameta between the version used in scalafmt 0.2.11 (i.e. 0.1.0-RC1) and 1.0.0."}}
{"actor":{"display_login":"NicolasRouquette"}}