New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"The preview server is not enabled in the version of Hakyll" #1022
Comments
I don't. Is your site's code available anywhere so I can try to reproduce this locally?
Agreed on that. Do you have a specific wording in mind? I'd review a PR that improves this message. |
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.
At the very least I suggest adding this message or linking to one of these GitHub issues that mentions the problem and the fix.
|
I also think this is confusing -- I guess the problem is that The disadvantage is that instead of seeing this error, the user will see an error that cabal failed to resolve the dependencies... |
But in this case |
- Make these flags manual so they can't be turned off by cabal without the user knowing about it. - Improve error message to mention how to override them in `cabal.project`. See #1022
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. |
When using
site --watch
underhakyll==4.16.2.0
I am gettingAs a workaround I can set the
previewserver
flag explicitly, for exampleFirstly, according to #298 (comment) I shouldn't need to do this, it should be the default. Does anyone know what's going on?
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.
The text was updated successfully, but these errors were encountered: