-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
tlmgr
creates nul file on Windows
#354
Comments
Seems to be fixed very quicky after my message to tex-live mailing list: https://tug.org/pipermail/tex-live/2022-February/047741.html. Maybe nothing needed at {tinytex} side after all. |
Thanks a lot for having looked into that ! This is something I needed to investigate as it was reported also in rstudio/tufte#107 and I encountered that to, but I did not manage to pin point the source. Let's see if that fixes it ! |
I reinstall the daily version of TinyTeX which bundle daily TeX Live (using You could also try that on your end ? |
Nope, nul stil pops up... There is now ongoing discussion in the texlive mailing list, so maybe there will be more patches coming. But it is so weird - when I do the exact same tlmgr command in, say, Desktop directory, it is going quite well without nul. |
So that is why I can't reproduce all the time. 🤔 I'll try to follow the discussion but thanks for keeping us updated. Hopefully they will find the source. |
Now I am 99% sure that I appended a few simple debugging lines to
In system shell, URL reads proper mirror URL, in RStudio or with |
Pretty interesting indeed! Regarding |
In a plain |
So could be related to how |
I think so. I'll send a message to R-devel mailing list. |
Did you try already how the |
Yes, I did try. Without success. However, the problem lies in rtools40 curl, which cannot hadle |
Really insteresting all that ! For reference, link to the thread: https://stat.ethz.ch/pipermail/r-devel/2022-February/081474.html Thank you very much for all this investigation ! |
I think I deciphered this conundrum, see https://tug.org/pipermail/tex-live/2022-February/047748.html You can fix it in {tinytex} texlive "flavor" or wait for maintainers to push to texlive daily build. |
Thanks, that is good news ! We'll probably wait for a fix to be pushed in TeX Live. Then it should be available in TinyTeX daily build. |
I'm truly impressed by your debugging skills! I really appreciate the effort. I was able to reproduce this problem with an older version of TinyTeX. I just reinstalled the latest version, it seems the problem has gone. |
Thanks, @yihui. May I ask you for TinyTeX versions that you tested? I think the main issue is caused by EDIT: I use TinyTeX version v2022.02, but tlmgr is of revision 60693 (2021-10-04 04:24:25 +0200) in this release of TinyTeX. |
Sorry I was wrong. The actual reason was that the first time I tried to compile a document to pdf, tinytex figured that it needed to install a few missing packages (hence needed to access a CTAN mirror), which created this I just deliberately deleted a LaTeX package, recompiled the document, and the I was using |
Well I am afraid those revisions won't help. The issue really is in "unix" curl that is used primarily in However I believe this could be tackled on TinyTeX/user side. There is ENV variable available that can tell tlmgr to use its own curl. See https://www.tug.org/texlive/doc/tlmgr.html#ENVIRONMENT-VARIABLES. I set my TEXLIVE_PREFER_OWN to EDIT: TEXLIVE_DOWNLOADER = wget did not work afterall, but TEXLIVE_PREFER_OWN = 1 is the way. I can see it utilizes
TinyTeX curl that works fine. |
Great! I just applied the fix. You can test the development version via remotes::install_github('yihui/tinytex') Thanks a lot! |
Works great! |
Hi,
every now and then a
nul
file appears inside my project directory after knitting to PDF. That would be no big deal, but this special file cannot be removed by standard means and it really messes upgit
.I've found out that this is due to
tlmgr
and could finally reproduce the issue withtinytex::tlmgr_update()
. Some fancy "debugging" and system process monitoring revealed that{tinytex}
'stlmgr
callscurl
, shipped with Rtools42 on Windows.curl
tries to download something but ends up creating thenul
file. Note that this won't happen when you specify some non-default CTAN (I mean not using--repository ctan
) as pointed out at https://tug.org/pipermail/tex-live/2019-July/043908.html. Lastly, if I runtlmgr update --list --self
in CMD in the same directory, nonul
appears as it doesn't usecurl
(according to Process MonitorEDIT: seems like it does).Apparently, you can specify what to use in TeX environment table, as described here: https://tug.org/texlive/doc/tlmgr.html#ENVIRONMENT-VARIABLES. I wonder if it can be mitigated somehow on{tinytex}
side.EDIT: The issue seems to originate somewhere around https://github.com/TeX-Live/texlive-source/blob/fc5589360e8051b3c578d09ad6afdc212d375267/texk/tests/TeXLive/TLUtils.pm#L4164. I'll contact TUG mailing list with the issue.
Many thanks!
Session info:
By filing an issue to this repo, I promise that
xfun::session_info('tinytex')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/tinytex')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: