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

Build is emitted into the wrong folder when using Docker #1154

Closed
eweilow opened this issue Jan 29, 2019 · 1 comment
Closed

Build is emitted into the wrong folder when using Docker #1154

eweilow opened this issue Jan 29, 2019 · 1 comment

Comments

@eweilow
Copy link

eweilow commented Jan 29, 2019

Describe the bug
The build output is emitted into <currentDir>/<absolutePathOfCurrentDir>.
This is a regression in version 5.21.0, as it doesn't happen in 5.20.2.

For instance, if I'm building C:\dir\text.tex, the build is emitted into C:\dir\c'\dir\. This happens when using Docker to build.

To Reproduce
Use 5.21.0 on Windows in VS Code 1.30.2. Build the project.

Expected behavior
I expect the build output to be placed in the same path as the .tex input, like in 5.20.2

Logs
(Replaced the absolute dir with --absoluteDir-- in the below logs)

LaTeX Workshop Output c:\--absoluteDir-->docker run -i --rm -w /data -v "c:\--absoluteDir--:/data" tianon/latex latexmk -synctex=1 -interaction=nonstopmode -file-line-error -pdf -outdir=c:/--absoluteDir-- text Latexmk: This is Latexmk, John Collins, 1 January 2015, version: 4.41. Rule 'pdflatex': File changes, etc: Changed files, or newly in use since previous run(s): 'text.tex' ------------ Run number 1 of rule 'pdflatex' ------------ ------------ Running 'pdflatex -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="c:/--absoluteDir--" "text.tex"' ------------ Latexmk: applying rule 'pdflatex'... This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./text.tex LaTeX2e <2017/01/01> patch level 3 Babel <3.9r> and hyphenation patterns for 83 language(s) loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo)) (/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty) (/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)) (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty (/usr/share/texlive/texmf-dist/tex/generic/babel-swedish/swedish.ldf (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def))) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def)) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty (/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu) (/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu) (/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu))) (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty)) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty) (/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def) (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg) (/usr/share/texlive/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (autodetected): hpdftex.

(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/share/texlive/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(c:/--absoluteDir--/text.aux)
geometry driver: auto-detecting
geometry detected driver: pdftex
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(c:/--absoluteDir--/text.out)
(c:/--absoluteDir--/text.out)

Package Fancyhdr Warning: \headheight is too small (12.0pt):
Make it at least 13.59999pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.

[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
(c:/--absoluteDir--/text.aux) ){/us
r/share/texmf/fonts/enc/dvips/cm-super/cm-super-t1.enc}</usr/share/texmf/fonts/
type1/public/cm-super/sfbx1440.pfb></usr/share/texmf/fonts/type1/public/cm-supe
r/sfrm1095.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfti1095.pfb>
Output written on c:/--absoluteDir--/text.pdf (1 page, 56826 bytes).
SyncTeX written on c:/--absoluteDir--/text.synctex.gz.
Transcript written on c:/--absoluteDir--/text.log.
Latexmk: Log file says output to 'c:/--absoluteDir--/text.pdf'
Latexmk: All targets (c:/--absoluteDir--/text.pdf) are up-to-date

Desktop (please complete the following information):

  • OS: Windows 10
  • VS Code version: 1.30.2
  • Extension version: 5.21.0

Additional context
Using Docker and the following configuration:

{
  "latex-workshop.message.error.show": false,
  "latex-workshop.docker.enabled": true,
  "latex-workshop.view.pdf.viewer": "tab",
}
@jlelong jlelong changed the title Build is emitted into the wrong folder Build is emitted into the wrong folder when using Docker Jan 29, 2019
@jlelong
Copy link
Collaborator

jlelong commented Jan 29, 2019

Duplicate of #1137. The fix will be available in the next release.

@jlelong jlelong closed this as completed Jan 29, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants