-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
"Error in path_to_connection()
" if one of the files to be compiled has the same name as the final file although in a subfolder
#1464
Comments
Thanks for the report - we are missing some details and information, so I will answer by guessing some of it. Please to share real information I am mistaken
Do you mean the h1 title like # mehaanika What format are you using ?
We need to reproduce to be able to fix this. For now, you need to rename the first header or set a custom index # mehaanika {#mehaanika-1} try this above ☝️ |
So I can reproduce, and this is indeed related to Code where we write over the existing one being currently splitOne of the The merged file will be Lines 416 to 447 in f614e89
From our doc : https://bookdown.org/yihui/bookdown/configuration.html
Is there any reason to configure this and change the default ? Is this for the download feature ? I'll look more into that, but I think we'll add an error / warning or just rename the intermediate file at least temporarily. Some more details, as it happens there: Lines 416 to 447 in f614e89
One of the The merged file will be And so there will be an overwrite. The initial output file is no more there for This is happening because all the files are written into the main root project behavior being moved to Definitely an issue to fix. @yihui if you have a preference over the behavior that should happen, let me know. Another really easy solution would be to always preprend by |
I think we should throw an error in this case, asking users to change either
Yes, I think that's a good idea, too. |
The content of my _bookdown.yml:
The error message:
If I exclude the file mehaanika.Rmd from the list of the files to be compiled then compiling finishes without an error. Even if I rename the file to something else and change the name in the list as well the same old error message reappears.
Only also renaming the first-level caption inside the file allows compiling without an error.
xfun::session_info('bookdown')
The text was updated successfully, but these errors were encountered: