typelevel / cats

Lightweight, modular, and extensible library for functional programming.
https://typelevel.org/cats/
Other
5.24k stars 1.19k forks source link

upgrading to Cats 2.8.0 causes scalac exception during compilation of downstream lib #4280

Open kailuowang opened 2 years ago

kailuowang commented 2 years ago

My lib thomas sees a compilation failure with a scalac exception

scala.reflect.internal.Types$NoCommonType: lub/glb of incompatible types: [_] and  <: Product

I am submitting this issue mainly to create a record so that when/if other users seeing the same issue can reference this one.
I have no clue about the nature of the scalac exception or possible causes. There isn't much detail provided by scalac for debugging. The somewhat more detailed scalac debug log here

debug] Initial set of included nodes: 
[debug] Recompiling all sources: number of invalidated sources > 50.0% of all sources
[debug] compilation cycle 1
[info] compiling 25 Scala sources to /Users/kailuowang/projects/thomas/analysis/target/scala-2.12/classes ...
[debug] Getting org.scala-sbt:compiler-bridge_2.12:1.7.0:compile for Scala 2.12.16
[debug] [zinc] Running cached compiler 2a957a3f for Scala compiler version 2.12.16
[debug] [zinc] The Scala compiler is invoked with:
[debug]     -encoding
[debug]     utf8
[debug]     -deprecation
[debug]     -feature
[debug]     -unchecked
[debug]     -language:existentials
[debug]     -language:experimental.macros
[debug]     -language:higherKinds
[debug]     -language:implicitConversions
[debug]     -Xcheckinit
[debug]     -Xlint:adapted-args
[debug]     -Xlint:by-name-right-associative
[debug]     -Xlint:constant
[debug]     -Xlint:delayedinit-select
[debug]     -Xlint:doc-detached
[debug]     -Xlint:inaccessible
[debug]     -Xlint:infer-any
[debug]     -Xlint:missing-interpolator
[debug]     -Xlint:nullary-override
[debug]     -Xlint:nullary-unit
[debug]     -Xlint:option-implicit
[debug]     -Xlint:package-object-classes
[debug]     -Xlint:poly-implicit-overload
[debug]     -Xlint:private-shadow
[debug]     -Xlint:stars-align
[debug]     -Xlint:type-parameter-shadow
[debug]     -Xlint:unsound-match
[debug]     -Yno-adapted-args
[debug]     -Ypartial-unification
[debug]     -Ywarn-dead-code
[debug]     -Ywarn-extra-implicit
[debug]     -Ywarn-nullary-override
[debug]     -Ywarn-nullary-unit
[debug]     -Ywarn-numeric-widen
[debug]     -Ywarn-value-discard
[debug]     -Ywarn-unused:implicits
[debug]     -Ywarn-unused:imports
[debug]     -Ywarn-unused:locals
[debug]     -Ywarn-unused:params
[debug]     -Ywarn-unused:patvars
[debug]     -Ywarn-unused:privates
[debug]     -Xfatal-warnings
[debug]     -Xlint:-package-object-classes
[debug]     
[debug]     -Xplugin:/Users/kailuowang/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/kind-projector_2.12.16/0.13.2/kind-projector_2.12.16-0.13.2.jar
[debug]     -Xplugin:/Users/kailuowang/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scalamacros/paradise_2.12.16/2.1.1/paradise_2.12.16-2.1.1.jar
[debug]     -bootclasspath
[debug]     /Users/kailuowang/.sbt/boot/scala-2.12.16/lib/scala-library.jar
[debug]     -classpath
....  omitting the classpath
[error] ## Exception when compiling 25 sources to /Users/kailuowang/projects/thomas/analysis/target/scala-2.12/classes
[error] scala.reflect.internal.Types$NoCommonType: lub/glb of incompatible types: [_] and  <: Product
Togoperez commented 1 year ago

4C7CDABA-2051-4E0B-8DCE-4740BE3ED7B2

Togoperez commented 1 year ago

