You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For references to User in other source files, while implicit resolution of the generated PEvs and the keys seems to work fine, we still get compiler errors on things like User.props and User.queryDsl (inherited from PType).
We plan on migrating longevity from Scala macros to Scala meta as soon as possible. But the Scala.meta feature set is not quite developed enough for our needs as of yet. We're tracking progress on this front here: #37
So barring someone writing an IntelliJ plugin for the longevity macro annotations, we could alternatively wait and see how the situation looks after we migrate longevity to Scala.meta.
The text was updated successfully, but these errors were encountered:
This ticket supercedes #36, which got bogged down with a lot of discussion of what turned out to be a false lead. I'm recreating the issue here so readers can quickly get a clear picture of the status of this issue.
I've updated the user manual to direct IDEA users to the plugin. Sorry for the delay on this; I was on a long vacation, and just recovering from being sick.
IDEA can't expand the longevity macro annotations, and consequently shows error messages for
primaryKey
andprops
in an example like this:For references to User in other source files, while implicit resolution of the generated
PEv
s and the keys seems to work fine, we still get compiler errors on things likeUser.props
andUser.queryDsl
(inherited fromPType
).It looks like the right way to handle this is to use the "IntelliJ API to build scala macros support": https://blog.jetbrains.com/scala/2015/10/14/intellij-api-to-build-scala-macros-support/
It seems that JetBrains is wisely skipping full-blown support for Scala macros in favor of supporting Scala.meta. See e.g. here:
https://blog.jetbrains.com/scala/2016/11/11/intellij-idea-2016-3-rc-scala-js-scala-meta-and-more/
We plan on migrating longevity from Scala macros to Scala meta as soon as possible. But the Scala.meta feature set is not quite developed enough for our needs as of yet. We're tracking progress on this front here: #37
So barring someone writing an IntelliJ plugin for the longevity macro annotations, we could alternatively wait and see how the situation looks after we migrate longevity to Scala.meta.
The text was updated successfully, but these errors were encountered: