Skip to content
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

recursive output destination #75

Open
GabeSoler opened this issue Jan 15, 2025 · 5 comments
Open

recursive output destination #75

GabeSoler opened this issue Jan 15, 2025 · 5 comments

Comments

@GabeSoler
Copy link

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.

@adamghill
Copy link
Owner

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
Copy link
Owner

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

@GabeSoler
Copy link
Author

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)

@adamghill
Copy link
Owner

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?

@GabeSoler
Copy link
Author

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants