Giter Club home page Giter Club logo

Comments (6)

Minoru avatar Minoru commented on August 20, 2024

Firstly, according to #298 (comment) I shouldn't need to do this, it should be the default. Does anyone know what's going on?

I don't. Is your site's code available anywhere so I can try to reproduce this locally?

Secondly, it was really hard to discover the above workaround! Could it be explicitly be added to the error message to give users a clue about what they should do? "set the flag to True and recompile Hakyll" doesn't explain much at all.

Agreed on that. Do you have a specific wording in mind? I'd review a PR that improves this message.

from hakyll.

tomjaguarpaw avatar tomjaguarpaw commented on August 20, 2024

Is your site's code available anywhere so I can try to reproduce this locally?

Yes, it's https://github.com/tomjaguarpaw/H2, but if you prefer to wait until I submit a minimal example of the problem that's fine too.

Do you have a specific wording in mind?

At the very least I suggest adding this message or linking to one of these GitHub issues that mentions the problem and the fix.

You can set the preview server by running cabal with, e.g. --constraint="hakyll +previewserver"

from hakyll.

jaspervdj avatar jaspervdj commented on August 20, 2024

I also think this is confusing -- I guess the problem is that cabal toggles the flags when it can't find a resolution. Should we set previewServer (and probably watchServer) to Manual: True in the cabal file?

The disadvantage is that instead of seeing this error, the user will see an error that cabal failed to resolve the dependencies...

from hakyll.

tomjaguarpaw avatar tomjaguarpaw commented on August 20, 2024

But in this case cabal can find a resolution, because if I manually set +previewserver then it succeeds.

from hakyll.

jstolarek avatar jstolarek commented on August 20, 2024

I've run into the same problem - preview server stopped working after rebuilding my website dependencies. Workaround from the first post works, but it isn't an easy thing to figure out. Having this documented would be helpful.

from hakyll.

Minoru avatar Minoru commented on August 20, 2024

Fixed by #1024. I'll make a patch release with those improvements after merging the few outstanding PRs and updating some of the dependencies.

from hakyll.

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.