new-style (“inline”) macros require scala.meta

穿精又带淫゛_ 提交于 2020-01-03 10:21:16

问题


I just updated to scala meta 2.0.0-M1 and with the latest scala 2.12.3 and now macros no longer compile. The only change i made was to change the meta version from 1.8.0 to 2.0.0-M1.

ERROR: new-style ("inline") macros require scala.meta

Does anybody know if there is a quick work around for this?

I was hoping to start playing with some of the semantic improvements.


回答1:


scalameta/paradise currently supports scalameta 1.8.0 only, not 2.0.0-M1. The new improvements in the semantic api are not accessible for macro annotations.

One good place to play around with the semantic improvements is to implement custom scalafix rewrites https://scalacenter.github.io/scalafix/#scalacenter/scalafix.g8



来源:https://stackoverflow.com/questions/45470048/new-style-inline-macros-require-scala-meta

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!