frees-io / freestyle

A cohesive & pragmatic framework of FP centric Scala libraries
http://frees.io/
Apache License 2.0
614 stars 50 forks source link

IntelliJ IDEA plugin #58

Open raulraja opened 7 years ago

raulraja commented 7 years ago

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/

raulraja commented 7 years ago

This is already implemented in https://github.com/47deg/intellij-scala/commit/d774cb34530db9ee235dd5c53dd16575db4689a8 but is currently bloqued by what we find in #93

raulraja commented 7 years ago

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

raulraja commented 7 years ago

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

BusyByte commented 6 years ago

@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.

diesalbla commented 6 years ago

@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.