freestyle
freestyle copied to clipboard
IntelliJ IDEA plugin
IDEA does not support macros. IDEA devs expect lib authors to create plugins such as the one for simulacrum https://blog.jetbrains.com/scala/2015/10/14/intellij-api-to-build-scala-macros-support/
This is already implemented in https://github.com/47deg/intellij-scala/commit/d774cb34530db9ee235dd5c53dd16575db4689a8 but is currently bloqued by what we find in #93
Also it seems like the current IDEA plugin API has bugs that affect what we are trying to do with Freestyle https://gitter.im/JetBrains/intellij-scala?at=58c68137dd08b4b859c37cb9
We are migrating all macros to scala meta and now we are running into the issue that IDEA scalameta support is broken in cross projects that target scala.js and scala.jvm. I submitted a PR to fix this and tested locally with freestyle scalameta's branch. PR available here https://github.com/JetBrains/intellij-scala/pull/380
@raulraja was just wondering the status of this? Was working in IntelliJ and can't even see the Client generated by the macro at all so this would be extremely.
@BusyByte After this issue https://github.com/frees-io/freestyle/issues/539, we intend to migrate some of the macro annotations, back from scalameta macros (which are deprecated) to the old Scala macro paradise, which is to be an integral part of Scala 2.13. We will then re-examine the support in IntelliJ for the freestyle macros.
For your immediate problems, I am afraid we won't be fixing support in IntelliJ for current scalameta-based macro annotations.