Skip to content

[FIX] SmartTemplateAnalyzer: Do not throw in case missing dependency is expected#479

Merged
RandomByte merged 4 commits intomasterfrom
component-preload-ignore-missing-deps
Jul 21, 2020
Merged

[FIX] SmartTemplateAnalyzer: Do not throw in case missing dependency is expected#479
RandomByte merged 4 commits intomasterfrom
component-preload-ignore-missing-deps

Conversation

@RandomByte
Copy link
Copy Markdown
Member

@RandomByte RandomByte commented Jul 15, 2020

In some cases it can be expected that SmartTemplateAnalyzer does not
have access to second-degree dependencies. In such cases, no error
should be thrown. Currently this causes misleading error logs, for
example in case of component preload generation for a Fiori Elements
project where no framework dependencies are available.

Resolves https://github.com/SAP/ui5-builder/issues/404

…is expected

In some cases it can be expected that SmartTemplateAnalyzer does not
have access to second-degree dependencies. In such cases, no error
should be thrown. Currently this causes misleading error logs, for
example in case of component preload generation for a Fiori Elements
project where no framework dependencies are available.

Resolves https://github.com/SAP/ui5-builder/issues/404
@RandomByte RandomByte force-pushed the component-preload-ignore-missing-deps branch from 835bc00 to b82187f Compare July 16, 2020 12:58
@RandomByte RandomByte changed the title WIP: SmartTemplateAnalyzer: Do not throw in cases where project dependencies might not be available [FIX] SmartTemplateAnalyzer: Do not throw in case missing dependency is expected Jul 16, 2020
@RandomByte RandomByte marked this pull request as ready for review July 16, 2020 12:59
@RandomByte RandomByte requested review from codeworrior and matz3 July 16, 2020 12:59
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 16, 2020

Coverage Status

Coverage increased (+0.02%) to 91.357% when pulling 0d148ec on component-preload-ignore-missing-deps into d18a29f on master.

@RandomByte RandomByte requested a review from matz3 July 21, 2020 08:12
matz3
matz3 previously approved these changes Jul 21, 2020
@RandomByte RandomByte merged commit b2150c3 into master Jul 21, 2020
@RandomByte RandomByte deleted the component-preload-ignore-missing-deps branch July 21, 2020 12:53
matz3 added a commit that referenced this pull request Jul 31, 2020
In addition to #479 the generateLibraryPreload should also ignore missing modules when creating a bundle.
As only files from the workspace are bundled, it's not a problem when dependencies can't be found. Just for self-contained bundles, this is a problem.

See: #479
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 24, 2025
In addition to #479 the generateLibraryPreload should also ignore missing modules when creating a bundle.
As only files from the workspace are bundled, it's not a problem when dependencies can't be found. Just for self-contained bundles, this is a problem.

See: SAP/ui5-builder#479
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 25, 2025
…pendency is expected (SAP/ui5-builder#479)

In some cases it can be expected that SmartTemplateAnalyzer does not
have access to second-degree dependencies. In such cases, no error
should be thrown. Currently this causes misleading error logs, for
example in case of component preload generation for a Fiori Elements
project where no framework dependencies are available.

Resolves https://github.com/SAP/ui5-builder/issues/404
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 25, 2025
…5-builder#481)

In addition to  SAP/ui5-builder#479 the generateLibraryPreload should also ignore missing modules when creating a bundle.
As only files from the workspace are bundled, it's not a problem when dependencies can't be found. Just for self-contained bundles, this is a problem.

See: SAP/ui5-builder#479
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.

Preload building of Fiori element-based apps produce verbose log content

3 participants