93A22090-D8DA-4C79-817C-A4B5DC9DD028

My lib thomas sees a compilation failure with a scalac exception

scala.reflect.internal.Types$NoCommonType: lub/glb of incompatible types: [_] and  <: Product

I am submitting this issue mainly to create a record so that when/if other users seeing the same issue can reference this one. I have no clue about the nature of the scalac exception or possible causes. There isn't much detail provided by scalac for debugging. The somewhat more detailed scalac debug log here

debug] Initial set of included nodes: 
[debug] Recompiling all sources: number of invalidated sources > 50.0% of all sources
[debug] compilation cycle 1
[info] compiling 25 Scala sources to /Users/kailuowang/projects/thomas/analysis/target/scala-2.12/classes ...
[debug] Getting org.scala-sbt:compiler-bridge_2.12:1.7.0:compile for Scala 2.12.16
[debug] [zinc] Running cached compiler 2a957a3f for Scala compiler version 2.12.16
[debug] [zinc] The Scala compiler is invoked with:
[debug]   -encoding
[debug]   utf8
[debug]   -deprecation
[debug]   -feature
[debug]   -unchecked
[debug]   -language:existentials
[debug]   -language:experimental.macros
[debug]   -language:higherKinds
[debug]   -language:implicitConversions
[debug]   -Xcheckinit
[debug]   -Xlint:adapted-args
[debug]   -Xlint:by-name-right-associative
[debug]   -Xlint:constant
[debug]   -Xlint:delayedinit-select
[debug]   -Xlint:doc-detached
[debug]   -Xlint:inaccessible
[debug]   -Xlint:infer-any
[debug]   -Xlint:missing-interpolator
[debug]   -Xlint:nullary-override
[debug]   -Xlint:nullary-unit
[debug]   -Xlint:option-implicit
[debug]   -Xlint:package-object-classes
[debug]   -Xlint:poly-implicit-overload
[debug]   -Xlint:private-shadow
[debug]   -Xlint:stars-align
[debug]   -Xlint:type-parameter-shadow
[debug]   -Xlint:unsound-match
[debug]   -Yno-adapted-args
[debug]   -Ypartial-unification
[debug]   -Ywarn-dead-code
[debug]   -Ywarn-extra-implicit
[debug]   -Ywarn-nullary-override
[debug]   -Ywarn-nullary-unit
[debug]   -Ywarn-numeric-widen
[debug]   -Ywarn-value-discard
[debug]   -Ywarn-unused:implicits
[debug]   -Ywarn-unused:imports
[debug]   -Ywarn-unused:locals
[debug]   -Ywarn-unused:params
[debug]   -Ywarn-unused:patvars
[debug]   -Ywarn-unused:privates
[debug]   -Xfatal-warnings
[debug]   -Xlint:-package-object-classes
[debug]   
[debug]   -Xplugin:/Users/kailuowang/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/typelevel/kind-projector_2.12.16/0.13.2/kind-projector_2.12.16-0.13.2.jar
[debug]   -Xplugin:/Users/kailuowang/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scalamacros/paradise_2.12.16/2.1.1/paradise_2.12.16-2.1.1.jar
[debug]   -bootclasspath
[debug]   /Users/kailuowang/.sbt/boot/scala-2.12.16/lib/scala-library.jar
[debug]   -classpath
....  omitting the classpath
[error] ## Exception when compiling 25 sources to /Users/kailuowang/projects/thomas/analysis/target/scala-2.12/classes
[error] scala.reflect.internal.Types$NoCommonType: lub/glb of incompatible types: [_] and  <: Product
Togoperez commented 1 year ago

Bug47742-text.txt

4386

Togoperez commented 1 year ago

Hola buenas noches como están

Togoperez commented 1 year ago

Cómo estás amor ya saliste de la oficina y hoy estoy aquí en la casa de mi madre

Togoperez commented 1 year ago

55029CEC-F432-40F1-8E77-05A5EE5034E6