question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Marcros not working (did add the compiler plugin)

See original GitHub issue

I 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:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
rparreecommented, Jun 11, 2018

i think so as well. have filed an issue there.

Thanks your framework rocks.

0reactions
Atrycommented, Jun 11, 2018

Interesting, I suspect there is an underlying bug in https://github.com/scalamacros/paradise

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found