question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sbt-missinglink complains about shapeless in Scala 2.13

See original GitHub issue

WE have a project, in which we are using several packages that depend on shapeless, and for which we are using the version 2.13.2 of Scala. I have analysed the build with the https://github.com/scalacenter/sbt-missinglink plugin, and running the missingLinkCheck command I got the following messages:

[info] 4 conflicts found!
[error] Category: Class being called not found
[error]   In artifact: shapeless_2.13-2.3.3.jar
[error]     In class: shapeless.ScalaVersionSpecifics
[error]       In method:  implicitNotFoundMessage(scala.reflect.macros.whitebox.Context, scala.reflect.api.Types$TypeApi):29
[error]       Call to: scala.tools.nsc.typechecker.Implicits$Message.formatDefSiteMessage(scala.reflect.internal.Types$Type)
[error]       Problem: Class not found: scala.tools.nsc.typechecker.Implicits$Message
[error]       --------
[error]       In method:  implicitNotFoundMessage(scala.reflect.macros.whitebox.Context, scala.reflect.api.Types$TypeApi):28
[error]       Call to: scala.tools.nsc.Global.analyzer()
[error]       Problem: Class not found: scala.tools.nsc.Global
[error]       --------
[error]       In method:  implicitNotFoundMessage(scala.reflect.macros.whitebox.Context, scala.reflect.api.Types$TypeApi):28
[error]       Call to: scala.tools.nsc.typechecker.Analyzer.ImplicitNotFoundMsg()
[error]       Problem: Class not found: scala.tools.nsc.typechecker.Analyzer
[error]       --------
[error]       In method:  implicitNotFoundMessage(scala.reflect.macros.whitebox.Context, scala.reflect.api.Types$TypeApi):28
[error]       Call to: scala.tools.nsc.typechecker.Implicits$ImplicitNotFoundMsg$.unapply(scala.reflect.internal.Symbols$Symbol)
[error]       Problem: Class not found: scala.tools.nsc.typechecker.Implicits$ImplicitNotFoundMsg$
[error]       --------

Has anyone seen a similar errors?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jendakolcommented, Feb 21, 2021

It has just happened to me 😞 SBT 1.4.7, Scala 2.13.4, missinglink 0.3.1, shapeless 2.3.3. Solved by excluding the Shapeless from Missinglink… 😐

0reactions
joroKr21commented, Feb 10, 2022

Those classes are called at compile time by macros - maybe the issue is with sbt-missinglink

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does shapeless for Scala 2 has analogue for Scala 3 union ...
Scala 3 has very convenient Union types. I'm looking for something closer in shapeless for Scala 2 that would allow similar behavior.
Read more >
shapeless - Scaladex
shapeless is a type class and dependent type based generic programming library for ... The main line of development for shapeless 2.3.3 is...
Read more >
Generic Programming And Shapeless With Miles Sabin
When Miles Sabin applied to speak at a conference on generic programming, he bluffed a little bit. He would present on porting Simon...
Read more >
Getting started with Shapeless
What's shapeless, and why should I care ? Taken from shapeless' README: Shapeless is a type class and dependent type based generic programming...
Read more >
Coproducts - Shapeless - Scala Exercises
Coproducts and discriminated unions. shapeless has a Coproduct type, a generalization of Scala's Either to an arbitrary number of choices.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found