Skip to content

fix: install add-ons without agreeToLicense on R2026b and later - #73

Merged
ehennestad merged 5 commits into
mainfrom
fix-r2026b-addon-install-license-argument
Oct 15, 2026
Merged

ehennestad merged 5 commits into
mainfrom
fix-r2026b-addon-install-license-argument

Conversation

@ehennestad

@ehennestad ehennestad commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

From R2026b, matlab.addons.install accepts the license agreement by default and errors when the agreeToLicense argument is false (matlab_addons:install:licenseAgreementDialogDeprecationNotice). An argument of true is still accepted. installFexPackage passed the AgreeToLicense option, which defaults to false, so installRequirements failed on R2026b for any FileExchange requirement packaged as .mltbx. This is what fails the three SetupTest tests.

installFexPackage now calls matlab.addons.install without the argument from R2026b. Earlier releases still receive AgreeToLicense. From R2026b the option has no effect, because MATLAB no longer offers a way to decline the license. When a caller passes AgreeToLicense as false explicitly, installFexPackage warns (MatBox:Setup:AgreeToLicenseIgnored) after installing an .mltbx package on R2026b or later.

To tell an explicit false from an omitted option, AgreeToLicense has no default in installRequirements (as AgreeToLicenses), installFromSourceUri and installFexPackage, and each forwards it only when given. Omitting it does not warn, and on earlier releases it still means false. SetupTest checks both cases on R2026b and later; each test uninstalls the test add-on first, because installFexPackage skips an add-on that is already installed.

The R2026a and R2026b behaviour of each call was observed in a probe run in github-actions-sandbox. MathWorks documents the change under "R2026b: agreeToLicense argument no longer supported" on the matlab.addons.install page.

The packageToolbox tests also fail on R2026b, for a separate reason fixed in #74.

🤖 Generated with Claude Code

From R2026b, matlab.addons.install accepts the license agreement by
default and errors when the agreeToLicense argument is false
(matlab_addons:install:licenseAgreementDialogDeprecationNotice). An
argument of true is still accepted. installFexPackage passed the
AgreeToLicense option, which defaults to false, so installing a
FileExchange requirement packaged as .mltbx failed on R2026b.

It now calls matlab.addons.install without the argument from R2026b.
Earlier releases still receive AgreeToLicense.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

36 tests   36 ✅  26s ⏱️
 6 suites   0 💤
 1 files     0 ❌

Results for commit 35e4663.

♻️ This comment has been updated with latest results.

ehennestad and others added 4 commits October 15, 2026 19:59
From R2026b MATLAB accepts an add-on's license agreement on install,
so AgreeToLicense false can no longer decline it. installFexPackage
now warns (MatBox:Setup:AgreeToLicenseIgnored) after installing an
.mltbx package on R2026b or later when the caller passed false.

The option has no default in installRequirements, installFromSourceUri
and installFexPackage, and is forwarded only when given, so omitting
it does not warn. On earlier releases an omitted option still means
false.

SetupTest checks on R2026b and later that an explicit false warns and
that an omitted option does not. Both uninstall the test add-on first,
because installFexPackage skips an add-on that is already installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ehennestad
ehennestad merged commit dd69aa5 into main Oct 15, 2026
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.

1 participant