Comments (7)
Unfortunately we have to aim at 2.10.2 and above ... we depend on fixes to implicit macros which only arrived in 2.10.2. I'm open to suggestions, but I think the status quo is the best we can do.
from shapeless.
The qualifier in the artefact is not really a means of specifying some minimum supported version though. It is there to specify that the artefact was compiled against that series of Scala – and in 2.10 they warrant some kind of backwards binary compatibility between the whole series. Having it as a bespoke and de-facto dependency management scheme unfortunately complicates and breaks other things.
In our particular case, specs2 2.3.3 brings in shapeless_2.10.2 2.0 but we have a project level dependency on shapeless_2.10 1.2.4 which leads to the above error.
from shapeless.
I understand the problem, but I don't know how to solve it. Do you have a suggestion?
from shapeless.
I'd just make it 2.10, you can't always enforce all the things. I'd say
that 2.10.1 users will find out pretty quickly that it doesn't work, and
I'd wager there won't be that many anyway. Upgrading to latest scala
version is pretty painless and usually worthwhile.
On 14 November 2013 09:04, Miles Sabin [email protected] wrote:
I understand the problem, but I don't know how to solve it. Do you have a
suggestion?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/63#issuecomment-28438606
.
from shapeless.
Doing the wrong thing without warning at compile or runtime is a pretty serious thing not to enforce IMO. I've just published a build explicitly for 2.10.3 ... does that and the changes that @retronym has just made to the Specs 2 build (retronym/specs2@ec0ef3b#diff-798d1bfac5c6765ba2f0c34e37c073edR122) go some way towards mitigating this for you?
from shapeless.
In our particular case, specs2 2.3.3 brings in shapeless_2.10.2 2.0 but we have a project level dependency on shapeless_2.10 1.2.4 which leads to the above error.
How is that (two different versions of shapeless together) going to work?
from shapeless.
Closing this now. Nobody managed to persuade me that I wasn't doing the right thing here, and it's becoming increasingly irrelevant as people move to Scala 2.11.x.
from shapeless.
Related Issues (20)
- implicit summoning of records.Keys for singleton subtype of HList fail sporadically HOT 3
- Witness path-dependent type `T` lose refinement HOT 3
- Witness singleton type automatically erased by compile-time type inference HOT 3
- migrate to GitHub Actions HOT 1
- Implicit is not returned from the cache but rather from current scope HOT 3
- Tagged types based on anything other than AnyVals produces exception in Spark HOT 12
- Migrate to GitHub actions HOT 1
- `Default.AsRecord` causes `StackOverflow` in a path-dependent type's companion object HOT 5
- `ops.coproduct.Reify` broken HOT 1
- performance issue with combined `Length` and `ToSizedHList` implicit derivation HOT 3
- Generic in shapeless 2.3.5+ not working for classes with context bounds if some implicit value is present HOT 2
- Generic.Aux compiles but errors with ClassCastException at runtime HOT 3
- Shapeless 2.3.5+ can't provide implicit for Generic.Aux HOT 5
- _0 as defined is somehow causing extreme compile times HOT 1
- Possible derivation regression since shapeless 2.3.8 HOT 3
- Strange behavior when using -release 8 scalac option HOT 3
- Fix annotations with type parameter
- Shouldn't `KeyTag` be an abstract type rather than a trait? HOT 4
- `Generic` is not materialized in macro-generated companion object of nested case class HOT 1
- MkFieldLens.mkFieldLens returns a derived type instead of type parameter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shapeless.