coltrane icon indicating copy to clipboard operation
coltrane copied to clipboard

recursive output destination

Open GabeSoler opened this issue 11 months ago • 5 comments

Hey, I do not know what happened here, but the destination of my output when I wrote:

coltrane record

Made a recursive destination, making an output to the output folder, and then into static a new output folder in a loop:

OSError: [Errno 63] File name too long: '/Users/gsole/Documents/Web-Work/crea-theory/site/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/static/output/Approach/creatherapy/follow_your_path/index.html'

Not sure what happened here...

Then, the version control tracks more than 6k changes because of creating infinite site copies.

GabeSoler avatar Jan 15 '25 13:01 GabeSoler

Yikes, I'm sorry about that! Was it previously working and then an updated version created this issue? I will try to replicate this bug ASAP to see what might be going on.

adamghill avatar Jan 16 '25 03:01 adamghill

I think this is a bug with 0.38.*. I'm trying to fix it now.

adamghill avatar Jan 18 '25 20:01 adamghill

Hey, thank you for checking it.

Yes, it was working before, I was only adding some new templates when it happened.

Let me know if you need more information or to open the repository.

(I made a small attempt of looking myself to your code but couldn't really understand, so thank you so much)

GabeSoler avatar Jan 19 '25 20:01 GabeSoler

I think I have fixed this (along with a bunch of other fixes) in the latest version of Coltrane, 0.38.7. Can you try it out and let me know?

adamghill avatar Jan 20 '25 15:01 adamghill

Hey, thanks for sorting that out. It is not making the loop and not copying the full Coltrane in the output. It created a nice site again :)

One thing that does not make me feel comfortable is the difference in my two output folders.

Outuput with --output and address

  • Project_Root ├── Page Folders │ ├── Folder/html │ └── Folder/html |--| Static │ ├── Static | | |---CSS │ │ |--- Images │ │ |--- JS │ └── Templates | |--- init |. |--- app.py |___ index.html

Output within Coltrane

  • Project_Root ├── Page Folders │ ├── Folder/html │ └── Folder/html |___ index.html

I hope this makes any sense, but I still have the strange Static structure the bug created, and that one holds the static files but also templates and the app.py. While the folder inside Coltrane only has the HTML files (I erased that one before pressing Record so I guess it is the output as it is being generated at the moment).

(I uploaded this to the server and it is working. But I think it is worth looking at what happens with the static files.)

GabeSoler avatar Jan 21 '25 12:01 GabeSoler