Comments (14)
Which version of GHC and containers are you using?
from stackage.
I think this is due to the fact that the doctest
suite for lens
doesn't name containers
explicitly as a dependency, so if you have containers
0.5 installed it will use the system one and not the one used by the package. @JohnW reported the same issue just now.
I've pushed lens
3.6.0.1 backporting a fix that was in 3.7 (due to be released next week) for this issue.
If this isn't the issue I may have to work with Simon and the other doctest
guys to resolve it.
from stackage.
Simon is still having the issue. I'll need to dig in deeper.
from stackage.
It's a different issue. The properties
test suite won't complete sometimes.
from stackage.
Ah. I've disabled the expectedFailure
properties, and pushed a 3.6.0.2. That should address Simon's issue at least.
I added a few more explicit dependencies to the doctest
harness. I can no longer duplicate Bart's issue locally.
from stackage.
@ekmett I wish I'd reported it, but I think youve got the wrong johnw.
from stackage.
Woops, @jwiegley. :)
from stackage.
@BartMassey. Are you experiencing this problem any more?
from stackage.
Now I can't build lens at all :-)
trying: lens-3.6
rejecting: linear-0.2.0.2 (conflict: lens==3.6, linear => lens>=2.9 && <3.1)
rejecting: linear-0.2 (global constraint requires ==0.2.0.2)
from stackage.
Hrmm. That is a depressingly old version of linear
that shouldn't be part of the current set of packages for stackage.
The current version of lens
in stackage is 3.6.0.3, not 3.6, and that version of linear
has never been a current build in stackage.
You didn't make the mistake of running stackage init
back when that was in the build instructions did you?
Can you try to cabal update
before rerunning stackage build
?
from stackage.
I haven't heard any more reports of lens failing. Any objection to closing this issue?
from stackage.
So far, the three users who have reported the issue had containers
installed outside of stackage
. It appears that doctests
run from within stackage
can see those other versions, and the ghci used by doctest
just takes the most recent unhidden version, and this is what was causing the error. Anyone who has a clean build and builds stackage
, does not see the error.
At this point, I consider the issue resolved, modulo the fact that Simon and the doctest guys might want to look into whether or not there is a better way to deal with the sandboxing environment variables you send them.
from stackage.
I spent some time revisiting this issue as there was slightly more I could do.
I've pushed out lens 3.7.1.2
which backports from HEAD a custom build step to build a file with all of the exact dependencies of the current project and then launches doctest with -hide-all-packages -package=... on those exact versions. This should fix any lingering errors caused by the fact that doctest can 'see outside of stackage' for other versions, and will allow me to deal with other packages being added to stackage that conflict with the module names in my dependencies. It hasn't happened yet, but someone might drag in monadLib
or something.
So consider this issue doubly-closed. ;)
In case someone anyone else is dealing with similar issues with doctests in their package, they can find the custom build step and how it is used in this patch: ekmett/lens@ef535e5
from stackage.
Correction: When hackage is back online, I'll push out 3.7.1.2 ;)
from stackage.
Related Issues (20)
- deprecating cryptonite HOT 5
- hashable-1.5 HOT 8
- brick-2.4 HOT 1
- tasty-bench-0.4 HOT 2
- network-run-0.4 HOT 1
- comfort-glpk-0.1 test failure HOT 1
- text-rope-0.3
- hedgehog out of bounds HOT 7
- hspec-hedgehog-0.2.0.0 HOT 2
- Build cycle detected HOT 3
- fits-parse-0.4.1 HOT 1
- pandoc-3.3 HOT 1
- crypton-connection-0.4.1, hoogle-5.0.18.4 HOT 1
- envparse 0.5.2 HOT 2
- vector-space 0.19
- shakespeare 2.1.1 test failure HOT 1
- sequence-formats 1.8.1.0
- path 0.9.6
- nothunks 0.3 HOT 1
- postgresql-libpq-0.11 out of bounds for hasql-listen-notify-0.1.0.1 HOT 2
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 stackage.