Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad path in parseFls when outDir is a relative path #1972

Closed
jmussman opened this issue Feb 29, 2020 · 1 comment
Closed

Bad path in parseFls when outDir is a relative path #1972

jmussman opened this issue Feb 29, 2020 · 1 comment
Labels
enhancement Issue suggests an enhancement

Comments

@jmussman
Copy link

Preliminary questions [Required]

Disable all the other extensions except for LaTeX Workshop, 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]

Once in a while an error appears on the console that leads me to believe the path construction in one part of the latex-workshop code has an error. The build directory, in my case .latex-temp, is doubled up in the path and the file can't be found. This does not result in an error in front of the user, I only noticed it while trying to nail down another issue.

To Reproduce

Steps to reproduce the behavior:
Not sure, happens occasionally on compile.

Expected behavior

N/A

Logs [Required]

Please paste the whole log messages here, not parts of ones. It is very important to identify problems.

LaTeX Workshop Output [Required]

[18:01:53] Initializing LaTeX Workshop.
[18:01:53] Creating file watcher for .pdf files.
[18:01:53] Creating LaTeX Workshop http and websocket server.
[18:01:53] LaTeX Workshop initialized.
[18:01:53] Found root file of this subfile from active editor: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:01:53] Root file changed from: undefined to /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex. Find all dependencies.
[18:01:53] Instantiating a new file watcher for /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:01:53] Creating file watcher for .bib files.
[18:01:53] Parsing /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Server created on 127.0.0.1:64895
[18:01:53] Adding /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex to file watcher.
[18:01:53] Snippet data loaded.
[18:01:53] LaTeX Workshop version: 8.7.2
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:56] LOG command invoked.
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Found root file of this subfile from active editor: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:02:21] Found root file of this subfile from active editor: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:02:21] Root file remains unchanged from: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex.
[18:02:21] Root file remains unchanged from: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex.
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:05:06] Found root file of this subfile from active editor: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:05:06] Root file remains unchanged from: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex.
[18:21:03] Could not resolve included file undefined
[18:21:03] Could not resolve included file undefined
[18:21:03] Could not resolve included file undefined
[18:21:03] Could not resolve included file undefined
[18:21:03] Could not resolve included file undefined
[18:21:03] Could not resolve included file undefined
[18:21:03] Could not resolve included file undefined
[18:21:03] Could not resolve included file undefined
[18:21:03] Could not resolve included file undefined
[18:21:03] Could not resolve included file undefined
[18:21:03] Found root file from active editor: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:21:03] Found root file from active editor: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:21:03] Root file remains unchanged from: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex.
[18:21:03] Root file remains unchanged from: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex.
[18:21:13] Could not resolve included file undefined
[18:21:13] Could not resolve included file undefined
[18:21:13] Could not resolve included file undefined
[18:21:13] Could not resolve included file undefined
[18:21:13] Could not resolve included file undefined
[18:21:13] Could not resolve included file undefined
[18:21:13] Could not resolve included file undefined
[18:21:13] Could not resolve included file undefined
[18:21:13] Could not resolve included file undefined
[18:21:13] Could not resolve included file undefined
[18:21:15] File watcher: responding to change in /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:21:15] Parsing /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:21:15] /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex changed. Auto build project.
[18:21:15] BUILD command invoked.
[18:21:15] Building root file: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:21:15] Build root file /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:21:15] Recipe step 1: latexmk, -cd,-synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=.latex-temp,/Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook
[18:21:15] LaTeX build process spawned. PID: 53411.
[18:21:18] LaTeX log parsed with 0 messages.
[18:21:18] Recipe of length 1 finished. PID: 53411.
[18:21:18] Successfully built /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex.
[18:21:18] No PDF viewer connected for /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/.latex-temp/workbook.pdf
[18:21:18] Parse fls file.

Developer Tools Console [Required]

  ERR No application in the Launch Services database matches the input criteria.: Error: No application in the Launch Services database matches the input criteria.
mainThreadExtensionService.ts:65 [[object Object]]ENOENT: no such file or directory, open '/Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/.latex-temp/.latex-temp/workbook.aux'
$onExtensionRuntimeError @ mainThreadExtensionService.ts:65
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
(anonymous) @ rpcProtocol.ts:101
fire @ event.ts:582
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:582
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:200
addChunk @ _stream_readable.js:294
readableAddChunk @ _stream_readable.js:275
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
mainThreadExtensionService.ts:66 Error: ENOENT: no such file or directory, open '/Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/.latex-temp/.latex-temp/workbook.aux'
	at Object.openSync (fs.js:447)
	at Object.func (electron/js2c/asar.js:138)
	at Object.func [as openSync] (electron/js2c/asar.js:138)
	at Object.readFileSync (fs.js:349)
	at Object.fs.readFileSync (electron/js2c/asar.js:580)
	at Object.fs.readFileSync (electron/js2c/asar.js:580)
	at /Users/jmussman/.vscode/extensions/james-yu.latex-workshop-8.7.2/out/src/components/manager.js:508
	at Array.forEach (<anonymous>)
	at Manager.parseFlsFile (/Users/jmussman/.vscode/extensions/james-yu.latex-workshop-8.7.2/out/src/components/manager.js:506)
	at Builder.buildFinished (/Users/jmussman/.vscode/extensions/james-yu.latex-workshop-8.7.2/out/src/components/builder.js:344)
	at ChildProcess.<anonymous> (/Users/jmussman/.vscode/extensions/james-yu.latex-workshop-8.7.2/out/src/components/builder.js:321)
	at ChildProcess.emit (events.js:200)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:272)

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop [Required]

  • OS: MacOS 10.14.6
  • VS Code version: 1.41.0
  • Extension version: 8.7.2
  • TeX distribution version: [e.g. TeX Live 2019/MiKTeX 2.9.7250]

Additional questions

Are you using LaTeX Workshop with VS Code Remote?

No

If the answer is Yes, please write which one you are using. Write the versions of the remote extension.

  • Remote Containers/Remote SSH/Remote WSL
  • Remote Extension Version: [e.g. 0.48.0]

Additional context

Just noticed this seems to be an occasional flaw in the path building code, thought you would want to know.

@jlelong
Copy link
Collaborator

jlelong commented Mar 1, 2020

This is related to #1873 (comment) and commit 2a1cc91

@jlelong jlelong closed this as completed in c1fea99 Mar 1, 2020
@jlelong jlelong changed the title Occasional bad path behind the scenes. Bad path in parseFls when outDir is a relative path Mar 2, 2020
@tamuratak tamuratak added the enhancement Issue suggests an enhancement label Jun 3, 2021
Repository owner locked as resolved and limited conversation to collaborators Jun 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Issue suggests an enhancement
Projects
None yet
Development

No branches or pull requests

3 participants