You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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]
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
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]
[15:39:07] Initializing LaTeX Workshop.
[15:39:07] Extension root: c:\Users\HP\.vscode\extensions\james-yu.latex-workshop-8.22.0
[15:39:07] $PATH: D:\ImageMagick;C:\Program Files\Python\Python36\Scripts\;C:\Program Files\Python\Python36\;C:\Program Files\Python\Python39;C:\Program Files\Python\Python39\Scripts;C:\Users\HP\AppData\Roaming\Python\Python39\Scripts;D:\Neovim\bin;C:\Program Files\Java\jdk-16.0.1\bin;D:\Maven\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\mingw\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\windows\System32\Wbem;C:\windows\system32;C:\Program Files\nodejs\;D:\Pandoc\;D:\Strawberry\c\bin;D:\Strawberry\perl\site\bin;D:\Strawberry\perl\bin;C:\Users\HP\.cargo\bin;C:\Users\HP\AppData\Local\ActiveState\StateTool\release;C:\Users\HP\AppData\Local\activestate\cache\bin;C:\Users\HP\AppData\Local\Microsoft\WindowsApps;C:\Users\HP\AppData\Local\Programs\Microsoft VS Code\bin;D:\MikTex\miktex\bin\x64\;C:\Users\HP\AppData\Roaming\npm
[15:39:07] $SHELL: undefined
[15:39:07] vscode.env.appName: Visual Studio Code
[15:39:07] vscode.env.remoteName: undefined
[15:39:07] vscode.env.uiKind: 1
[15:39:07] latex-workshop.bind.enter.key: true
[15:39:07] latex-workshop.docker.enabled: false
[15:39:07] latex-workshop.docker.image.latex: ""
[15:39:07] latex-workshop.intellisense.package.enabled: true
[15:39:07] latex-workshop.intellisense.update.aggressive.enabled: false
[15:39:07] latex-workshop.intellisense.update.delay: 1000
[15:39:07] latex-workshop.latex.autoBuild.run: "onSave"
[15:39:07] latex-workshop.latex.outDir: "%DIR%"
[15:39:07] latex-workshop.latex.recipes: [
{
"name": "latexmk 🔃",
"tools": [
"latexmk"
]
},
... THIS IS DEFAULT, TAKING TOO MANY LINES SO REMOVED IT ...
]
[15:39:07] latex-workshop.viewer.pdf.internal.keyboardEvent: "auto"
[15:39:07] Creating a new file watcher.
[15:39:07] watcherOptions: {"useFsEvents":false,"usePolling":false,"interval":300,"binaryInterval":1000,"awaitWriteFinish":{"stabilityThreshold":250}}
[15:39:07] Creating PDF file watcher.
[15:39:07] watcherOptions: {"useFsEvents":false,"usePolling":false,"interval":300,"binaryInterval":1000,"awaitWriteFinish":{}}
[15:39:07] Creating Bib file watcher.
[15:39:07] watcherOptions: {"useFsEvents":false,"usePolling":false,"interval":300,"binaryInterval":1000,"awaitWriteFinish":{"stabilityThreshold":250}}
[15:39:07] Set $LATEXWORKSHOP_DOCKER_LATEX: ""
[15:39:08] pdflatex is provided by MiKTeX
[15:39:08] [Server] Creating LaTeX Workshop http and websocket server.
[15:39:08] Bibtex format config: {"tab":" ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[15:39:08] LaTeX Workshop initialized.
[15:39:08] Bibtex format config: {"tab":" ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[15:39:08] Trigger characters for intellisense of LaTeX documents: ["\\",",","{"]
[15:39:08] Bibtex format config: {"tab":" ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[15:39:08] Current workspace folders: ["file:///f:/VS Code/tex Work"]
[15:39:08] Current workspaceRootDir: file:///f:/VS Code/tex Work
[15:39:08] Found root file from active editor: f:\VS Code\tex Work\sample.tex
[15:39:08] Root file changed: from undefined to f:\VS Code\tex Work\sample.tex
[15:39:08] Start to find all dependencies.
[15:39:08] Root file languageId: latex
[15:39:08] [Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":51204}
[15:39:08] Reset file watcher.
[15:39:08] Parsing a file and its subfiles: f:\VS Code\tex Work\sample.tex
[15:39:08] Parse fls file.
[15:39:08] Cannot find fls file: f:\VS Code\tex Work\sample.fls
[15:39:08] Added to file watcher: f:\VS Code\tex Work\sample.tex
[15:39:08] Snippet data loaded.
[15:39:08] Checking for duplicate labels: f:\VS Code\tex Work\sample.tex.
[15:39:10] Manager.fileWatcher.getWatched: {"f:\\VS Code\\tex Work":["sample.tex"]}
[15:39:10] Manager.filesWatched: ["f:\\VS Code\\tex Work\\sample.tex"]
[15:39:10] BibWatcher.bibWatcher.getWatched: {}
[15:39:10] BibWatcher.bibsWatched: []
[15:39:10] PdfWatcher.pdfWatcher.getWatched: {}
[15:39:10] PdfWatcher.pdfsWatched: []
[15:42:27] Current workspace folders: ["file:///f:/VS Code/tex Work"]
[15:42:27] Current workspaceRootDir: file:///f:/VS Code/tex Work
[15:42:27] Found root file from active editor: f:\VS Code\tex Work\sample.tex
[15:42:27] Keep using the same root file: f:\VS Code\tex Work\sample.tex
------------- I SAVED THE FILE (Means it should now execute the command) ---------------
[15:42:28] onDidSaveTextDocument triggered: file:///f:/VS Code/tex Work/sample.tex
[15:42:28] Auto build started on saving file: f:\VS Code\tex Work\sample.tex
[15:42:28] Auto build started detecting the change of a file: f:\VS Code\tex Work\sample.tex
[15:42:28] BUILD command invoked.
[15:42:28] The document of the active editor: file:///f%3A/VS%20Code/tex%20Work/sample.tex
[15:42:28] The languageId of the document: latex
[15:42:28] Building root file: f:\VS Code\tex Work\sample.tex
[15:42:28] Build root file f:\VS Code\tex Work\sample.tex
[15:42:28] outDir: f:/VS Code/tex Work
[15:42:28] Found TeX program by magic comment: pdflatex
[15:42:28] Found TeX options by magic comment: -shell-escape "%DOC%"
[15:42:28] Recipe step 1: pdflatex, --max-print-line=10000,-shell-escape "f:/VS Code/tex Work/sample"
[15:42:28] Recipe step env: undefined
[15:42:28] cwd: f:\VS Code\tex Work
[15:42:28] LaTeX build process spawned. PID: 10036.
[15:42:29] File watcher - file changed: f:\VS Code\tex Work\sample.tex
[15:42:29] Parsing a file and its subfiles: f:\VS Code\tex Work\sample.tex
[15:42:29] Checking for duplicate labels: f:\VS Code\tex Work\sample.tex.
[15:42:29] Manager.fileWatcher.getWatched: {"f:\\VS Code\\tex Work":["sample.tex"]}
[15:42:29] Manager.filesWatched: ["f:\\VS Code\\tex Work\\sample.tex"]
Developer Tools Console [Required]
To access the log, click 'help' -> 'Toggle Developer Tools' -> 'Console'. Paste anything suspicious.
What should I paste there?
Screenshots
If applicable, add screenshots to help explain your problem.
The extension is stuck on building:
Desktop [Required]
Please write exact version numbers. Please don't write latest instead of exact numbers.
OS: Windows 10
VS Code version: Latest (1.62.3)
Extension version: Latest
TeX distribution version: MiKTeX
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
Additional context
I want to render the .tex files as .png The following command do it very well with GhostScript and ImageMagick installed.
pdflatex -shell-escape file.tex
However, when I try do the same with Magic comments the build get's stuck. But when I remove the % !TEX options = -shell-escape "%DOC%" comment and reload vs code the pdf is generated using pdflatex. If I am doing something wrong please help me. Sorry and Thank you.
external issueIssue with something else than LaTeX-Wokshop
2 participants
Converted from issue
This discussion was converted from issue #2997 on February 20, 2022 22:16.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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
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]
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
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]
Developer Tools Console [Required]
Screenshots
If applicable, add screenshots to help explain your problem.
The extension is stuck on building:
Desktop [Required]
Please write exact version numbers. Please don't write
latest
instead of exact numbers.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
Additional context
I want to render the .tex files as .png The following command do it very well with GhostScript and ImageMagick installed.
However, when I try do the same with Magic comments the build get's stuck. But when I remove the
% !TEX options = -shell-escape "%DOC%"
comment and reload vs code the pdf is generated using pdflatex. If I am doing something wrong please help me. Sorry and Thank you.adhtri
Beta Was this translation helpful? Give feedback.
All reactions