Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix extension function fallbacks #557

Merged
merged 2 commits into from
Jan 19, 2022
Merged

Conversation

tombruijn
Copy link
Member

As reported in #556, when the extension is not installed or fails to
load, calls to certain extension functions will fail. The issue mentions
the runningInContainer broken being broken on the main branch.

PR #554 also removes some safety checks that cause the same issue for
the diagnoseRaw function. Those safety checks were removed because
they did not what expected, tracking if the extension was running or
not.

For both functions I've implemented a no-operations function. This will
fix any errors on calls to these functions. Other functions that call
these functions need to handle receiving no return value.

Part of #556, but doesn't fix it entirely. We should call more function
calls. These ones were the most obvious ones.

Based on PR #554.

@tombruijn tombruijn added the bug label Jan 19, 2022
@tombruijn tombruijn self-assigned this Jan 19, 2022
@tombruijn tombruijn force-pushed the extension-fallbacks branch 2 times, most recently from 3523971 to c62798c Compare January 19, 2022 09:31
@tombruijn tombruijn force-pushed the extension-fallbacks branch from c62798c to 10cfc29 Compare January 19, 2022 09:57
@tombruijn tombruijn force-pushed the extension-fallbacks branch from 10cfc29 to 5a63030 Compare January 19, 2022 10:09
@tombruijn tombruijn force-pushed the extension-fallbacks branch 2 times, most recently from df91f1c to b542389 Compare January 19, 2022 10:19
As reported in #556, when the extension is not installed or fails to
load, calls to certain extension functions will fail. The issue mentions
the `runningInContainer` broken being broken on the main branch.

PR #554 also removes some safety checks that cause the same issue for
the `diagnoseRaw` function. Those safety checks were removed because
they did not what expected, tracking if the extension was running or
not.

For both functions I've implemented a no-operations function. This will
fix any errors on calls to these functions. Other functions that call
these functions need to handle receiving no return value.

Part of #556, but doesn't fix it entirely. We should call more function
calls. These ones were the most obvious ones.

Based on PR #554.
@tombruijn tombruijn force-pushed the extension-fallbacks branch from b542389 to 93fdc3a Compare January 19, 2022 10:25
@tombruijn tombruijn marked this pull request as ready for review January 19, 2022 10:26
@tombruijn tombruijn mentioned this pull request Jan 19, 2022
3 tasks
lintje:disable MessagePresence

[ci skip]
@tombruijn tombruijn merged commit f52a824 into extension-loading Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants