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(screen): handle various edge cases rather than crashing #1269

Merged
merged 4 commits into from
Mar 25, 2022

Conversation

imsnif
Copy link
Member

@imsnif imsnif commented Mar 25, 2022

Fixes #1134, #805 and probably a few others

When this code was written, the Zellij architecture was a little bit different and it didn't make a whole lot of sense to perform checks to make sure the Tab a certain Action is operating on actually exists. As we moved stuff around (namely to a client/server architecture but not just), these edge-cases became more and more possible.

This fixes a lot (all?) of these potential pitfalls by performing a no-op in case the tab an action would like to use doesn't exist.

@imsnif imsnif temporarily deployed to cachix March 25, 2022 08:37 Inactive
@imsnif imsnif temporarily deployed to cachix March 25, 2022 08:37 Inactive
@imsnif imsnif temporarily deployed to cachix March 25, 2022 08:42 Inactive
@imsnif imsnif temporarily deployed to cachix March 25, 2022 08:42 Inactive
@a-kenji
Copy link
Contributor

a-kenji commented Mar 25, 2022

This fixes a lot (all?) of these potential pitfalls by performing a no-op in case the tab an action would like to use doesn't exist.

Can we log these instances, maybe just with debug?

@imsnif imsnif temporarily deployed to cachix March 25, 2022 09:15 Inactive
@imsnif
Copy link
Member Author

imsnif commented Mar 25, 2022

This fixes a lot (all?) of these potential pitfalls by performing a no-op in case the tab an action would like to use doesn't exist.

Can we log these instances, maybe just with debug?

Good call, thanks. Added.

@imsnif imsnif temporarily deployed to cachix March 25, 2022 09:16 Inactive
@imsnif imsnif temporarily deployed to cachix March 25, 2022 09:16 Inactive
@imsnif imsnif merged commit bf4f90d into main Mar 25, 2022
@har7an har7an deleted the fix-various-tab-crashes branch October 23, 2022 15:07
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.

stdin input before rendered crashes zellij
2 participants