asdf8601 / dex

Docker image ready for compiling latex files
0 stars 1 forks source link

Integration with VSCode is not working out-of-the-box #2

Closed emvalbuena closed 9 months ago

emvalbuena commented 9 months ago

After copy-pasting the VSCode configuration suggested in the README, and attempted execution, got the following errors:

[08:31:49.289][Logger] New log placeholder %WS1% registered for /home/enrique/git/dynamic-pricing-tag .
[08:31:49.289][Extension] Initializing LaTeX Workshop.
[08:31:49.590][Build][Recipe] Set $LATEXWORKSHOP_DOCKER_LATEX: ""
[08:31:49.658][Server] Creating LaTeX Workshop http and websocket server.
[08:31:49.763][Format][Bib] Bibtex format config: {"tab":"  ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[08:31:49.810][Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":41909} .
[08:31:50.051][Extension] Extension root: /home/enrique/.vscode-server/extensions/james-yu.latex-workshop-9.18.0
[08:31:50.051][Extension] $PATH: /home/enrique/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/bin/remote-cli:/home/enrique/.local/bin:/home/enrique/bin:/home/enrique/miniconda3/bin:/home/enrique/miniconda3/condabin:/usr/bin:/home/enrique/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
[08:31:50.051][Extension] $SHELL: /bin/bash
[08:31:50.051][Extension] $LANG: C.UTF-8
[08:31:50.051][Extension] $LC_ALL: undefined
[08:31:50.052][Extension] process.platform: linux
[08:31:50.052][Extension] process.arch: x64
[08:31:50.052][Extension] vscode.env.appName: Visual Studio Code
[08:31:50.052][Extension] vscode.env.remoteName: ssh-remote
[08:31:50.052][Extension] vscode.env.uiKind: 1
[08:31:50.095][Extension] Trigger characters for intellisense of LaTeX documents: ["\\",",","{"]
[08:31:50.096][Root] Current workspace folders: ["file://%WS1%"]
[08:31:50.097][Extension] LaTeX Workshop initialized.
[08:31:50.098][Root] Found root file from active editor: %WS1%/initial_problem_formulation.tex
[08:31:50.099][Root] Root file changed: from %WS1%/initial_problem_formulation.tex to %WS1%/initial_problem_formulation.tex, langID latex . Refresh dependencies
[08:31:50.099][Event] ROOT_FILE_CHANGED: "%WS1%/initial_problem_formulation.tex"
[08:31:50.099][Cacher][Watcher] Reset.
[08:31:50.100][Cacher][Watcher] Reset.
[08:31:50.100][Cacher][Watcher] Reset.
[08:31:50.105][Cacher] Adding %WS1%/initial_problem_formulation.tex .
[08:31:50.106][Cacher][Watcher] Watched %WS1%/initial_problem_formulation.tex with a new watcher on %WS1% .
[08:31:50.106][Event] FILE_WATCHED: "%WS1%/initial_problem_formulation.tex"
[08:31:50.109][Cacher] Caching %WS1%/initial_problem_formulation.tex .
[08:31:50.110][Cacher] Updated inputs of %WS1%/initial_problem_formulation.tex .
[08:31:50.111][Cacher] Parse LaTeX AST: %WS1%/initial_problem_formulation.tex .
[08:31:50.111][Event] ROOT_FILE_SEARCHED
[08:31:50.222][Cacher] Parsed LaTeX AST: %WS1%/initial_problem_formulation.tex .
[08:31:50.223][File] Calling kpsewhich to resolve article.cls .
[08:31:50.244][Cacher] Updated elements in 21.60 ms: %WS1%/initial_problem_formulation.tex .
[08:31:50.245][Event] FILE_PARSED: "%WS1%/initial_problem_formulation.tex"
[08:31:50.252][Structure] Structure force updated with 0 root sections for %WS1%/initial_problem_formulation.tex .
[08:31:50.253][Event] STRUCTURE_UPDATED
[08:31:50.287][Server] valdOrigin is http://127.0.0.1:41909
[08:38:41.394][Viewer][Panel] Internal PDF viewer at http://127.0.0.1:41909/viewer.html?file=pdf..ZmlsZSUzQSUyRiUyRiUyRmhvbWUlMkZlbnJpcXVlJTJGZ2l0JTJGZHluYW1pYy1wcmljaW5nLXRhZyUyRmluaXRpYWxfcHJvYmxlbV9mb3JtdWxhdGlvbi5wZGY .
[08:38:41.395][Cacher][Watcher] Watched %WS1%/initial_problem_formulation.pdf with a new watcher on %WS1% .
[08:38:41.396][Event] FILE_WATCHED: "%WS1%/initial_problem_formulation.pdf"
[08:38:43.112][Viewer] Handle data type: open
[08:38:43.134][Server] Preview PDF file: file://%WS1%/initial_problem_formulation.pdf
[08:38:43.306][Viewer] Handle data type: loaded
[08:38:43.306][Event] VIEWER_PAGE_LOADED
[08:38:52.706][Event] STRUCTURE_UPDATED
[08:38:57.351][Event] STRUCTURE_UPDATED
[08:39:03.258][Event] STRUCTURE_UPDATED
[08:41:08.342][Config] Configuration changed to { latex-workshop.latex.recipes: [{"name":"dex","tools":["pdflatex"]}] } at file://%WS1% .
[08:41:08.342][Config] Configuration changed to { latex-workshop.latex.tools: [{"name":"pdflatex","command":"dex","args":["pdflatex","%DOC%","-output-directory=%OUTDIR%"],"env":{"PWD":"%OUTDIR%"}},{"name":"bibtex","command":"dex","args":["bibtex","%DOCFILE%"],"env":{"PWD":"%OUTDIR%"}}] } at file://%WS1% .
[08:41:24.491][Event] STRUCTURE_UPDATED
[08:41:28.289][Commander] RECIPES command invoked.
[08:41:30.835][Commander] BUILD command invoked.
[08:41:30.835][Build] The document of the active editor: file://%WS1%/initial_problem_formulation.tex
[08:41:30.836][Build] The languageId of the document: latex
[08:41:30.836][Root] Current workspace folders: ["file://%WS1%"]
[08:41:30.837][Root] Found root file from active editor: %WS1%/initial_problem_formulation.tex
[08:41:30.838][Root] Keep using the same root file: %WS1%/initial_problem_formulation.tex
[08:41:30.838][Event] ROOT_FILE_SEARCHED
[08:41:30.838][Event] STRUCTURE_UPDATED
[08:41:30.838][Build] Building root file: %WS1%/initial_problem_formulation.tex
[08:41:30.838][Build][Recipe] Build root file %WS1%/initial_problem_formulation.tex
[08:41:30.879][Build][Recipe] Preparing to run recipe: dex.
[08:41:30.879][Build][Recipe] Prepared 1 tools.
[08:41:30.907][Build][Recipe] Cannot run `pdflatex` to determine if we are using MiKTeX.
[08:41:30.908][Build][Recipe] outDir: %WS1% .
[08:41:30.910][Build] Recipe step 1 The command is dex:["pdflatex","%WS1%/initial_problem_formulation","-output-directory=%WS1%"].
[08:41:30.911][Build] env: {"PWD":"%WS1%"}
[08:41:30.911][Build] root: %WS1%/initial_problem_formulation.tex
[08:41:30.911][Build] cwd: %WS1%
[08:41:30.936][Build] LaTeX build process spawned with PID undefined.
[08:41:30.938][Build] LaTeX fatal error on PID undefined. Error: spawn dex ENOENT
[08:41:30.938]Error: spawn dex ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[08:41:30.939][Build] Does the executable exist? $PATH: /home/enrique/.cache/cloud-code/installer/google-cloud-sdk/bin:/home/enrique/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/bin/remote-cli:/home/enrique/.local/bin:/home/enrique/bin:/home/enrique/miniconda3/bin:/home/enrique/miniconda3/condabin:/usr/bin:/home/enrique/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/enrique/google-cloud-sdk/bin, $Path: undefined, $SHELL: /bin/bash
[08:41:30.939][Build] 
asdf8601 commented 9 months ago

Did you create the executable scripts mentioned in the Live Preview section?