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
"kobweb export --layout static" doesn't generate any new files #146
Comments
Thanks for giving Kobweb a try! And for filling this issue.
So if I understand, your repro steps are,
* Create a site
* Export it
* Add a page
* Try exporting again
And it isn't picking up the new page.
I'll try to repro that today.
What OS are you using? And what version of the Kobweb libraries are you
using? (You can find that in gradle/libs.versions.toml)
…---
If you need an easy workaround for now, you should be able to delete your
build directory before re-exporting.
On Tue, Mar 22, 2022, 8:32 AM Blake ***@***.***> wrote:
I followed the directions for setting up a static page for github pages
here.
https://bitspittle.dev/blog/2022/staticdeploy#kobweb-to-the-rescue
I was able to generate the initial files after trying the instructions
maybe 5 or so times. I then created a new page that works when I run kobweb
run but when I try and generate the files with kobweb export --layout
static no new files get made in the /docs folder.
This is happening with Kobweb CLI 0.9.7
—
Reply to this email directly, view it on GitHub
<#146>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKNONAQ5PAQK6EUJO4NDBYLVBHRXPANCNFSM5RLIXU2Q>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Following my own steps, I wasn't able to reproduce your issue. I might be missing something that you're doing. (I'm using Linux, also with 0.9.7 CLI, and libs version 0.9.10) One question though - did you stop |
Yup, those are the repro steps. I'm on Mac 12.3 and my If I stop the Kobweb server and then run the export the issue persists. I just tried cloning my project and then running the command again and it seemed to generate the files. I'm wondering if there is some cache that is not being updated? |
Actually, playing around with this a bit more and I think I got it to happen. Investigating... It seems what may be important, not sure yet, is
|
One way or another, I'm jumping into Gradle-infested waters today. I did find a reference to ".kobweb/site" hardcoded in my logic, from before I introduced the ability to configure it, which is causing my logic to not delete the directory before starting the export. I think this alone may fix it. If you run into trouble again, can you try just deleting your |
OK! I think the issue was indeed my stale hardcoded reference to ".kobweb/site" I'll try to push out a new version of the Kobweb libraries in the next few days which will have a fix for this ( Thanks again for reporting. |
One interesting thing when I was trying to follow the initial directions is that I couldn't get the |
Yikes, I never heard of anything like that. I'll keep an eye out for it. Feel free to open a new issue if you see that happening again especially after |
Heads up that I also changed the CLI binary to prevent users from doing an export while a server is already running, just in case that was related to these issues (even if not, I had wanted to do that for a while anyway). Latest CLI is now |
I followed the directions for setting up a static page for github pages here.
https://bitspittle.dev/blog/2022/staticdeploy#kobweb-to-the-rescue
I was able to generate the initial files after trying the instructions maybe 5 or so times. I then created a new page that works when I run
kobweb run
but when I try and generate the files withkobweb export --layout static
no new files get made in the/docs
folder.This is happening with Kobweb CLI 0.9.7 on Mac
The text was updated successfully, but these errors were encountered: