Replies: 1 comment
-
Will think of it twice. But please don't expect that though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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]
I use a folder to write multiple documents using a .cls file present in the base workspace folder. On the compilation if I setup the following code in settings.json file I can compile the latex file with no problem
"latex-workshop.latex.tools": [{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
],
"env": {"TEXINPUTS": "::/full/path/to/worspacefolder}
}]
Changing to a more generic and adaptable code
"latex-workshop.latex.tools": [{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
],
"env": {"TEXINPUTS": "::${workspaceFolder"}
}]
The compilation is not done.
Expected behavior
The environment variable should be set with path for VSCODE workspace folder, with similar compilation result when setting env variable with full path.
Logs [Required]
LaTeX Workshop Output [Required]
[24:18:28] BUILD command invoked.
[24:18:28] The document of the active editor: file:///home/pasousa/projects/zettelkasten/ml/MachineLearning_A.tex
[24:18:28] The languageId of the document: latex
[24:18:28] Current workspace folders: ["file:///home/pasousa/projects/zettelkasten"]
[24:18:28] Found root file from active editor: /home/pasousa/projects/zettelkasten/ml/MachineLearning_A.tex
[24:18:28] Keep using the same root file: /home/pasousa/projects/zettelkasten/ml/MachineLearning_A.tex
[24:18:28] Building root file: /home/pasousa/projects/zettelkasten/ml/MachineLearning_A.tex
[24:18:28] Build root file /home/pasousa/projects/zettelkasten/ml/MachineLearning_A.tex
[24:18:28] outDir: /home/pasousa/projects/zettelkasten/ml
[24:18:28] Recipe step 1: xelatex
[24:18:28] Recipe step 1 args: ["-synctex=1","-interaction=nonstopmode","-file-line-error","MachineLearning_A"]
[24:18:28] Recipe step env: {"TEXINPUTS":"::${workspaceFolder"}
[24:18:28] cwd: /home/pasousa/projects/zettelkasten/ml
[24:18:28] LaTeX build process spawned. PID: 5333.
[24:18:28] Recipe returns with error: 1/null. PID: 5333. message: warning: kpathsea: $TEXMFDOTDIR:$TEXMF/tex/{xelatex,latex,xetex,generic,}//::${workspaceFolder: No matching } for ${.
.
[24:18:28] The environment variable $PATH: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
[24:18:28] The environment variable $Path: undefined
[24:18:28] The environment variable $SHELL: /bin/bash
[24:18:28] Cleaning auxiliary files and retrying build after toolchain error.
[24:18:28] 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","*.vrb"],"outdir":"/home/pasousa/projects/zettelkasten/ml"}
[24:18:28] Cleaning file: /home/pasousa/projects/zettelkasten/ml/MachineLearning_A.aux
[24:18:28] Cleaning file: /home/pasousa/projects/zettelkasten/ml/MachineLearning_A.log
[24:18:28] Recipe step 1: xelatex
[24:18:28] Recipe step 1 args: ["-synctex=1","-interaction=nonstopmode","-file-line-error","MachineLearning_A"]
[24:18:28] Recipe step env: {"TEXINPUTS":"::${workspaceFolder"}
[24:18:28] cwd: /home/pasousa/projects/zettelkasten/ml
[24:18:28] LaTeX build process spawned. PID: 5335.
[24:18:28] Recipe returns with error: 1/null. PID: 5335. message: warning: kpathsea: $TEXMFDOTDIR:$TEXMF/tex/{xelatex,latex,xetex,generic,}//::${workspaceFolder: No matching } for ${.
.
[24:18:28] The environment variable $PATH: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
[24:18:28] The environment variable $Path: undefined
[24:18:28] The environment variable $SHELL: /bin/bash
[24:28:07] LOG command invoked: default
[24:28:14] LOG command invoked: compiler
[24:34:03] LOG command invoked: default
Developer Tools Console [Required]
notificationsAlerts.ts:42 Recipe terminated with error.
onDidChangeNotification @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
invoke @ event.ts:572
deliver @ event.ts:774
fire @ event.ts:735
addNotification @ notifications.ts:206
notify @ notificationService.ts:175
(anonymous) @ mainThreadMessageService.ts:86
_showMessage @ mainThreadMessageService.ts:44
$showMessage @ mainThreadMessageService.ts:38
_doInvokeHandler @ rpcProtocol.ts:455
_invokeHandler @ rpcProtocol.ts:440
_receiveRequest @ rpcProtocol.ts:370
_receiveOneMessage @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:572
deliver @ event.ts:774
fire @ event.ts:735
fire @ ipc.net.ts:638
_receiveMessage @ ipc.net.ts:959
(anonymous) @ ipc.net.ts:832
invoke @ event.ts:572
deliver @ event.ts:774
fire @ event.ts:735
acceptChunk @ ipc.net.ts:382
(anonymous) @ ipc.net.ts:338
O @ ipc.net.ts:60
emit @ node:events:390
addChunk @ node:internal/streams/readable:315
readableAddChunk @ node:internal/streams/readable:289
Readable.push @ node:internal/streams/readable:228
onStreamRead @ node:internal/stream_base_commons:199
Show 2 more frames
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
Beta Was this translation helpful? Give feedback.
All reactions