Marcros not working (did add the compiler plugin)
See original GitHub issueI have a working project to test drive some of the things i want to do in a larger application. Within this larger application i am not able to get macros to work. This is my project definition
lazy val frontApp = (project in file("clients/front-app")).
enablePlugins(ScalaJSPlugin).
settings(
scalaVersion := "2.12.6",
libraryDependencies ++= Seq(`scalajs-dom`.value, `binding.scala`.value, `binding.scala-future`.value),
skip in packageJSDependencies := false,
relativeSourceMaps := true,
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
)
However it keeps coming back with the error that scala.xml.Elem
is not equired: com.thoughtworks.binding.Binding[org.scalajs.dom.Node]
I am using bare minimum test code:
@JSExportTopLevel("Suggestions")
object FrontApp {
@JSExport
def main(): Unit = {
dom.render(document.body, d)
}
@dom
def d: Binding[Node] = {
<div>hello</div>
}
}
This code works in a separate project, but not inside my larger multi-project
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
Enabling the macro-paradise Scala compiler plugin in Maven ...
jar library as a dependency in the pom, but what do I need to turn on macro-paradise? I am using scala-2.10 and scala-maven-plugin-3.1.5....
Read more >kentcdodds/babel-plugin-macros: Allows you to build ... - GitHub
Allows you to build simple compile-time libraries - GitHub - kentcdodds/babel-plugin-macros: Allows you to build simple compile-time libraries.
Read more >Macro Paradise - Scala Documentation
Macro paradise is a plugin for several versions of Scala compilers. It is designed to reliably work with production releases of scalac ,...
Read more >PlugIns Menu - ImageJ - NIH
This submenu contains commands for installing, running and recording macros, as well as any macro commands added by Plugins>Macros>Install. Macros contained in ...
Read more >Zero-config code transformation with babel-plugin-macros
We're seeing more and more compile-time optimizations for libraries and frameworks. ... I have a few problems with Babel plugins though:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
i think so as well. have filed an issue there.
Thanks your framework rocks.
Interesting, I suspect there is an underlying bug in https://github.com/scalamacros/paradise