nunocoracao / blowfish-tools

CLI to initialize a Blowfish project
https://blowfish.page
MIT License
12 stars 4 forks source link

Running blowfish-tools to create new site modifying results in ./config/_default/languages.en.toml does not exist #60

Closed crluehmann closed 3 months ago

crluehmann commented 3 months ago

I'm new with Hugo and blowfish, but it seems when using 'npx blowfish-tools' to create a new site, when you try to modify it, the modification fails saying the ./config/_defaults/ related file does not exist.

I'm using 'npx blowfish-tools' in a new directory and the install solely comes from blowfish-tools. I have tried on PowerShell (not Windows PowerShell) and WSL with similar results.

Is there something I'm missing?

nunocoracao commented 3 months ago

Hello @crluehmann could you provide any details? Which options did you choose? where was the command running? Which error messages?

crluehmann commented 3 months ago

Yes, I created the site using npx blowfish-tools, then CDed into the directory.

I then used the option to modify the site title. Then blowfish-tools threw an error saying that ./config/_defaults/language.en.toml does not exist.

I can update in a few minutes with exact commands and responses.

Edit: Specifically: in PowerShell on Win 11 23H2, hugo v0.124.1 extended.

Commands & response: npx blowfish-tools Setup a new website with Blowfish - entered name, installed Selected Configure overall site Selected Site's title response: File ./config/_default/languages.en.toml does not exist.

nunocoracao commented 3 months ago

@crluehmann will need sometime to figure out how I can reproduce/fix this one in my setup - aka I don't have a windows machine. Any ideas if it's possible to emulate a powershell on mac?

crluehmann commented 3 months ago

Yes, you can install Powershell on Mac through Homebrew - https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos?view=powershell-7.4

For what it's worth, I get the same outcome when doing the same commands on WSL Ubuntu.

nunocoracao commented 3 months ago

Will try to debug today

nunocoracao commented 3 months ago

should be fixed in 1.4.0

crluehmann commented 3 months ago

Thank you!

nunocoracao commented 3 months ago

Was it fixed?

crluehmann commented 3 months ago

Unfortunately not -- same output:

√ What do you want to configure? Start typing to search for options or scroll down to see all options · Site's title File ./config/_default/languages.en.toml does not exist.

nunocoracao commented 3 months ago

Hmm... is the file there? Can you give me a repo so that I can check

crluehmann commented 3 months ago

Sure -- empty directories weren't synced, but I ran blowfish-tools then created a repo with the folder

https://github.com/crluehmann/testing-blowfish

nunocoracao commented 3 months ago

Ok so files were not created... this doesn't happen in my case with powershell on mac... need a win machine to debug this.

nunocoracao commented 3 months ago

Released fix in https://github.com/nunocoracao/blowfish-tools/releases/tag/v1.5.0 Let me know if it works @crluehmann

crluehmann commented 3 months ago

@nunocoracao - It does work!! Thank you so much!!