GithubHelp home page GithubHelp logo

Comments (14)

snoyberg avatar snoyberg commented on September 25, 2024

Which version of GHC and containers are you using?

from stackage.

ekmett avatar ekmett commented on September 25, 2024

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.

ekmett avatar ekmett commented on September 25, 2024

Simon is still having the issue. I'll need to dig in deeper.

from stackage.

sol avatar sol commented on September 25, 2024

It's a different issue. The properties test suite won't complete sometimes.

from stackage.

ekmett avatar ekmett commented on September 25, 2024

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.

stillyetanothergithubuser avatar stillyetanothergithubuser commented on September 25, 2024

@ekmett I wish I'd reported it, but I think youve got the wrong johnw.

from stackage.

ekmett avatar ekmett commented on September 25, 2024

Woops, @jwiegley. :)

from stackage.

ekmett avatar ekmett commented on September 25, 2024

@BartMassey. Are you experiencing this problem any more?

from stackage.

BartMassey avatar BartMassey commented on September 25, 2024

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.

ekmett avatar ekmett commented on September 25, 2024

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.

snoyberg avatar snoyberg commented on September 25, 2024

I haven't heard any more reports of lens failing. Any objection to closing this issue?

from stackage.

ekmett avatar ekmett commented on September 25, 2024

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.

ekmett avatar ekmett commented on September 25, 2024

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.

ekmett avatar ekmett commented on September 25, 2024

Correction: When hackage is back online, I'll push out 3.7.1.2 ;)

from stackage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.