Skip to content

dotty.tools.xsbt.PositionBridge@3eec221b: could not find Lazy implicit value error when trying to upgrade the scala version to 3.0.0  #477

Closed
@rajcspsg

Description

@rajcspsg

Hi,

I'm sample maven scala project here
When compiling the project with scala-maven-version 4.5.1 I get the below error.

[ERROR] dotty.tools.xsbt.PositionBridge@767bb276: could not find Lazy implicit value of type scodec.Codec[adserver.cluster.serializer.TagRequest].
I found:

shapeless.Lazy.mkLazy[I]

But method mkLazy in object Lazy does not match type shapeless.Lazy[scodec.Codec[adserver.cluster.serializer.TagRequest]].

One of the following imports might make progress towards fixing the problem:

import shapeless.?>.idKeyWitness
import shapeless.
?>.idValueWitness
import shapeless.~?>.witness

I added the below code from the error suggestion above.

import shapeless.~?>.idKeyWitness
import shapeless.~?>.idValueWitness
import shapeless.~?>.witness

After adding that I got below error.

[ERROR] dotty.tools.xsbt.PositionBridge@39640f7b: could not find Lazy implicit value of type scodec.Codec[adserver.cluster.serializer.Event].
I found:

shapeless.?>.witness[Nothing, Nothing, T](shapeless.?>.rel[Nothing, Nothing])

What is the error. How can I fix this for scala 3?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions