Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[![CDATA xml tags error. "overloaded method value domBindingSeq with alternatives:" #58

Closed
mcdoyaji opened this issue Jul 28, 2017 · 7 comments

Comments

@mcdoyaji
Copy link

mcdoyaji commented Jul 28, 2017

scalafiddle ok.

https://scalafiddle.io/sf/Sc0RmDj/3

but. desktop spit out errors.

code

  @dom def inlineStyle = {
    <section>
      <style>
        <![CDATA[
         .highlight {background-color:gold}
         ]]>
      </style>
      <p> Binding.scala. easy to use.
      </p>
    </section>
  }

sbt environment.

scala 2.12
scalajs 0.6.15 
libraryDependencies += "com.thoughtworks.binding" %%% "binding" % "latest.release"
libraryDependencies += "com.thoughtworks.binding" %%% "dom" % "latest.release"
libraryDependencies += "com.thoughtworks.binding" %%% "futurebinding" % "latest.release"
libraryDependencies += "com.thoughtworks.binding" %%% "jspromisebinding" % "latest.release"

error message

[error] /Users/baram204/IdeaProjects/learningPixi/src/main/scala/binding/L07_XHTMLliterals.scala:39: overloaded method value domBindingSeq with alternatives:
[error]   (text: String)com.thoughtworks.binding.Binding.Constants[org.scalajs.dom.raw.Text] <and>
[error]   (node: org.scalajs.dom.raw.Node)com.thoughtworks.binding.Binding.Constants[org.scalajs.dom.raw.Node] <and>
[error]   (seq: Seq[org.scalajs.dom.raw.Node])com.thoughtworks.binding.Binding.Constants[org.scalajs.dom.raw.Node] <and>
[error]   (bindingSeq: com.thoughtworks.binding.Binding.BindingSeq[org.scalajs.dom.raw.Node])com.thoughtworks.binding.Binding.BindingSeq[org.scalajs.dom.raw.Node]
[error]  cannot be applied to (scala.xml.PCData)
[error]         <![CDATA[
[error]                  ^
@Atry
Copy link
Collaborator

Atry commented Jul 28, 2017

Looks like a duplicate of #30

@Atry Atry marked this as a duplicate of #30 Jul 28, 2017
@Atry
Copy link
Collaborator

Atry commented Jul 28, 2017

Did you add the Scalac flag -Xxml:-coalescing?
The flag is not supported at the moment.

@mcdoyaji
Copy link
Author

I didn't.

so I put flag to build.sbt.

scalacOptions += "-Xxml:-coalescing"

and still got same error.

@Atry
Copy link
Collaborator

Atry commented Jul 28, 2017

I mean -Xxml:-coalescing will cause the error. You may want to remove it.

@mcdoyaji
Copy link
Author

Ok. I got it.

@0x7fh
Copy link

0x7fh commented Aug 26, 2017

Hint: I had the same problem under Scala 2.12.3 and Scala-JS 0.6.19. I had to enable coalescing explicitly with -Xxml:coalescing to get rid of the error.

@Atry
Copy link
Collaborator

Atry commented Mar 28, 2018

@0x7fh Maybe there is another sbt plug-in who introduced the -Xxml:-coalescing flag.

@Atry Atry closed this as completed Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants