Closed durraniu closed 2 years ago
I'm not able to repro this. I have a feeling the issue is that the full path to the file (inclusive of parent directories) exceeds the windows limit (which is I believe 256 characters but could be 512?). What is the full path of the directory your document is located within?
The full path is:
D:/umair-durrani/posts/2020-12-16-dynamic-time-warping-and-hierarchical-clustering-with-gapminder/
I wonder if it has something to do with the D drive? What happens if you are on the C drive?
I haven't tested it with quarto on C drive. But I used to have this same file on C drive within a distill blog. It rendered without any issues. Why might D drive be an issue?
Lua could be having difficulty interacting with files on a remote volume (which D could be)
I have now tested rendering by copying the folder to C:/Documents
and using the long file name of the post. I get the same error about crossref.lua
. Then I renamed the post to the short name and it rendered successfully. So, the drive location does not seem to be the issue. It is the length of file name, what you previously suggested.
okay, I tried this on Windows and didn't reproduce. What version of Windows are you running on?
Windows 10
Okay, could you create a git repo with a minimal reproducible example of the failing case and I'll run exactly that code. If you are running from RStudio vs. VS Code vs. Console that it helpful to know as well.
I am running from RStudio 2022.07.1
. The R version is 4.0.3
. Windows 10. Here is the git repo with a single post that fails rendering with a long file name.
Okay, thank you! I can reproduce this with your git repo. Will investigate now.
Bug description
I am trying to render a Rmd file that has a long name:
2020-12-16-dynamic-time-warping-and-hierarchical-clustering-with-gapminder
But I get this error:
Error running filter C:/Users/<user-name>/AppData/Local/Programs/Quarto/share/filters/crossref/crossref.lua: ...ocal/Programs/Quarto/share/filters/crossref/crossref.lua:3019: attempt to index a nil value (local 'file') stack traceback: ...ocal/Programs/Quarto/share/filters/crossref/crossref.lua:2914: in function <...ocal/Programs/Quarto/share/filters/crossref/crossref.lua:2908>
When I change the file name to
2020-12-16-dtw
, it renders successfully.Contents of Rmd file:
RStudio Version:
2022.07.1 Build 554
OS:
Windows 10
Session Info:
quarto check
Outputquarto tools check
OutputChecklist
quarto check
in the "Quarto Check Output" text area?quarto tools check
in the "Quarto Tools Check Output" text area?