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

In some cases posts generate conflicting cache files and shouldn't #2246

Closed
ralsina opened this issue Feb 14, 2016 · 4 comments
Closed

In some cases posts generate conflicting cache files and shouldn't #2246

ralsina opened this issue Feb 14, 2016 · 4 comments
Labels
Milestone

Comments

@ralsina
Copy link
Member

ralsina commented Feb 14, 2016

If you have markdown (.md) and rst (.rst) posts with the same name and different extension and slug, they conflict on the cache:

$ ls posts/
fo.md  fo.rst

$ nikola build
Scanning posts......done!
ERROR: Task generation 'render_site' has duplicated definition of 'render_posts:cache/posts/fo.html'

Solution is probably to use something like fo.rst.html and fo.md.html as cache filenames.

@ralsina ralsina added the bug label Feb 14, 2016
@ralsina ralsina modified the milestones: v7.7.6, v7.7.7 Feb 14, 2016
ralsina added a commit that referenced this issue Mar 9, 2016
@ralsina
Copy link
Member Author

ralsina commented Mar 9, 2016

OH HELL this is bad. We are using post.base_path (which contains CACHE_FOLDER, BTW) in a bunch of places as unique post identifiers. So, ugh.

@ralsina ralsina modified the milestones: Whenever, v7.7.7 Mar 9, 2016
@SpotlightKid
Copy link
Contributor

I'm being bitten by this error as I'm trying to build a site with posts imported from my Wordpress blog:

$ nikola --conf=conf-dev.py build
[2016-04-07T18:05:12Z] INFO: Nikola: Using config file 'conf-dev.py'
Scanning posts...........done!
ERROR: Task generation 'render_site' has duplicated definition of 'render_tags:output/categories/midi.xml'

I'm not sure where to fix it. The import has only generated .md and .meta files, so it's not about conflicting ReST and markdown source files.

Doing nikola clean or deleting .doit.db doesn't help either.

@Kwpolska
Copy link
Member

Kwpolska commented Apr 7, 2016

This is a different problem, please create a new issue. Also, check how your tags and your configuration look. This could be some unusual conflict (we are trying to generate tag XML RSS two times). Are your tags and categories prefixes different? Can you reproduce in a clean site (without your config file)?

@ralsina
Copy link
Member Author

ralsina commented Jul 19, 2016

Sadly, fixing this bug implies breaking comments for most existing users and that is just unacceptable.

@ralsina ralsina closed this as completed Jul 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants