James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LaTeX formatter is set to "none" by `formatting.latex`.

DanielRunningen opened this issue · comments

Please fill the following fields with a star (*) and provide as much related information as possible.

Pre-checks*

Please change the following [ ] to [x] for confirmation.

  • The issue has not been reported in this repository.
  • The issue remains after disabling all other extensions and restarting Visual Studio Code.
  • The FAQ cannot address the issue.
  • The issue is not related to compiling a document, or the document can be successfully compiled in the OS terminal but not in Visual Studio Code with this extension.

Environment*

Please write exact version numbers instead of descriptors such as latest.

  • Operating System: Ubuntu 24.04
  • Visual Studio Code Version: 1.93.0
  • LaTeX Workshop Version: 10.4.1
  • TeX Distribution Version: TeX 3.141592653 (TeX Live 2023/Debian)

Please list the environment and version number if you are using VSCodium, Snap or Flatpack versions of Visual Studio Code, and/or Visual Studio Code Remote Containers/SSH/WSL.

  • N/A

The Issue*

Please briefly describe the issue you come across.

  • An error continuously pops up with each compile that reads "LaTeX formatter is set to "none" by formatting.latex." It has no bearing on the compilation itself, but it always appears.

Reproduction Steps

Please list out the steps to reproduce your bug. Include relevant environmental variables or any other configuration.

  1. Disable all other plugins and restart VS Code.
  2. Create a simple .tex document, like the following:
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
This is a test.
\end{document}
  1. Open in VS Code.
  2. Save/compile.

Expected Behavior

What were you expecting to see? Include any relevant examples or documentation links.

  • No errors.

Logs

LaTeX Workshop Output*

