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

Improve error message when build.executable doesn't exist #1303

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

krobelus
Copy link
Contributor

texlab outputs on standard error:

ERROR - Failed to compile document "file:///path/to/test.tex":
Unable to run compiler: No such file or directory (os error 2)

which is confusing because the actual issue is that "latexmk" was
not found. Fix that by adding the program name. This might not be
as appropriate for all possible io::Error kinds but it's probably
useful for a few of them.

Also we should remove a file:// prefix when printing URLs,
but that's a separate change.

texlab outputs on standard error:

	ERROR - Failed to compile document "file:///path/to/test.tex":
	Unable to run compiler: No such file or directory (os error 2)

which is confusing because the actual issue is that "latexmk" was
not found.  Fix that by adding the program name.  This might not be
as appropriate for all possible io::Error kinds but it's probably
useful for a few of them.

Also we should remove a file:// prefix when printing URLs,
but that's a separate change.
@pfoerster pfoerster merged commit 0532115 into latex-lsp:master Dec 31, 2024
10 checks passed
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Feb 2, 2025
## [5.22.1] - 2024-01-29

### Security

- Don't store IPC socket (`texlab.sock`) in temp directory
  (see [CWE-379](https://cwe.mitre.org/data/definitions/379.html), [#1331](latex-lsp/texlab#1331))

## [5.22.0] - 2024-01-26

### Added

- Allow hovering over symbol-like commands (e. g. `\pi`) to show a unicode preview
  or a preview image if the client supports it ([#1261](latex-lsp/texlab#1261))
- Add `texlab.symbols.customEnvironments` setting for specifying additional environments that will be included in the document symbols
  ([#1292](latex-lsp/texlab#1292))
- Add `texlab.experimental.labelReferenceRangeCommands` setting ([#1210](latex-lsp/texlab#1210))
- Add `tex-fmt` as a formatter for `latex` and `bibtex` ([#1320](latex-lsp/texlab#1320))

### Fixed

- Fix parsing links with URL encoding ([#1279](latex-lsp/texlab#1279))
- Improve error message when `texlab.build.executable` does not exist ([#1303](latex-lsp/texlab#1303))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants