Skip to content

Commit

Permalink
Fix searching aux files of \included TeX files (#913)
Browse files Browse the repository at this point in the history
Fixes #906.
  • Loading branch information
pfoerster authored Aug 6, 2023
1 parent 2ad91f7 commit b3f304e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Use bibliographies found in `BIBINPUTS` environment variable ([#493](https://github.com/latex-lsp/texlab/issues/493))

### Fixed

- Fix search path for aux files when using `\include` instead of `\input` ([#906](https://github.com/latex-lsp/texlab/issues/906))

## [5.8.0] - 2023-07-30

### Added
Expand All @@ -29,7 +33,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Fix parsing paths with `|` ([#568](https://github.com/latex-lsp/texlab/issues/568))
- Fix parsing LaTeX identifiers with `=` ([#568](https://github.com/latex-lsp/texlab/issues/568))
- Fix search path for aux files when using `\include` instead of `\input` ([[#906](https://github.com/latex-lsp/texlab/issues/906))

## [5.7.0] - 2023-06-07

Expand Down
5 changes: 5 additions & 0 deletions crates/base-db/src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,13 @@ impl<'a> Graph<'a> {
let aux_dir = self.workspace.output_dir(base_dir, config.aux_dir.clone());
let log_dir = self.workspace.output_dir(base_dir, config.log_dir.clone());

let relative_path = base_dir.make_relative(&source.uri).unwrap();

self.add_artifact(source, &aux_dir.join(&relative_path).unwrap(), "aux");
self.add_artifact(source, &aux_dir, "aux");
self.add_artifact(source, base_dir, "aux");

self.add_artifact(source, &log_dir.join(&relative_path).unwrap(), "log");
self.add_artifact(source, &log_dir, "log");
self.add_artifact(source, base_dir, "log");
}
Expand Down

0 comments on commit b3f304e

Please sign in to comment.