Please paste the whole log messages below, not parts of ones. The log should start with New log placeholder %WS1% registered. (I didn't find this?)

[20:19:23.839][Extension] Initializing LaTeX Workshop.
[20:19:23.915][Build][Recipe] Set $LATEXWORKSHOP_DOCKER_LATEX: ""
[20:19:23.915][Build][Recipe] Set $LATEXWORKSHOP_DOCKER_PATH: "docker"
[20:19:23.952][Server] Creating LaTeX Workshop http and websocket server.
[20:19:24.021][Format][Bib] Bibtex format config: {"tab":"   ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[20:19:24.067][Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":46763} .
[20:19:24.106][Extension] Extension root: /home/dan/.vscode/extensions/james-yu.latex-workshop-10.4.1
[20:19:24.106][Extension] $PATH: [REDACTED]
[20:19:24.106][Extension] $SHELL: /bin/bash
[20:19:24.107][Extension] $LANG: en_US.UTF-8
[20:19:24.108][Extension] $LC_ALL: undefined
[20:19:24.108][Extension] process.platform: linux
[20:19:24.108][Extension] process.arch: x64
[20:19:24.109][Extension] vscode.env.appName: Visual Studio Code
[20:19:24.109][Extension] vscode.env.remoteName: undefined
[20:19:24.109][Extension] vscode.env.uiKind: 1
[20:19:24.111][Config] latex-workshop.latex.tools: [{"name":"latexmk","command":"latexmk","args":["-shell-escape","-synctex=1","-interaction=nonstopmode","-file-line-error","-pdf","-outdir=%OUTDIR%","%DOC%"],"env":{}}] .
[20:19:24.137][Config] latex-workshop.linting.chktex.enabled: true .
[20:19:24.138][Config] latex-workshop.linting.chktex.exec.args: ["-wall","-n22","-n30","-e16","-q","-n1","-n46","-n8","-n36","-n37","-n26"] .
[20:19:24.168][Config] latex-workshop.intellisense.package.dirs: ["/usr/share/texlive/texmf-dist/tex/latex"] .
[20:19:24.218][Config] latex-workshop.bibtex-format.tab: "3 spaces" .
[20:19:24.229][Extension] Trigger characters for intellisense of LaTeX documents: ["\\",",","{","}"]
[20:19:24.232][Root] Current workspace folders: undefined
[20:19:24.232][Root] Try finding root from magic comment.
[20:19:24.233][Extension] LaTeX Workshop initialized.
[20:19:24.233][Root] Try finding root from active editor.
[20:19:24.234][Root] Found root file from active editor: /home/dan/Desktop/temp/temp.tex
[20:19:24.234][Root] Root file changed: from /home/dan/Desktop/temp/temp.tex to /home/dan/Desktop/temp/temp.tex, langID latex . Refresh dependencies
[20:19:24.234][Event] ROOT_FILE_CHANGED: "/home/dan/Desktop/temp/temp.tex"
[20:19:24.235][Cacher][Watcher] Reset.
[20:19:24.235][Cacher][Watcher] Reset.
[20:19:24.239][Cacher] Adding /home/dan/Desktop/temp/temp.tex .
[20:19:24.241][Cacher][Watcher] Watched file:///home/dan/Desktop/temp/temp.tex with a new .* watcher on /home/dan/Desktop/temp .
[20:19:24.241][Event] FILE_WATCHED: "file:///home/dan/Desktop/temp/temp.tex"
[20:19:24.243][Cacher] Caching /home/dan/Desktop/temp/temp.tex .
[20:19:24.243][Event] ROOT_FILE_SEARCHED
[20:19:24.244][Linter] ChkTeX lints root /home/dan/Desktop/temp/temp.tex .
[20:19:24.244][Linter][ChkTeX] Linter for ChkTeX command The command is chktex:["-wall","-n22","-n30","-e16","-q","-n1","-n46","-n8","-n36","-n37","-n26","-f%f:%l:%c:%d:%k:%n:%m\n","/home/dan/Desktop/temp/temp.tex"].
[20:19:24.285][Server] validOrigin is http://127.0.0.1:46763
[20:19:24.579][Linter] Linter for root successfully finished in 0s 326ms
[20:19:24.580][Linter][ChkTeX] No .chktexrc file is found to determine TabSize.
[20:19:24.580][Linter][ChkTeX] Logged 0 messages.
[20:19:24.607][Cacher] Updated inputs of /home/dan/Desktop/temp/temp.tex .
[20:19:24.608][Cacher] Parse LaTeX AST: /home/dan/Desktop/temp/temp.tex .
[20:19:24.620][Cacher] Parsed LaTeX AST in 11.79 ms: /home/dan/Desktop/temp/temp.tex .
[20:19:24.621][File] Calling kpsewhich to resolve article.cls .
[20:19:24.648][File] kpsewhich returned with '/usr/share/texlive/texmf-dist/tex/latex/base/article.cls'.
[20:19:24.650][Cacher] Updated elements in 30.07 ms: /home/dan/Desktop/temp/temp.tex .
[20:19:24.651][Event] FILE_PARSED: "/home/dan/Desktop/temp/temp.tex"
[20:19:24.653][Structure] Structure force updated with 0 root sections for /home/dan/Desktop/temp/temp.tex .
[20:19:24.654][Event] STRUCTURE_UPDATED
[20:19:24.660][Cacher] Parsing .fls /home/dan/Desktop/temp/temp.fls .
[20:19:24.675][Cacher] Found .aux /home/dan/Desktop/temp/temp.aux from .fls /home/dan/Desktop/temp/temp.fls , parsing.
[20:19:24.686][Cacher] Parsed .aux /home/dan/Desktop/temp/temp.aux .
[20:19:24.686][Cacher] Parsed .fls /home/dan/Desktop/temp/temp.fls .
[20:19:51.513][Commander] SHOWLOG command invoked: default
[20:19:51.546][Event] STRUCTURE_UPDATED
[20:20:09.235][Event] STRUCTURE_UPDATED
[20:20:11.374][Format][LaTeX] LaTeX formatter is set to "none" by `formatting.latex`.
[20:20:11.416][Extension] onDidSaveTextDocument triggered: file:///home/dan/Desktop/temp/temp.tex
[20:20:11.417][Linter] ChkTeX lints root /home/dan/Desktop/temp/temp.tex .
[20:20:11.418][Linter][ChkTeX] Linter for ChkTeX command The command is chktex:["-wall","-n22","-n30","-e16","-q","-n1","-n46","-n8","-n36","-n37","-n26","-f%f:%l:%c:%d:%k:%n:%m\n","/home/dan/Desktop/temp/temp.tex"].
[20:20:11.480][Cacher][Watcher] "change" emitted on file:///home/dan/Desktop/temp/temp.tex.
[20:20:11.482][Cacher] Caching /home/dan/Desktop/temp/temp.tex .
[20:20:11.483][Build] Auto build started detecting the change of a file: /home/dan/Desktop/temp/temp.tex .
[20:20:11.483][Event] AUTO_BUILD_INITIATED: {"type":"onFileChange","file":"/home/dan/Desktop/temp/temp.tex"}
[20:20:11.483][Build] The document of the active editor: file:///home/dan/Desktop/temp/temp.tex
[20:20:11.483][Build] The languageId of the document: latex
[20:20:11.483][Build] Building root file: /home/dan/Desktop/temp/temp.tex
[20:20:11.483][Build][Recipe] Build root file /home/dan/Desktop/temp/temp.tex
[20:20:11.484][Event] FILE_CHANGED: "file:///home/dan/Desktop/temp/temp.tex"
[20:20:11.484][Cacher][Watcher] "change" emitted on file:///home/dan/Desktop/temp/temp.tex.
[20:20:11.486][Cacher] Caching /home/dan/Desktop/temp/temp.tex .
[20:20:11.486][Build] Auto build started detecting the change of a file: /home/dan/Desktop/temp/temp.tex .
[20:20:11.486][Event] AUTO_BUILD_INITIATED: {"type":"onFileChange","file":"/home/dan/Desktop/temp/temp.tex"}
[20:20:11.486][Build] Autobuild temporarily disabled.
[20:20:11.486][Event] FILE_CHANGED: "file:///home/dan/Desktop/temp/temp.tex"
[20:20:11.488][Cacher] Updated inputs of /home/dan/Desktop/temp/temp.tex .
[20:20:11.489][Cacher] Parse LaTeX AST: /home/dan/Desktop/temp/temp.tex .
[20:20:11.490][Cacher] Updated inputs of /home/dan/Desktop/temp/temp.tex .
[20:20:11.490][Cacher] Parse LaTeX AST: /home/dan/Desktop/temp/temp.tex .
[20:20:11.492][Cacher] Parsed LaTeX AST in 2.82 ms: /home/dan/Desktop/temp/temp.tex .
[20:20:11.493][File] kpsewhich cache hit on article.cls: /usr/share/texlive/texmf-dist/tex/latex/base/article.cls .
[20:20:11.494][Cacher] Updated elements in 1.47 ms: /home/dan/Desktop/temp/temp.tex .
[20:20:11.494][Event] FILE_PARSED: "/home/dan/Desktop/temp/temp.tex"
[20:20:11.495][Cacher] Parsed LaTeX AST in 4.39 ms: /home/dan/Desktop/temp/temp.tex .
[20:20:11.495][File] kpsewhich cache hit on article.cls: /usr/share/texlive/texmf-dist/tex/latex/base/article.cls .
[20:20:11.496][Cacher] Updated elements in 0.82 ms: /home/dan/Desktop/temp/temp.tex .
[20:20:11.496][Event] FILE_PARSED: "/home/dan/Desktop/temp/temp.tex"
[20:20:11.497][Structure] Structure force updated with 0 root sections for /home/dan/Desktop/temp/temp.tex .
[20:20:11.497][Event] STRUCTURE_UPDATED
[20:20:11.506][Build][Recipe] Preparing to run recipe: latexmk.
[20:20:11.507][Build][Recipe] Prepared 1 tools.
[20:20:11.521][Build][Recipe] outDir: /home/dan/Desktop/temp .
[20:20:11.523][Build] Recipe step 1 The command is latexmk:["-shell-escape","-synctex=1","-interaction=nonstopmode","-file-line-error","-pdf","-outdir=/home/dan/Desktop/temp","/home/dan/Desktop/temp/temp"].
[20:20:11.523][Build] env: {}
[20:20:11.523][Build] root: /home/dan/Desktop/temp/temp.tex
[20:20:11.524][Build] cwd: /home/dan/Desktop/temp
[20:20:11.532][Build] LaTeX build process spawned with PID 19438.
[20:20:11.633][Linter] Linter for root successfully finished in 0s 208ms
[20:20:11.634][Linter][ChkTeX] No .chktexrc file is found to determine TabSize.
[20:20:11.635][Linter][ChkTeX] Logged 0 messages.
[20:20:11.649][Build] Finished a step in recipe with PID 19438.
[20:20:11.650][Build] Successfully built /home/dan/Desktop/temp/temp.tex .
[20:20:11.651][Event] BUILD_DONE
[20:22:11.702][Commander] SHOWLOG command invoked: compiler
[20:22:11.732][Event] STRUCTURE_UPDATED
[20:22:15.689][Commander] SHOWLOG command invoked: default
[20:22:15.715][Event] STRUCTURE_UPDATED

Developer Tools Console

Please paste the whole log messages below, not parts of ones. This console logs can sometimes be very important in many cases. To access the log, click Help -> Toggle Developer Tools -> Console.

Unsure how to copy this for you...

Anything Else?

Add any other context about the problem below.

  • Nope, the error is just annoying and I would like it to go away. Everything else seems to work fine, so I don't intend to install anything else.

You can set a formatter, or disable formatting on save.


edit: if you have that config set. If not, that can be a bug.

For anyone else that gets here, you can disable this for a single language apparently. Link