tecosaur / LaTeX-Utilities

An add-on to LaTeX Workshop that provides some features that go beyond the bare essentials
MIT License
474 stars 28 forks source link

Formatting failed. Please refer to LaTeX Workshop Output for details. #357

Closed carveybunt closed 2 years ago

carveybunt commented 2 years ago

Describe the bug

The Live Snippets can't work and I got the error: Formatting failed. Please refer to LaTeX Workshop Output for details. When I build the Latex project after I set "latex-utilities.liveReformat.enabled": true. But I set "latex-utilities.liveReformat.enabled": false, build was success.

To Reproduce

Steps to reproduce the behaviour:

  1. Setting "latex-utilities.liveReformat.enabled": true.
  2. Build the Latex project.
  3. See an error

Expected behaviour

Set "latex-utilities.liveReformat.enabled": true and make Live Snippets work and build success.

Screenshots

plugins settings: 截屏2022-08-18 11 51 15 error for build: 截屏2022-08-18 11 52 00 latex-utilities not work: 截屏2022-08-18 11 52 38

Desktop

Additional context

example code:

\documentclass[dvisvgm]{standalone} 
\usepackage{tikz } 

\begin{document}
\begin{tikzpicture}[> = latex, scale = .5]
    \draw [fill=blue](-4,0)node[above]{$C$}--(0,3)node[right]{$B$}--(4,0)node[above]{$A$}--(0,-3)node[right]{$D$}--(-4,0); 
    \draw[->] (-6,0)--(6,0)node[right]{$x$};
    \draw[->] (0,-6)--(0,6)node[right]{$y$};
    \node at (-.4,-.4){$O$};
    \foreach \x in {1,2,...,5}
    {
        \draw (0,\x)node[left]{$\x$}--(.1,\x); 
        \draw (\x,0)node[below]{$\x$}--(\x,.1);
    }

\end{tikzpicture}

\end{document}

My vscode settings:

  "latex-workshop.latex.tools": [
    {
      "name": "xelatex",
      "command": "xelatex", 
      "args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "-no-pdf",
        "%DOCFILE%"
      ]
    },
    {
      "name": "dvisvgm",
      "command": "dvisvgm", 
      "args": [
        // "--synctex=1",
        "--zoom=1",
        "--exact",
        // "--font-format=woff",
        "%DOCFILE%.xdv"
      ]
    }
  ],
  "latex-workshop.latex.recipes": [
    {
      "name": "xdv->svg",
      "tools": ["xelatex", "dvisvgm"]
    }
  ]
leoleoasd commented 2 years ago

Hi can you attach the screenshot for the error and the log panel?

carveybunt commented 2 years ago

Sorry, I forgot then, I updated.

leoleoasd commented 2 years ago

Your error isn't about live snippet. You should submit your error to https://github.com/James-Yu/LaTeX-Workshop/.