Closed H3rby7 closed 4 years ago
Tried this one with Buffalo v0.15.0
but could not reproduce it.
Updated initial issue to prevent confusion
Ironically it seems to work for some of the files. My root index.html file works fine
Your buffalo info output indicates you don’t have a properly setup environment, so you start by addressing those issues.
Also, it would appear you’re using GOPATH. Because of that the problem is mostly due to having a binary at one version and the library code in your GOPATH at a different one, causing these problems.
I recommend turning on GO111MODULE and make sure both your app and binary are at the same versions.
As of today Buffalo no longer supports GOPATH.
I’m closing this ticket, for now, because I believe this is related to mismatch versions in the GOPATH. If you can still replicate the issue with modules enabled and the latest versions of Buffalo, and can provide a reproducible example, I will happily reopen the ticket and help track down the issue with you myself.
Hey @markbates I verified the behaviour running with buffalo 0.15.3 and creating a brand new app, updating the buffalo info and creating a github repo with the code that is generated and not working as desccribed above.
I’ve re-opened. I’m traveling the next week so I won’t be able to give this any attention until I get back.
Hopefully someone else can help before then.
Thank you :)
As mentioned I found a workaround that works for me, so there is no big time pressure on this one.
This seems to be regression. Just encountered this issue on my laptop. Will try updating the golang packages on my desktop to see if I encounter the same problem.
What was the workaround that you found? Did you simply change .plush.html
to .html
on all the files?
This is a bug in the Auto
method. We have a work in progress to solve this issue here: https://github.com/gobuffalo/buffalo-cli/pull/11
Closing this one given its a bit old and no more activity has been reported. Please reopen if it still relevant.
Description
When using
buffalo generate resource
, the resulting template files use.plush.html
, which seems to be desired, but the buffalo App actually looks for them without the.plush
.Steps to Reproduce the Problem
buffalo new kebap
cd kebap
buffalo generate resource kebap price:int
Example Repository:
https://github.com/H3rby7/kebap
Expected Behavior
All new resource sites are available just fine. E.G. http://localhost:3000/kebaps/ works.
Actual Behavior
Go buffalo errors with 500 - "kebaps/index.html: could not find template kebaps/index.html"
Context
Workaround
Renaming all template files by removing the ".plush" from file names fixes the issue for me.
Info