File tree Expand file tree Collapse file tree
antlr4/org/pgcodekeeper/core/database/base/parser/generated
java/org/pgcodekeeper/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313
1414### Fixed
1515
16+ - Fixed errors when working with .pgcodekeeperdependencies files.
17+
1618## [ 14.6.0] - 2026-06-18
1719
1820### Changed
Original file line number Diff line number Diff line change 1313
1414### Исправлено
1515
16+ - Исправлены ошибки при работе с файлами .pgcodekeeperdependencies.
17+
1618## [ 14.6.0] - 2026-06-18
1719
1820### Изменено
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ options {
55}
66
77compileUnit
8- : deps_definition+ EOF
8+ : deps_definition* EOF
99 ;
1010
1111deps_definition
Original file line number Diff line number Diff line change @@ -279,9 +279,7 @@ public void preLoad() throws IOException {
279279
280280 // load additional dependencies
281281 Path depsPath = dirPath .resolve (ADDITIONAL_DEPENDENCIES_FILE );
282- if (Files .isRegularFile (depsPath )) {
283- diffSettings .addAdditionalDependencies (DependenciesReader .getDependencies (depsPath ));
284- }
282+ diffSettings .addAdditionalDependencies (DependenciesReader .getDependencies (depsPath ));
285283 isPreloaded = true ;
286284 }
287285
Original file line number Diff line number Diff line change 1515 *******************************************************************************/
1616package org .pgcodekeeper .core .dependencieslist ;
1717
18+ import java .nio .file .Files ;
1819import java .nio .file .Path ;
1920import java .util .*;
2021import java .util .stream .Collectors ;
@@ -41,11 +42,13 @@ public final class DependenciesReader {
4142 private DependenciesReader () {}
4243
4344 public static List <Dependency > getDependencies (Path depsPath ) {
44- try {
45- var parser = ParserUtils .createDependenciesListParser (depsPath );
46- return new DependenciesReader ().getDependencies (parser );
47- } catch (Exception ex ) {
48- LOG .error (Messages .DependenciesReader_parser_error .formatted (depsPath ), ex );
45+ if (Files .isRegularFile (depsPath )) {
46+ try {
47+ var parser = ParserUtils .createDependenciesListParser (depsPath );
48+ return new DependenciesReader ().getDependencies (parser );
49+ } catch (Exception ex ) {
50+ LOG .error (Messages .DependenciesReader_parser_error .formatted (depsPath ), ex );
51+ }
4952 }
5053 return new ArrayList <>();
5154 }
You can’t perform that action at this time.
0 commit comments