Skip to content

Commit

Permalink
Fix searching aux files of \included TeX files
Browse files Browse the repository at this point in the history
See #906.
  • Loading branch information
pfoerster committed Aug 5, 2023
1 parent 78d2b25 commit c2d912e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### 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 @@ -23,7 +29,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 c2d912e

Please sign in to comment.