Code Monkey home page Code Monkey logo

Comments (8)

Atry avatar Atry commented on June 12, 2024 1

Fixed in Atry/html.scala@d627afe

from binding.scala.

Atry avatar Atry commented on June 12, 2024

Would it work if you delete the return type like adf7ec7

from binding.scala.

djx314 avatar djx314 commented on June 12, 2024

emmm, it seems that it makes bindingTr as a BindingSeq and not a Binding[Node]

sbt:desu-video> 
sbt:desu-video> 
sbt:desu-video> frontendJS/clean
[success] Total time: 0 s, completed 2023-3-9 17:52:13
sbt:desu-video> 
sbt:desu-video> 
sbt:desu-video> prun
[info] scalafmt: Formatting 2 Scala sources (E:\programming\workspace\desu-video\frontend\js)...
[info] scalafmt: Formatting 2 Scala sources (E:\programming\workspace\desu-video\frontend\js)...
[info] compiling 2 Scala sources to E:\programming\workspace\desu-video\frontend\js\target\scala-3.2.2\classes ...
[error] -- [E008] Not Found Error: E:\programming\workspace\desu-video\frontend\js\src\main\scala\AA.scala:67:27 
[error] 67 |        bindingTr(contact).bind
[error]    |        ^^^^^^^^^^^^^^^^^^^^^^^
[error]    |value bind is not a member of com.thoughtworks.binding.Binding.BindingSeq[org.scalajs.dom.Node].
[error]    |An extension method was tried, but could not be fully constructed:
[error]    |
[error]    |    com.thoughtworks.dsl.Dsl.shift[com.thoughtworks.binding.Binding.Bind[Any], Any](
[error]    |      com.thoughtworks.binding.Binding.Bind[Any](DummyImplicit.dummyImplicit).apply(
[error]    |        AA.bindingTr(contact)
[error]    |      )
[error]    |    )
[error] -- Error: E:\programming\workspace\desu-video\frontend\js\src\main\scala\AA.scala:64:4 
[error]  64 |    html"""<table>
[error]     |    ^
[error]     |Require a HTML DOM expression, got interpolation expression com.thoughtworks.binding.Binding.BindingSeq[scala.Any]
[error]     |method watchableBindableSeq in trait LowPriorityBindableSeq2 does not match type com.thoughtworks.binding.bindable.BindableSeq.Lt[Value, org.scalajs.dom.Node]
[error]  65 |      <tbody>
[error]  66 |        ${for (contact <- contacts) yield {
[error]  67 |        bindingTr(contact).bind
[error]  68 |      }}
[error]  69 |      </tbody>
[error]  70 |    </table>"""
[error]     |---------------------------------------------------------------------------
[error]     |Inline stack trace
[error]     |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[error]     |This location contains code that was inlined from Reset.scala:113
[error]      ---------------------------------------------------------------------------
[error] two errors found
[info] scalafmt: Formatting 1 Scala sources (E:\programming\workspace\desu-video\backend\desu-video-common)...
[error] (frontendJS / Compile / compileIncremental) Compilation failed
[error] Total time: 4 s, completed 2023-3-9 17:52:19
sbt:desu-video> 

from binding.scala.

djx314 avatar djx314 commented on June 12, 2024

Code

from binding.scala.

Atry avatar Atry commented on June 12, 2024

How about 21c86d8?

from binding.scala.

djx314 avatar djx314 commented on June 12, 2024

The same error. And change to this, it works, but the HTML seems not right.

图片

It seems that all the is miss and just add some Text Snippet to HTML, so I think the type BindingSeq[Node] means Binding[Seq[TextNode]].

from binding.scala.

djx314 avatar djx314 commented on June 12, 2024

Code

Eager fix the problem in sbt-depts and now can reproduct the problem by run

sbt>frontendJS/compile

from binding.scala.

djx314 avatar djx314 commented on June 12, 2024

The same error. And change to this, it works, but the HTML seems not right.

图片

It seems that all the is miss and just add some Text Snippet to HTML, so I think the type BindingSeq[Node] means Binding[Seq[TextNode]].

Error typo.

It seems that all the is miss and just add some Text Snippet to HTML, so I think the type BindingSeq[Node] means Binding[Seq[TextNode]].

It seems that all the HTML Tags is miss and just add some Text Snippet to HTML, so I think the type BindingSeq[Node] means Binding[Seq[TextNode]].

from binding.scala.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.