Skip to content

Regression in rescala-lang/rescala #18160

Closed
@WojciechMazur

Description

@WojciechMazur

Regression found in Open Community Build for rescala-lang/rescala and vigoo/prox

Compiler version

Since 3.3.1-RC1-bin-20230216 Nightly
Bisect points to 8d65f19
Project-wise bisect logs: https://github.com/VirtusLab/community-build3/actions/runs/5475858690/jobs/9973280267

Similar issue with the same bisection result where found in other projects:

Minimized code

Not yet minimized, bisected on whole project, multiple compilation errors including typer and implicit resoultion errors
Link to failing project: https://github.com/rescala-lang/REScala

Output (click arrow to expand)

Error:  -- [E172] Type Error: /build/repo/Modules/Reactives/jvm/src/test/scala/tests/rescala/testtools/SynchronizedReevaluation.scala:50:29 
Error:  50 |    (sync, evt.map(sync.reev))
Error:     |                             ^
Error:     |Could not find capability to create reactives. Maybe a missing import?.
Error:     |I found:
Error:     |
Error:     |    rescala.core.CreationTicket.fromScope[EventCompatBundle.this.State](
Error:     |      rescala.core.ScopeSearch.fromTicketImplicit[EventCompatBundle.this.State](
Error:     |        /* missing */summon[rescala.core.StaticTicket[EventCompatBundle.this.State]]
Error:     |        ),
Error:     |    rescala.core.ReInfo)
Error:     |
Error:     |But no implicit values were found that match type rescala.core.StaticTicket[EventCompatBundle.this.State].
Error:  -- [E172] Type Error: /build/repo/Modules/Reactives/shared/src/test/scala/tests/rescala/dynamic/FlattenTest.scala:117:48 
Error:  117 |      val level1Event   = e1.map(_ => "level 1")
Error:      |                                                ^
Error:      |Could not find capability to create reactives. Maybe a missing import?.
Error:      |I found:
Error:      |
Error:      |    rescala.core.CreationTicket.fromScope[EventCompatBundle.this.State](
Error:      |      rescala.core.ScopeSearch.fromTicketImplicit[EventCompatBundle.this.State](
Error:      |        /* missing */summon[rescala.core.StaticTicket[EventCompatBundle.this.State]]
Error:      |        ),
Error:      |    rescala.core.ReInfo)
Error:      |
Error:      |But no implicit values were found that match type rescala.core.StaticTicket[EventCompatBundle.this.State].
Error:  -- [E172] Type Error: /build/repo/Modules/Reactives/shared/src/test/scala/tests/rescala/dynamic/FlattenTest.scala:121:43 
Error:  121 |      val unwrapped = dynamicSignal.flatten
Error:      |                                           ^
Error:      |Ambiguous given instances: both method flattenImplicitForsignal in trait FlattenApi and method flattenImplicitForevent in trait FlattenApi match type engine.Flatten[engine.Signal[Nothing], R] of parameter flatten of method flatten in trait Signal
Error:  -- [E172] Type Error: /build/repo/Modules/Reactives/shared/src/test/scala/tests/rescala/dynamic/FlattenTest.scala:135:44 
Error:  135 |      val level1EventA    = e1.map(_ => "A")
Error:      |                                            ^
Error:      |Could not find capability to create reactives. Maybe a missing import?.
Error:      |I found:
Error:      |
Error:      |    rescala.core.CreationTicket.fromScope[EventCompatBundle.this.State](
Error:      |      rescala.core.ScopeSearch.fromTicketImplicit[EventCompatBundle.this.State](
Error:      |        /* missing */summon[rescala.core.StaticTicket[EventCompatBundle.this.State]]
Error:      |        ),
Error:      |    rescala.core.ReInfo)
Error:      |
Error:      |But no implicit values were found that match type rescala.core.StaticTicket[EventCompatBundle.this.State].
Error:  -- [E172] Type Error: /build/repo/Modules/Reactives/shared/src/test/scala/tests/rescala/dynamic/FlattenTest.scala:136:44 
Error:  136 |      val level1EventB    = e1.map(_ => "B")
Error:      |                                            ^
Error:      |Could not find capability to create reactives. Maybe a missing import?.
Error:      |I found:
Error:      |
Error:      |    rescala.core.CreationTicket.fromScope[EventCompatBundle.this.State](
Error:      |      rescala.core.ScopeSearch.fromTicketImplicit[EventCompatBundle.this.State](
Error:      |        /* missing */summon[rescala.core.StaticTicket[EventCompatBundle.this.State]]
Error:      |        ),
Error:      |    rescala.core.ReInfo)
Error:      |
Error:      |But no implicit values were found that match type rescala.core.StaticTicket[EventCompatBundle.this.State].
Error:  -- [E172] Type Error: /build/repo/Modules/Reactives/shared/src/test/scala/tests/rescala/dynamic/FlattenTest.scala:139:43 
Error:  40 |      val r = s map { event => event map { _ + 1 } }
Error:     |                                           ^^^
Error:     |value + is not a member of T, but could be made available as an extension method.
Error:     |
Error:     |The following import might fix the problem:
Error:     |
Error:     |  import org.scalactic.Prettifier.default
Error:     |
Error:  -- [E172] Type Error: /build/repo/Modules/Reactives/shared/src/test/scala/tests/rescala/static/signals/SignalMacro.scala:40:50 
Error:  40 |      val r = s map { event => event map { _ + 1 } }
Error:     |                                                  ^
Error:     |Could not find capability to create reactives. Maybe a missing import?.
Error:     |I found:
Error:     |
Error:     |    rescala.core.CreationTicket.fromScope[EventCompatBundle.this.State](
Error:     |      rescala.core.ScopeSearch.fromTicketImplicit[EventCompatBundle.this.State](
Error:     |        /* missing */summon[rescala.core.StaticTicket[EventCompatBundle.this.State]]
Error:     |        ),
Error:     |    rescala.core.ReInfo)
Error:     |
Error:     |But no implicit values were found that match type rescala.core.StaticTicket[EventCompatBundle.this.State].
Error:  -- [E007] Type Mismatch Error: /build/repo/Modules/Reactives/shared/src/test/scala/tests/rescala/static/signals/SignalMacro.scala:42:6 
Error:  42 |      r.readValueOnce += { test = _ }
Error:     |      ^^^^^^^^^^^^^^^
Error:     |Found:    Nothing
Error:     |Required: ?{ += : ? }
Error:     |Note that implicit conversions were not tried because the result of an implicit conversion
Error:     |must be more specific than ?{ += : [applied to (
Error:     |  {
Error:     |    _$4 => test = _$4
Error:     |  }
Error:     |) returning <?>] }
Error:     |
Error:     | longer explanation available when compiling with `-explain`
Error:  -- [E007] Type Mismatch Error: /build/repo/Modules/Reactives/shared/src/test/scala/tests/rescala/static/signals/SignalMacro.scala:258:32 
Error:  258 |      val selected = source.map(mapping.get).flatten.latest().flatten(flattenImplicitForsignal)
Error:      |                                ^^^^^^^^^^^
Error:      |  Found:    String => Option[engine.Var[String]]
Error:      |  Required: T => Option[engine.Var[String]]
Error:      |
Error:      |  The following import might make progress towards fixing the problem:
Error:      |
Error:      |    import sourcecode.Text.generate
Error:      |
Error:      |
Error:      | longer explanation available when compiling with `-explain`
Error:  -- [E172] Type Error: /build/repo/Modules/Reactives/shared/src/test/scala/tests/rescala/static/signals/SignalMacro.scala:258:44 
Error:  258 |      val selected = source.map(mapping.get).flatten.latest().flatten(flattenImplicitForsignal)
Error:      |                                            ^
Error:      |Could not find capability to create reactives. Maybe a missing import?.
Error:      |I found:
Error:      |
Error:      |    rescala.core.CreationTicket.fromScope[EventCompatBundle.this.State](
Error:      |      rescala.core.ScopeSearch.fromTicketImplicit[EventCompatBundle.this.State](
Error:      |        /* missing */summon[rescala.core.StaticTicket[EventCompatBundle.this.State]]
Error:      |        ),
Error:      |    rescala.core.ReInfo)
Error:      |
Error:      |But no implicit values were found that match type rescala.core.StaticTicket[EventCompatBundle.this.State].
Error:  -- [E007] Type Mismatch Error: /build/repo/Modules/Reactives/shared/src/test/scala/tests/rescala/testtools/ReevaluationTracker.scala:17:48 
Error:  17 |      case event: Event[_]   => event.map(reev)(turnSource)
Error:     |                                                ^^^^^^^^^^
Error:     |    Found:    (ReevaluationTracker.this.turnSource :
Error:     |      ReevaluationBundle.this.api.CreationTicket)
Error:     |    Required: EventCompatBundle.this.CreationTicket
Error:     |
Error:     |    The following import might make progress towards fixing the problem:
Error:     |
Error:     |      import sourcecode.Text.generate
Error:     |
Error:     |
Error:     | longer explanation available when compiling with `-explain`
Error:  62 errors found

Expectation

Probably should compile

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions