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

Can not show error if file name has spaces. #3311

Closed
Sakurajyan opened this issue May 27, 2022 · 18 comments
Closed

Can not show error if file name has spaces. #3311

Sakurajyan opened this issue May 27, 2022 · 18 comments
Assignees
Labels
external issue Issue with something else than LaTeX-Wokshop

Comments

@Sakurajyan
Copy link

Sakurajyan commented May 27, 2022

Preliminary questions [Required]

Disable all the other extensions except for LaTeX Workshop, restart VS Code, and check that you still see this issue. [Required]

You still see this issue?: Yes/No

Make sure to visit the wiki FAQ before filling an issue.

You visited the wiki?: Yes

If your issue is with compiling a document (not having to do with finding the root file of a project), check first that you can compile manually.

You can compile a TeX document manually?: Yes

Describe the bug [Required]

If the tex file name has space, Latex-Workshop can not present the syntax error in problem panels. For example, I use \acute{a} in text without math mode. I need to check log file to find the reason why the recipe terminated with error.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error

Expected behavior

A clear and concise description of what you expected to happen.

Logs [Required]

Please paste the whole log messages here, not parts of ones. The log should start with Initializing LaTeX Workshop. It is very important to identify problems.

LaTeX Workshop Output [Required]

[16:53:03] Initializing LaTeX Workshop.
[16:53:03] Extension root: c:\Users\sakurajyan\.vscode\extensions\james-yu.latex-workshop-8.26.0
[16:53:03] $PATH: C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files\ImageMagick-7.1.0-Q16-HDRI;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Calibre2\;C:\Program Files (x86)\PDFtk\bin\;C:\Program Files\MATLAB\R2021b\runtime\win64;C:\Program Files\MATLAB\R2021b\bin;C:\Program Files\Wolfram Research\WolframScript\;C:\texlive\2022\bin\win32;C:\Users\sakurajyan\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\sakurajyan\AppData\Local\Programs\Python\Python310\;C:\Users\sakurajyan\AppData\Local\Microsoft\WindowsApps;C:\Users\sakurajyan\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\sakurajyan\AppData\Local\GitHubDesktop\bin;C:\Users\sakurajyan\AppData\Local\Pandoc\
[16:53:03] $SHELL: undefined
[16:53:03] $LANG: undefined
[16:53:03] $LC_ALL: undefined
[16:53:03] process.platform: win32
[16:53:04] process.arch: x64
[16:53:04] vscode.env.appName: Visual Studio Code
[16:53:04] vscode.env.remoteName: undefined
[16:53:04] vscode.env.uiKind: 1
[16:53:04] Workspace for configuration: file:///d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results
[16:53:04] editor.acceptSuggestionOnEnter: "on"
[16:53:04] latex-workshop.bind.enter.key: true
[16:53:04] latex-workshop.docker.enabled: false
[16:53:04] latex-workshop.docker.image.latex: ""
[16:53:04] latex-workshop.hover.preview.mathjax.extensions: []
[16:53:04] latex-workshop.intellisense.package.enabled: true
[16:53:04] latex-workshop.intellisense.update.aggressive.enabled: false
[16:53:04] latex-workshop.intellisense.update.delay: 1000
[16:53:04] latex-workshop.latex.autoBuild.run: "onFileChange"
[16:53:04] latex-workshop.latex.build.forceRecipeUsage: false
[16:53:04] latex-workshop.latex.outDir: "%DIR%"
[16:53:04] latex-workshop.latex.recipes: [
 {
  "name": "latexmk 🔃",
  "tools": [
   "latexmk"
  ]
 },
 {
  "name": "latexmk (latexmkrc)",
  "tools": [
   "latexmk_rconly"
  ]
 },
 {
  "name": "latexmk (lualatex)",
  "tools": [
   "lualatexmk"
  ]
 },
 {
  "name": "latexmk (xelatex)",
  "tools": [
   "xelatexmk"
  ]
 },
 {
  "name": "pdflatex ➞ bibtex ➞ pdflatex × 2",
  "tools": [
   "pdflatex",
   "bibtex",
   "pdflatex",
   "pdflatex"
  ]
 },
 {
  "name": "Compile Rnw files",
  "tools": [
   "rnw2tex",
   "latexmk"
  ]
 },
 {
  "name": "Compile Jnw files",
  "tools": [
   "jnw2tex",
   "latexmk"
  ]
 },
 {
  "name": "tectonic",
  "tools": [
   "tectonic"
  ]
 }
]
[16:53:04] latex-workshop.latex.tools: [
 {
  "name": "latexmk",
  "command": "latexmk",
  "args": [
   "-synctex=1",
   "-interaction=nonstopmode",
   "-file-line-error",
   "-pdf",
   "-outdir=%OUTDIR%",
   "%DOC%"
  ],
  "env": {}
 },
 {
  "name": "lualatexmk",
  "command": "latexmk",
  "args": [
   "-synctex=1",
   "-interaction=nonstopmode",
   "-file-line-error",
   "-lualatex",
   "-outdir=%OUTDIR%",
   "%DOC%"
  ],
  "env": {}
 },
 {
  "name": "xelatexmk",
  "command": "latexmk",
  "args": [
   "-synctex=1",
   "-interaction=nonstopmode",
   "-file-line-error",
   "-xelatex",
   "-outdir=%OUTDIR%",
   "%DOC%"
  ],
  "env": {}
 },
 {
  "name": "latexmk_rconly",
  "command": "latexmk",
  "args": [
   "%DOC%"
  ],
  "env": {}
 },
 {
  "name": "pdflatex",
  "command": "pdflatex",
  "args": [
   "-synctex=1",
   "-interaction=nonstopmode",
   "-file-line-error",
   "%DOC%"
  ],
  "env": {}
 },
 {
  "name": "bibtex",
  "command": "bibtex",
  "args": [
   "%DOCFILE%"
  ],
  "env": {}
 },
 {
  "name": "rnw2tex",
  "command": "Rscript",
  "args": [
   "-e",
   "knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')"
  ],
  "env": {}
 },
 {
  "name": "jnw2tex",
  "command": "julia",
  "args": [
   "-e",
   "using Weave; weave(\"%DOC_EXT%\", doctype=\"tex\")"
  ],
  "env": {}
 },
 {
  "name": "jnw2texmintex",
  "command": "julia",
  "args": [
   "-e",
   "using Weave; weave(\"%DOC_EXT%\", doctype=\"texminted\")"
  ],
  "env": {}
 },
 {
  "name": "tectonic",
  "command": "tectonic",
  "args": [
   "--synctex",
   "--keep-logs",
   "%DOC%.tex"
  ],
  "env": {}
 }
]
[16:53:04] latex-workshop.viewer.pdf.internal.keyboardEvent: "auto"
[16:53:04] Creating a new file watcher.
[16:53:04] watcherOptions: {"useFsEvents":false,"usePolling":false,"interval":300,"binaryInterval":1000,"awaitWriteFinish":{"stabilityThreshold":250}}
[16:53:04] Creating PDF file watcher.
[16:53:04] watcherOptions: {"useFsEvents":false,"usePolling":false,"interval":300,"binaryInterval":1000,"awaitWriteFinish":{}}
[16:53:04] Creating Bib file watcher.
[16:53:04] watcherOptions: {"useFsEvents":false,"usePolling":false,"interval":300,"binaryInterval":1000,"awaitWriteFinish":{"stabilityThreshold":250}}
[16:53:04] Set $LATEXWORKSHOP_DOCKER_LATEX: ""
[16:53:05] [Server] Creating LaTeX Workshop http and websocket server.
[16:53:05] LaTeX Workshop initialized.
[16:53:05] Trigger characters for intellisense of LaTeX documents: ["\\",",","{"]
[16:53:05] Bibtex format config: {"tab":"  ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[16:53:05] Current workspace folders: ["file:///d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results"]
[16:53:05] Found root file from active editor: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.tex
[16:53:06] Root file changed: from undefined to d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.tex
[16:53:06] Start to find all dependencies.
[16:53:06] Root file languageId: latex
[16:53:06] [Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":60354}
[16:53:06] Reset file watcher.
[16:53:06] Parsing a file and its subfiles: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.tex
[16:53:06] Parse fls file.
[16:53:06] Cannot find fls file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.fls
[16:53:06] Added to file watcher: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.tex
[16:53:06] [Server] valdOrigin is http://127.0.0.1:60354
[16:53:06] Restoring the PDF viewer at the column 1 from the state: {"type":"state","state":{"pdfFileUri":"file:///d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Problems.pdf","scale":"auto","scrollMode":0,"spreadMode":0,"scrollTop":1662.6666259765625,"scrollLeft":0,"trim":0,"synctexEnabled":true,"autoReloadEnabled":true}}
[16:53:06] Checking for duplicate labels: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.tex.
[16:53:06] onDidSaveTextDocument triggered: file:///d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled 1.tex
[16:53:06] The internal PDF viewer url: http://127.0.0.1:60354/viewer.html?incode=1&file=pdf..ZmlsZSUzQSUyRiUyRiUyRmQlM0ElMkZPbmVEcml2ZSUyMC0lMjBzdHUuaGl0LmVkdS5jbiUyRk1hdGglMjBQaC5EJTIwQXJ0aWNsZSUyRkxpdHRsZSUyMFJlc3VsdHMlMkZQcm9ibGVtcy5wZGY
[16:53:06] Added to PDF file watcher: file:///d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Problems.pdf
[16:53:06] Snippet data loaded.
[16:53:06] File watcher - file changed: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.tex
[16:53:06] Parsing a file and its subfiles: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.tex
[16:53:07] Checking for duplicate labels: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.tex.
[16:53:07] Auto build started detecting the change of a file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.tex
[16:53:07] BUILD command invoked.
[16:53:07] The document of the active editor: file:///d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled 1.tex
[16:53:07] The languageId of the document: latex
[16:53:07] Building root file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.tex
[16:53:07] Build root file d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.tex
[16:53:07] outDir: d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality
[16:53:07] Recipe step 1: latexmk
[16:53:07] Recipe step 1 args: ["-synctex=1","-interaction=nonstopmode","-file-line-error","-pdf","-outdir=d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality","d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled 1"]
[16:53:07] Recipe step env: {}
[16:53:07] cwd: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality
[16:53:07] LaTeX build process spawned. PID: 8404.
[16:53:07] Handle data type: open
[16:53:07] Preview PDF file: file:///d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Problems.pdf
[16:53:07] Handle data type: request_params
[16:53:07] Sending the settings of the PDF viewer for initialization: {"type":"params","scale":"auto","trim":0,"scrollMode":0,"spreadMode":0,"hand":false,"invertMode":{"enabled":false,"brightness":1,"grayscale":0.6,"hueRotate":180,"invert":0,"sepia":0},"bgColor":"#ffffff","keybindings":{"synctex":"ctrl-click"}}
[16:53:08] Handle data type: loaded
[16:53:08] Manager.fileWatcher.getWatched: {"d:\\OneDrive - stu.hit.edu.cn\\Math Ph.D Article\\Little Results\\Log Sobolev Inequality\\Zn Log Sobolev Inequality":["Untitled 1.tex"]}
[16:53:08] Manager.filesWatched: ["d:\\OneDrive - stu.hit.edu.cn\\Math Ph.D Article\\Little Results\\Log Sobolev Inequality\\Zn Log Sobolev Inequality\\Untitled 1.tex"]
[16:53:08] BibWatcher.bibWatcher.getWatched: {}
[16:53:08] BibWatcher.bibsWatched: []
[16:53:08] PdfWatcher.pdfWatcher.getWatched: {"d:\\OneDrive - stu.hit.edu.cn\\Math Ph.D Article\\Little Results":["Problems.pdf"]}
[16:53:08] PdfWatcher.pdfsWatched: ["d:\\OneDrive - stu.hit.edu.cn\\Math Ph.D Article\\Little Results\\Problems.pdf"]
[16:53:08] PdfWatcher.watchedPdfVirtualUris: []
[16:53:08] PdfWatcher.ignoredPdfUris: ["file:///d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled 1.pdf"]
[16:53:13] Recipe returns with error: 12/null. PID: 8404. message: Latexmk: If appropriate, the -f option can be used to get latexmk
  to try to force complete processing.
C:\texlive\2022\bin\win32\runscript.tlu:915: command failed with exit code 12:
perl.exe c:\texlive\2022\texmf-dist\scripts\latexmk\latexmk.pl -synctex=1 -interaction=nonstopmode -file-line-error -pdf "-outdir=d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality" "d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled 1"
.
[16:53:13] The environment variable $PATH: undefined
[16:53:13] The environment variable $Path: C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files\ImageMagick-7.1.0-Q16-HDRI;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Calibre2\;C:\Program Files (x86)\PDFtk\bin\;C:\Program Files\MATLAB\R2021b\runtime\win64;C:\Program Files\MATLAB\R2021b\bin;C:\Program Files\Wolfram Research\WolframScript\;C:\texlive\2022\bin\win32;C:\Users\sakurajyan\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\sakurajyan\AppData\Local\Programs\Python\Python310\;C:\Users\sakurajyan\AppData\Local\Microsoft\WindowsApps;C:\Users\sakurajyan\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\sakurajyan\AppData\Local\GitHubDesktop\bin;C:\Users\sakurajyan\AppData\Local\Pandoc\
[16:53:13] The environment variable $SHELL: undefined
[16:53:13] Cleaning auxiliary files and retrying build after toolchain error.
[16:53:13] Clean glob matched files: {"globs":["./**/*.aux","./**/*.bbl","./**/*.blg","./**/*.idx","./**/*.ind","./**/*.lof","./**/*.lot","./**/*.out","./**/*.toc","./**/*.acn","./**/*.acr","./**/*.alg","./**/*.glg","./**/*.glo","./**/*.gls","./**/*.fls","./**/*.log","./**/*.fdb_latexmk","./**/*.snm","./**/*.synctex(busy)","./**/*.synctex.gz(busy)","./**/*.nav","./**/*.synctex.gz"],"outdir":"d:\\OneDrive - stu.hit.edu.cn\\Math Ph.D Article\\Little Results\\Log Sobolev Inequality\\Zn Log Sobolev Inequality"}
[16:53:13] Cleaning file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.aux
[16:53:13] Cleaning file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.fls
[16:53:13] Cleaning file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.log
[16:53:13] Cleaning file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.fdb_latexmk
[16:53:13] Cleaning file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.synctex.gz
[16:53:13] Recipe step 1: latexmk
[16:53:13] Recipe step 1 args: ["-synctex=1","-interaction=nonstopmode","-file-line-error","-pdf","-outdir=d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality","d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled 1"]
[16:53:13] Recipe step env: {}
[16:53:13] cwd: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality
[16:53:13] LaTeX build process spawned. PID: 18264.
[16:53:18] Recipe returns with error: 12/null. PID: 18264. message: Latexmk: If appropriate, the -f option can be used to get latexmk
  to try to force complete processing.
C:\texlive\2022\bin\win32\runscript.tlu:915: command failed with exit code 12:
perl.exe c:\texlive\2022\texmf-dist\scripts\latexmk\latexmk.pl -synctex=1 -interaction=nonstopmode -file-line-error -pdf "-outdir=d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality" "d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled 1"
.
[16:53:18] The environment variable $PATH: undefined
[16:53:18] The environment variable $Path: C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files\ImageMagick-7.1.0-Q16-HDRI;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Calibre2\;C:\Program Files (x86)\PDFtk\bin\;C:\Program Files\MATLAB\R2021b\runtime\win64;C:\Program Files\MATLAB\R2021b\bin;C:\Program Files\Wolfram Research\WolframScript\;C:\texlive\2022\bin\win32;C:\Users\sakurajyan\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\sakurajyan\AppData\Local\Programs\Python\Python310\;C:\Users\sakurajyan\AppData\Local\Microsoft\WindowsApps;C:\Users\sakurajyan\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\sakurajyan\AppData\Local\GitHubDesktop\bin;C:\Users\sakurajyan\AppData\Local\Pandoc\
[16:53:18] The environment variable $SHELL: undefined
[16:53:18] Clean glob matched files: {"globs":["./**/*.aux","./**/*.bbl","./**/*.blg","./**/*.idx","./**/*.ind","./**/*.lof","./**/*.lot","./**/*.out","./**/*.toc","./**/*.acn","./**/*.acr","./**/*.alg","./**/*.glg","./**/*.glo","./**/*.gls","./**/*.fls","./**/*.log","./**/*.fdb_latexmk","./**/*.snm","./**/*.synctex(busy)","./**/*.synctex.gz(busy)","./**/*.nav","./**/*.synctex.gz"],"outdir":"d:\\OneDrive - stu.hit.edu.cn\\Math Ph.D Article\\Little Results\\Log Sobolev Inequality\\Zn Log Sobolev Inequality"}
[16:53:18] Cleaning file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.aux
[16:53:18] Cleaning file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.fls
[16:53:18] Cleaning file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.log
[16:53:18] Cleaning file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.fdb_latexmk
[16:53:18] Cleaning file: d:\OneDrive - stu.hit.edu.cn\Math Ph.D Article\Little Results\Log Sobolev Inequality\Zn Log Sobolev Inequality\Untitled 1.synctex.gz

Developer Tools Console [Required]

To access the log, click 'help' -> 'Toggle Developer Tools' -> 'Console'. Paste anything suspicious.

Nothing

Screenshots

image

Desktop [Required]

Please write exact version numbers. Please don't write latest instead of exact numbers.

  • OS: Windows 11
  • VS Code version: 1.67.2
  • Extension version: 8.26.0
  • TeX distribution version: TeX Live 2022

Additional questions

Are you using VSCodium?

No

Are you using the Snap or Flatpack versions of VS Code?

No

Are you using LaTeX Workshop with VS Code Remote?

No

If the answer is Yes, please write which one you are using. Write the versions of the remote extension.

  • Remote Containers/Remote SSH/Remote WSL
  • Remote Extension Version: [e.g. 0.48.0]

Additional context

Add any other context about the problem here.

@jlelong
Copy link
Collaborator

jlelong commented May 27, 2022

I cannot reproduce the issue.

@jlelong jlelong added need more info More information needed to identify the issue can't reproduce Issue cannot be reproduced labels May 27, 2022
@Sakurajyan
Copy link
Author

Untitled 1.txt
If the file name is Untitled 1.tex, it shows
image
If the file name is Untitled1.tex, it shows
image

@jlelong
Copy link
Collaborator

jlelong commented May 28, 2022

Unfortunately, I cannot reproduce the issue with your example. Could you post the output of the LaTex compiler in both cases?

@Sakurajyan
Copy link
Author

Unfortunately, I cannot reproduce the issue with your example. Could you post the output of the LaTex compiler in both cases?
When file name is Untitled1.tex:


Win CP console initial and current in/out Win: (936, 936), (936, 936)
Coding system for system and terminal: 'CP936'
---
Rc files read:
  NONE
Latexmk: This is Latexmk, John Collins, 17 Mar. 2022. Version 4.77, version: 4.77.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
  d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled1.tex
Rule 'pdflatex': The following rules & subrules became out-of-date:
  pdflatex
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -synctex=1 -interaction=nonstopmode -file-line-error -recorder  "d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled1.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled1.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-05-04> (c:/texlive/2022/texmf-dist/tex/latex/amscls/amsart.cls
Document Class: amsart 2020/05/29 v2.20.6
(c:/texlive/2022/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/2022/texmf-dist/tex/latex/amsmath/amstext.sty (c:/texlive/2022/texmf-dist/tex/latex/amsmath/amsgen.sty)) (c:/texlive/2022/texmf-dist/tex/latex/amsmath/amsbsy.sty) (c:/texlive/2022/texmf-dist/tex/latex/amsmath/amsopn.sty)) (c:/texlive/2022/texmf-dist/tex/latex/amsfonts/umsa.fd) (c:/texlive/2022/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (c:/texlive/2022/texmf-dist/tex/latex/base/inputenc.sty (c:/texlive/2022/texmf-dist/tex/latex/base/latin9.def)) (c:/texlive/2022/texmf-dist/tex/generic/babel/babel.sty (c:/texlive/2022/texmf-dist/tex/generic/babel/txtbabel.def) (c:/texlive/2022/texmf-dist/tex/generic/babel-english/english.ldf)) (c:/texlive/2022/texmf-dist/tex/latex/tools/verbatim.sty) (c:/texlive/2022/texmf-dist/tex/latex/mathtools/mathtools.sty (c:/texlive/2022/texmf-dist/tex/latex/graphics/keyval.sty) (c:/texlive/2022/texmf-dist/tex/latex/tools/calc.sty) (c:/texlive/2022/texmf-dist/tex/latex/mathtools/mhsetup.sty)) (c:/texlive/2022/texmf-dist/tex/latex/amsfonts/amssymb.sty) (c:/texlive/2022/texmf-dist/tex/latex/esint/esint.sty) (c:/texlive/2022/texmf-dist/tex/latex/a4wide/a4wide.sty (c:/texlive/2022/texmf-dist/tex/latex/ntgclass/a4.sty)) (c:/texlive/2022/texmf-dist/tex/latex/hyperref/hyperref.sty (c:/texlive/2022/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty) (c:/texlive/2022/texmf-dist/tex/generic/iftex/iftex.sty) (c:/texlive/2022/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty (c:/texlive/2022/texmf-dist/tex/generic/infwarerr/infwarerr.sty)) (c:/texlive/2022/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty) (c:/texlive/2022/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty) (c:/texlive/2022/texmf-dist/tex/generic/pdfescape/pdfescape.sty) (c:/texlive/2022/texmf-dist/tex/latex/hycolor/hycolor.sty) (c:/texlive/2022/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty) (c:/texlive/2022/texmf-dist/tex/latex/auxhook/auxhook.sty) (c:/texlive/2022/texmf-dist/tex/latex/kvoptions/kvoptions.sty) (c:/texlive/2022/texmf-dist/tex/latex/hyperref/pd1enc.def) (c:/texlive/2022/texmf-dist/tex/generic/intcalc/intcalc.sty) (c:/texlive/2022/texmf-dist/tex/generic/etexcmds/etexcmds.sty) (c:/texlive/2022/texmf-dist/tex/latex/hyperref/puenc.def) (c:/texlive/2022/texmf-dist/tex/latex/url/url.sty) (c:/texlive/2022/texmf-dist/tex/generic/bitset/bitset.sty (c:/texlive/2022/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty)) (c:/texlive/2022/texmf-dist/tex/latex/base/atbegshi-ltx.sty)) (c:/texlive/2022/texmf-dist/tex/latex/hyperref/hpdftex.def (c:/texlive/2022/texmf-dist/tex/latex/base/atveryend-ltx.sty) (c:/texlive/2022/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty (c:/texlive/2022/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty))) (c:/texlive/2022/texmf-dist/tex/latex/breakurl/breakurl.sty (c:/texlive/2022/texmf-dist/tex/latex/xkeyval/xkeyval.sty (c:/texlive/2022/texmf-dist/tex/generic/xkeyval/xkeyval.tex (c:/texlive/2022/texmf-dist/tex/generic/xkeyval/xkvutils.tex))) (c:/texlive/2022/texmf-dist/tex/generic/iftex/ifpdf.sty)

Package breakurl Warning: You are using breakurl while processing via pdflatex.
(breakurl)                \burl will be just a synonym of \url.
(breakurl)                 on input line 48.

) (c:/texlive/2022/texmf-dist/tex/latex/jknapltx/mathrsfs.sty) (c:/texlive/2022/texmf-dist/tex/latex/enumitem/enumitem.sty) (c:/texlive/2022/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def) (./Untitled1.aux) (c:/texlive/2022/texmf-dist/tex/latex/amsfonts/umsa.fd) (c:/texlive/2022/texmf-dist/tex/latex/amsfonts/umsb.fd) (c:/texlive/2022/texmf-dist/tex/latex/esint/uesint.fd) (c:/texlive/2022/texmf-dist/tex/latex/jknapltx/ursfs.fd) (c:/texlive/2022/texmf-dist/tex/latex/graphics/graphicx.sty (c:/texlive/2022/texmf-dist/tex/latex/graphics/graphics.sty (c:/texlive/2022/texmf-dist/tex/latex/graphics/trig.sty) (c:/texlive/2022/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (c:/texlive/2022/texmf-dist/tex/latex/graphics-def/pdftex.def (c:/texlive/2022/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
))) (c:/texlive/2022/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (c:/texlive/2022/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))) (c:/texlive/2022/texmf-dist/tex/latex/graphics/color.sty (c:/texlive/2022/texmf-dist/tex/latex/graphics-cfg/color.cfg)) (c:/texlive/2022/texmf-dist/tex/latex/hyperref/nameref.sty (c:/texlive/2022/texmf-dist/tex/latex/refcount/refcount.sty) (c:/texlive/2022/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty))

d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled1.tex:27: Package amsmath Error: \acute allowed only in math mode.

See the amsmath package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.27  Ces\acute{a}
                  ro mean of the corresponding quantum measure is weak* conv...
[1{c:/texlive/2022/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./Untitled1.aux)

LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.

 )
(see the transcript file for additional information)<c:/texlive/2022/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb><c:/texlive/2022/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb>
Output written on Untitled1.pdf (1 page, 24280 bytes).
SyncTeX written on Untitled1.synctex.gz.

Transcript written on Untitled1.log.
Latexmk: If appropriate, the -f option can be used to get latexmk
  to try to force complete processing.
Latexmk: Getting log file 'Untitled1.log'
Latexmk: Examining 'Untitled1.fls'
PWD line not in UTF-8
Latexmk: Examining 'Untitled1.log'
Latexmk: References changed.
Latexmk: Log file says output to 'Untitled1.pdf'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to 'Untitled1.log' for details
C:\texlive\2022\bin\win32\runscript.tlu:915: command failed with exit code 12:
perl.exe c:\texlive\2022\texmf-dist\scripts\latexmk\latexmk.pl -synctex=1 -interaction=nonstopmode -file-line-error -pdf "-outdir=d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality" "d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled1"

When file name is Untitled 1.tex

Win CP console initial and current in/out Win: (936, 936), (936, 936)
Coding system for system and terminal: 'CP936'
---
Rc files read:
  NONE
Latexmk: This is Latexmk, John Collins, 17 Mar. 2022. Version 4.77, version: 4.77.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
  d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled 1.tex
Rule 'pdflatex': The following rules & subrules became out-of-date:
  pdflatex
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -synctex=1 -interaction=nonstopmode -file-line-error -recorder  "d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled 1.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled 1.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-05-04> (c:/texlive/2022/texmf-dist/tex/latex/amscls/amsart.cls
Document Class: amsart 2020/05/29 v2.20.6
(c:/texlive/2022/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/2022/texmf-dist/tex/latex/amsmath/amstext.sty (c:/texlive/2022/texmf-dist/tex/latex/amsmath/amsgen.sty)) (c:/texlive/2022/texmf-dist/tex/latex/amsmath/amsbsy.sty) (c:/texlive/2022/texmf-dist/tex/latex/amsmath/amsopn.sty)) (c:/texlive/2022/texmf-dist/tex/latex/amsfonts/umsa.fd) (c:/texlive/2022/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (c:/texlive/2022/texmf-dist/tex/latex/base/inputenc.sty (c:/texlive/2022/texmf-dist/tex/latex/base/latin9.def)) (c:/texlive/2022/texmf-dist/tex/generic/babel/babel.sty (c:/texlive/2022/texmf-dist/tex/generic/babel/txtbabel.def) (c:/texlive/2022/texmf-dist/tex/generic/babel-english/english.ldf)) (c:/texlive/2022/texmf-dist/tex/latex/tools/verbatim.sty) (c:/texlive/2022/texmf-dist/tex/latex/mathtools/mathtools.sty (c:/texlive/2022/texmf-dist/tex/latex/graphics/keyval.sty) (c:/texlive/2022/texmf-dist/tex/latex/tools/calc.sty) (c:/texlive/2022/texmf-dist/tex/latex/mathtools/mhsetup.sty)) (c:/texlive/2022/texmf-dist/tex/latex/amsfonts/amssymb.sty) (c:/texlive/2022/texmf-dist/tex/latex/esint/esint.sty) (c:/texlive/2022/texmf-dist/tex/latex/a4wide/a4wide.sty (c:/texlive/2022/texmf-dist/tex/latex/ntgclass/a4.sty)) (c:/texlive/2022/texmf-dist/tex/latex/hyperref/hyperref.sty (c:/texlive/2022/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty) (c:/texlive/2022/texmf-dist/tex/generic/iftex/iftex.sty) (c:/texlive/2022/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty (c:/texlive/2022/texmf-dist/tex/generic/infwarerr/infwarerr.sty)) (c:/texlive/2022/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty) (c:/texlive/2022/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty) (c:/texlive/2022/texmf-dist/tex/generic/pdfescape/pdfescape.sty) (c:/texlive/2022/texmf-dist/tex/latex/hycolor/hycolor.sty) (c:/texlive/2022/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty) (c:/texlive/2022/texmf-dist/tex/latex/auxhook/auxhook.sty) (c:/texlive/2022/texmf-dist/tex/latex/kvoptions/kvoptions.sty) (c:/texlive/2022/texmf-dist/tex/latex/hyperref/pd1enc.def) (c:/texlive/2022/texmf-dist/tex/generic/intcalc/intcalc.sty) (c:/texlive/2022/texmf-dist/tex/generic/etexcmds/etexcmds.sty) (c:/texlive/2022/texmf-dist/tex/latex/hyperref/puenc.def) (c:/texlive/2022/texmf-dist/tex/latex/url/url.sty) (c:/texlive/2022/texmf-dist/tex/generic/bitset/bitset.sty (c:/texlive/2022/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty)) (c:/texlive/2022/texmf-dist/tex/latex/base/atbegshi-ltx.sty)) (c:/texlive/2022/texmf-dist/tex/latex/hyperref/hpdftex.def (c:/texlive/2022/texmf-dist/tex/latex/base/atveryend-ltx.sty) (c:/texlive/2022/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty (c:/texlive/2022/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty))) (c:/texlive/2022/texmf-dist/tex/latex/breakurl/breakurl.sty (c:/texlive/2022/texmf-dist/tex/latex/xkeyval/xkeyval.sty (c:/texlive/2022/texmf-dist/tex/generic/xkeyval/xkeyval.tex (c:/texlive/2022/texmf-dist/tex/generic/xkeyval/xkvutils.tex))) (c:/texlive/2022/texmf-dist/tex/generic/iftex/ifpdf.sty)

Package breakurl Warning: You are using breakurl while processing via pdflatex.
(breakurl)                \burl will be just a synonym of \url.
(breakurl)                 on input line 48.

) (c:/texlive/2022/texmf-dist/tex/latex/jknapltx/mathrsfs.sty) (c:/texlive/2022/texmf-dist/tex/latex/enumitem/enumitem.sty) (c:/texlive/2022/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def) (./Untitled 1.aux) (c:/texlive/2022/texmf-dist/tex/latex/amsfonts/umsa.fd) (c:/texlive/2022/texmf-dist/tex/latex/amsfonts/umsb.fd) (c:/texlive/2022/texmf-dist/tex/latex/esint/uesint.fd) (c:/texlive/2022/texmf-dist/tex/latex/jknapltx/ursfs.fd) (c:/texlive/2022/texmf-dist/tex/latex/graphics/graphicx.sty (c:/texlive/2022/texmf-dist/tex/latex/graphics/graphics.sty (c:/texlive/2022/texmf-dist/tex/latex/graphics/trig.sty) (c:/texlive/2022/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (c:/texlive/2022/texmf-dist/tex/latex/graphics-def/pdftex.def (c:/texlive/2022/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
))) (c:/texlive/2022/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (c:/texlive/2022/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))) (c:/texlive/2022/texmf-dist/tex/latex/graphics/color.sty (c:/texlive/2022/texmf-dist/tex/latex/graphics-cfg/color.cfg)) (c:/texlive/2022/texmf-dist/tex/latex/hyperref/nameref.sty (c:/texlive/2022/texmf-dist/tex/latex/refcount/refcount.sty) (c:/texlive/2022/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty))

d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled 1.tex:27: Package amsmath Error: \acute allowed only in math mode.

See the amsmath package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.27  Ces\acute{a}
                  ro mean of the corresponding quantum measure is weak* conv...
[1{c:/texlive/2022/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./Untitled 1.aux)

LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.

 )
(see the transcript file for additional information)<c:/texlive/2022/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb><c:/texlive/2022/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb>
Output written on "Untitled 1.pdf" (1 page, 24280 bytes).SyncTeX written on "Untitled 1.synctex.gz"

Transcript written on "Untitled 1.log".
Latexmk: If appropriate, the -f option can be used to get latexmk
  to try to force complete processing.
Latexmk: Getting log file 'Untitled 1.log'
Latexmk: Examining 'Untitled 1.fls'
PWD line not in UTF-8
Latexmk: Examining 'Untitled 1.log'
Latexmk: References changed.
Latexmk: Log file says output to 'Untitled 1.pdf'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to 'Untitled 1.log' for details
C:\texlive\2022\bin\win32\runscript.tlu:915: command failed with exit code 12:
perl.exe c:\texlive\2022\texmf-dist\scripts\latexmk\latexmk.pl -synctex=1 -interaction=nonstopmode -file-line-error -pdf "-outdir=d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality" "d:/OneDrive - stu.hit.edu.cn/Math Ph.D Article/Little Results/Log Sobolev Inequality/Zn Log Sobolev Inequality/Untitled 1"

It seems only file name changed in both log files and in some places the name with space are quoted.

@jlelong
Copy link
Collaborator

jlelong commented May 28, 2022

I have found the difference. Compare the two outputs

Output written on Untitled1.pdf (1 page, 24280 bytes).
SyncTeX written on Untitled1.synctex.gz.

and

Output written on "Untitled 1.pdf" (1 page, 24280 bytes).SyncTeX written on "Untitled 1.synctex.gz"

Notice that there is no line break after Output written on "Untitled 1.pdf" (1 page, 24280 bytes) in the second case. This breaks our parser which expects a line break.

const latexPattern = /^Output\swritten\son\s(.*)\s\(.*\)\.$/gm

Yet, I am puzzled by all this because with exactly the same versions of latexmk and pdflatex as yours, I have the line break.

@jlelong

This comment was marked as off-topic.

@Sakurajyan
Copy link
Author

Sakurajyan commented May 28, 2022

I have found the difference. Compare the two outputs

Output written on Untitled1.pdf (1 page, 24280 bytes).
SyncTeX written on Untitled1.synctex.gz.

and

Output written on "Untitled 1.pdf" (1 page, 24280 bytes).SyncTeX written on "Untitled 1.synctex.gz"

Notice that there is no line break after Output written on "Untitled 1.pdf" (1 page, 24280 bytes) in the second case. This breaks our parser which expects a line break.

const latexPattern = /^Output\swritten\son\s(.*)\s\(.*\)\.$/gm

Yet, I am puzzled by all this because with exactly the same versions of latexmk and pdflatex as yours, I have the line break.

The same problem occurs in another PC of my friend.

@jlelong

This comment was marked as off-topic.

@Sakurajyan

This comment was marked as off-topic.

@jlelong
Copy link
Collaborator

jlelong commented May 29, 2022

The log parser is a little fragile so before tweaking it I would like to understand how this is happening.
In particular, I am really puzzled that there is no space right after the end of the first sentence in

Output written on "Untitled 1.pdf" (1 page, 24280 bytes).SyncTeX written on "Untitled 1.synctex.gz"

@Sakurajyan
Copy link
Author

The log parser is a little fragile so before tweaking it I would like to understand how this is happening. In particular, I am really puzzled that there is no space right after the end of the first sentence in

Output written on "Untitled 1.pdf" (1 page, 24280 bytes).SyncTeX written on "Untitled 1.synctex.gz"

I tried Miktex the problem disappeared.

@jlelong
Copy link
Collaborator

jlelong commented May 30, 2022

@James-Yu Can you reproduce the issue using TeX Live on Windows?

@tamuratak
Copy link
Contributor

We can see the cause of the difference, "SyncTeX and "\nSyncTeX:

#ifdef W32UPTEXSYNCTEX
 	                        {
 	                        char *stmp = chgto_oem(tmp);
 	                        printf((synctex_ctxt.flags.quoted ? "SyncTeX written on \"%s\"\n" : "\nSyncTeX written on %s.\n"),
 	                               stmp);
 	                        free(stmp);
 	                        }
#else

@jlelong
Copy link
Collaborator

jlelong commented May 30, 2022

@tamuratak Thanks for the reference. This is exactly what I was looking for. Yet, these lines have not been changed for 5 years. I do not understand why we have not faced this issue earlier.

I am not sure this is worth reporting an issue at tug.org by writing to the tex-k list.

@jlelong jlelong added external issue Issue with something else than LaTeX-Wokshop and removed need more info More information needed to identify the issue can't reproduce Issue cannot be reproduced labels May 30, 2022
@tamuratak
Copy link
Contributor

@jlelong As I said before, you can try using a LaTeX log parser implemented with PEG.js

You can execute ./bin/luparse error.log.

Since I am not interested in adding tweaks to the parser on my side, it would be better to extract the parser to a new repository if you are interested.

Notice that the PEG.js project is not active. It might not be a good idea to start developing a new parser with PEG.js.

@jlelong jlelong self-assigned this May 31, 2022
jlelong added a commit to jlelong/LaTeX-Workshop that referenced this issue May 31, 2022
@jlelong
Copy link
Collaborator

jlelong commented May 31, 2022

All in all, I am not interested in developing a new warning / error parser using peg.js.

I have posted to the tex-k@tug.org mailing list. Let us see if they are willing to add the missing newline.

@tamuratak
Copy link
Contributor

I see.

@jlelong
Copy link
Collaborator

jlelong commented Jun 1, 2022

It has just been fixed in TeX-Live/texlive-source@244cf99

So, I am closing the issue as everything is expected to just work fine with the next release of TeX Live.

@jlelong jlelong closed this as completed Jun 1, 2022
Repository owner locked as resolved and limited conversation to collaborators Jun 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
external issue Issue with something else than LaTeX-Wokshop
Projects
None yet
Development

No branches or pull requests

3 participants