René's URL Explorer Experiment


Title: no space for new pane with main-horizontal and a few panes · Issue #800 · tmux-python/tmuxp · GitHub

Open Graph Title: no space for new pane with main-horizontal and a few panes · Issue #800 · tmux-python/tmuxp

X Title: no space for new pane with main-horizontal and a few panes · Issue #800 · tmux-python/tmuxp

Description: Step 1: Provide a summary of your problem I created a yaml config with five panes in layout main-horizontal (although main-vertical also breaks). When I tried to run it it failed with the following exception: Traceback (most recent call ...

Open Graph Description: Step 1: Provide a summary of your problem I created a yaml config with five panes in layout main-horizontal (although main-vertical also breaks). When I tried to run it it failed with the following...

X Description: Step 1: Provide a summary of your problem I created a yaml config with five panes in layout main-horizontal (although main-vertical also breaks). When I tried to run it it failed with the following...

Opengraph URL: https://github.com/tmux-python/tmuxp/issues/800

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"no space for new pane with main-horizontal and a few panes","articleBody":"### Step 1: Provide a summary of your problem\r\n\r\nI created a yaml config with five panes in layout main-horizontal (although main-vertical also breaks). When I tried to run it it failed with the following exception:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/abraham/.local/bin/tmuxp\", line 8, in \u003cmodule>\r\n    sys.exit(cli.cli())\r\n  File \"/usr/lib/python3.10/site-packages/click/core.py\", line 1130, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/usr/lib/python3.10/site-packages/click/core.py\", line 1055, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/usr/lib/python3.10/site-packages/click/core.py\", line 1657, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/usr/lib/python3.10/site-packages/click/core.py\", line 1404, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/usr/lib/python3.10/site-packages/click/core.py\", line 760, in invoke\r\n    return __callback(*args, **kwargs)\r\n  File \"/usr/lib/python3.10/site-packages/click/decorators.py\", line 26, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n  File \"/home/abraham/.local/lib/python3.10/site-packages/tmuxp/cli/load.py\", line 573, in command_load\r\n    load_workspace(config[-1], **tmux_options)\r\n  File \"/home/abraham/.local/lib/python3.10/site-packages/tmuxp/cli/load.py\", line 418, in load_workspace\r\n    _load_attached(builder, detached)\r\n  File \"/home/abraham/.local/lib/python3.10/site-packages/tmuxp/cli/load.py\", line 159, in _load_attached\r\n    builder.build()\r\n  File \"/home/abraham/.local/lib/python3.10/site-packages/tmuxp/workspacebuilder.py\", line 268, in build\r\n    for p, pconf in self.iter_create_panes(w, wconf):\r\n  File \"/home/abraham/.local/lib/python3.10/site-packages/tmuxp/workspacebuilder.py\", line 420, in iter_create_panes\r\n    p = w.split_window(\r\n  File \"/usr/lib/python3.10/site-packages/libtmux/window.py\", line 533, in split_window\r\n    raise exc.LibTmuxException(pane_cmd.stderr, self._info, self.panes)\r\nlibtmux.exc.LibTmuxException: (['no space for new pane'], {'session_name': 'foo', 'session_id': '$15', 'window_id': '@36', 'window_name': 'bash', 'window_width': '80', 'window_height': '24', 'window_layout': 'd96b,80x24,0,0,89', 'window_panes': '1', 'window_index': '0', 'window_flags': '*', 'window_active': '1', 'window_bell_flag': '0', 'window_activity_flag': '0', 'window_silence_flag': '0'}, [Pane(%89 Window(@36 0:bash, Session($15 foo))), Pane(%90 Window(@36 0:bash, Session($15 foo))), Pane(%91 Window(@36 0:bash, Session($15 foo))), Pane(%92 Window(@36 0:bash, Session($15 foo)))])\r\n```\r\n\r\n### Step 2: Provide tmuxp details\r\n\r\n[debug-info](https://github.com/tmux-python/tmuxp/files/9436341/info.txt)\r\n\r\nalso my console window is 213x51\r\n\r\n### Step 3: Describe the problem:\r\n\r\nlayout is not loaded, session is partially formed but not attached, exception is thrown.\r\n\r\n#### Steps to reproduce:\r\n\r\nI created this minimal config file that reproduces the issue:\r\n\r\n```yaml\r\nsession_name: foo\r\nwindows:\r\n- focus: 'true'\r\n  layout: main-horizontal\r\n  panes:\r\n    - focus: 'true'\r\n      shell_command:\r\n        - echo 1\r\n    - echo 2\r\n    - echo 3\r\n    - echo 4\r\n    - echo 5\r\n```\r\n\r\n#### Observed Results:\r\n\r\nA python exception\r\n\r\n#### Expected Results:\r\n\r\nA nicely built main-horizontal layout\r\n\r\n### Thoughts\r\n\r\nOf course if I build the layout by hand it works, because I'm a human and I know that if I split the same pane over and over again, since every new pane is half the size of the previous one then soon my panes will be too small. So I resize them a little bit before splitting again, then adjust the final size.\r\n\r\nPerhaps the algorithm for building the layout could do that. I think it is possible to know the final size of everything just from the layout, the amount of panes and the window size.","author":{"url":"https://github.com/categulario","@type":"Person","name":"categulario"},"datePublished":"2022-08-26T20:56:29Z","url":"https://github.com/tmux-python/tmuxp/issues/800"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ef5bddf5-6920-8985-2ea0-4e6c3aa74cda
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD2F2:C2FBA:1F2C67:2BB04D:6B006811
html-safe-nonce606da02c997d631428b858e5162dd98ba1b9fc205986bacce6444ebfbff72311
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkYyOkMyRkJBOjFGMkM2NzoyQkIwNEQ6NkIwMDY4MTEiLCJ2aXNpdG9yX2lkIjoiMzY0Njk3NDEyMjg3NDkyMzAyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac63b4f3a5961048f182c88844440682107b4243abba260b656ee6be7eb9ef6f9d
hovercard-subject-tagissue:1352725308
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/tmux-python/tmuxp/800/issue_layout
twitter:imagehttps://opengraph.githubassets.com/568af1aa97259508c7e3851d87c5534c85829b00c7b481b77410735b148d4510/tmux-python/tmuxp/issues/800
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/568af1aa97259508c7e3851d87c5534c85829b00c7b481b77410735b148d4510/tmux-python/tmuxp/issues/800
og:image:altStep 1: Provide a summary of your problem I created a yaml config with five panes in layout main-horizontal (although main-vertical also breaks). When I tried to run it it failed with the following...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecategulario
hostnamegithub.com
expected-hostnamegithub.com
None25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e
turbo-cache-controlno-preview
go-importgithub.com/tmux-python/tmuxp git https://github.com/tmux-python/tmuxp.git
octolytics-dimension-user_id37234308
octolytics-dimension-user_logintmux-python
octolytics-dimension-repository_id12398170
octolytics-dimension-repository_nwotmux-python/tmuxp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id12398170
octolytics-dimension-repository_network_root_nwotmux-python/tmuxp
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4f5c239e31f1f680e6bbc419ff92d774da616ec
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/tmux-python/tmuxp/issues/800#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftmux-python%2Ftmuxp%2Fissues%2F800
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftmux-python%2Ftmuxp%2Fissues%2F800
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=tmux-python%2Ftmuxp
Reloadhttps://github.com/tmux-python/tmuxp/issues/800
Reloadhttps://github.com/tmux-python/tmuxp/issues/800
Reloadhttps://github.com/tmux-python/tmuxp/issues/800
tmux-pythonhttps://github.com/tmux-python
tmuxphttps://github.com/tmux-python/tmuxp
Codehttps://github.com/tmux-python/tmuxp
Issues113 (113)https://github.com/tmux-python/tmuxp/issues
Pull requests29 (29)https://github.com/tmux-python/tmuxp/pulls
Discussionshttps://github.com/tmux-python/tmuxp/discussions
Actionshttps://github.com/tmux-python/tmuxp/actions
Security and qualityhttps://github.com/tmux-python/tmuxp/security
Insightshttps://github.com/tmux-python/tmuxp/insights
https://github.com/tmux-python/tmuxp
New issuehttps://github.com/login?return_to=https://github.com/tmux-python/tmuxp/issues/800
New issuehttps://github.com/login?return_to=https://github.com/tmux-python/tmuxp/issues/800
no space for new pane with main-horizontal and a few paneshttps://github.com/tmux-python/tmuxp/issues/800#top
https://github.com/categulario
categulariohttps://github.com/categulario
on Aug 26, 2022https://github.com/tmux-python/tmuxp/issues/800#issue-1352725308
debug-infohttps://github.com/tmux-python/tmuxp/files/9436341/info.txt
Nexthttps://github.com/tmux-python/tmuxp/issues/800?timeline_page=1
https://github.com/categulario
categulariohttps://github.com/categulario
on Aug 26, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1229009461
https://github.com/tony
tonyhttps://github.com/tony
on Aug 26, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1229016635
@categulariohttps://github.com/categulario
https://github.com/categulario
categulariohttps://github.com/categulario
on Aug 26, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1229030625
https://github.com/tony
tonyhttps://github.com/tony
on Aug 26, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1229038465
@categulariohttps://github.com/categulario
default-sizehttps://github.com/tmux-python/tmuxp/blob/2099745/tmuxp/workspacebuilder.py#L221-L223
w.split_window()https://github.com/tmux-python/tmuxp/blob/2099745/tmuxp/workspacebuilder.py#L420-L425
https://github.com/jgottfried
jgottfriedhttps://github.com/jgottfried
on Aug 28, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1229408862
tmuxp.jsonhttps://gist.github.com/jgottfried/0b96af08c0d80869185cc05dc0cde39a
#793https://github.com/tmux-python/tmuxp/pull/793
https://github.com/tony
tonyhttps://github.com/tony
on Aug 28, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1229502344
@jgottfriedhttps://github.com/jgottfried
v1.13.1https://github.com/tmux-python/tmuxp/releases/tag/v1.13.1
diffhttps://github.com/tmux-python/tmuxp/compare/v1.13.0...v1.13.1
#793https://github.com/tmux-python/tmuxp/pull/793
v1.13.0...v1.13.1#diff-9316655a97cbe443559ee45c1b1fa26bfa86e314210653806ce215702a956931R221-L425https://github.com/tmux-python/tmuxp/compare/v1.13.0...v1.13.1#diff-9316655a97cbe443559ee45c1b1fa26bfa86e314210653806ce215702a956931R221-L425
@jgottfriedhttps://github.com/jgottfried
@categulariohttps://github.com/categulario
@jgottfriedhttps://github.com/jgottfried
https://github.com/jgottfried
jgottfriedhttps://github.com/jgottfried
on Aug 28, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1229513917
@jgottfriedhttps://github.com/jgottfried
https://github.com/tony
tonyhttps://github.com/tony
on Aug 28, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1229520522
@jgottfriedhttps://github.com/jgottfried
https://github.com/tony
tonyhttps://github.com/tony
on Aug 28, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1229521477
https://github.com/tony
tonyhttps://github.com/tony
on Aug 29, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1230539649
@categulariohttps://github.com/categulario
@jgottfriedhttps://github.com/jgottfried
https://github.com/tony
tonyhttps://github.com/tony
on Aug 29, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1230540313
@nvasilashttps://github.com/nvasilas
#806https://github.com/tmux-python/tmuxp/issues/806
#793https://github.com/tmux-python/tmuxp/pull/793
https://github.com/categulario
categulariohttps://github.com/categulario
on Aug 29, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1230618868
https://github.com/holybit
holybithttps://github.com/holybit
on Sep 7, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1239969549
https://github.com/haider-rs
haider-rshttps://github.com/haider-rs
on Sep 8, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1240968620
https://github.com/ahillio
ahilliohttps://github.com/ahillio
on Sep 8, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1241136581
https://github.com/haider-rs
haider-rshttps://github.com/haider-rs
on Sep 8, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1241180182
https://github.com/ahillio
ahilliohttps://github.com/ahillio
on Sep 8, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1241187268
https://github.com/haider-rs
haider-rshttps://github.com/haider-rs
on Sep 9, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1241598694
https://github.com/tony
tonyhttps://github.com/tony
on Sep 9, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1241852338
https://github.com/tony
tonyhttps://github.com/tony
on Sep 9, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1241854723
https://github.com/tony
tonyhttps://github.com/tony
on Sep 9, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1242563392
@ahilliohttps://github.com/ahillio
1.13.1, since it'll only be 80x24https://github.com/tmux-python/tmuxp/compare/v1.13.0...v1.13.1#diff-9316655a97cbe443559ee45c1b1fa26bfa86e314210653806ce215702a956931R223
#800 (comment)https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1241187268
#800 (comment)https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1241180182
https://github.com/tony
tonyhttps://github.com/tony
on Sep 9, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1242563970
@categulariohttps://github.com/categulario
@jgottfriedhttps://github.com/jgottfried
#800 (comment)https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1241168616
https://github.com/ahillio
ahilliohttps://github.com/ahillio
on Sep 10, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1242687154
https://github.com/ahillio
ahilliohttps://github.com/ahillio
on Sep 10, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1242692414
https://github.com/ahillio
ahilliohttps://github.com/ahillio
on Sep 10, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1242708975
https://github.com/tony
tonyhttps://github.com/tony
on Sep 10, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1242773908
@ApexWeedhttps://github.com/ApexWeed
#806 (comment)https://github.com/tmux-python/tmuxp/issues/806#issuecomment-1242773806
#806https://github.com/tmux-python/tmuxp/issues/806
https://github.com/tony
tonyhttps://github.com/tony
on Sep 10, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1242780327
@ahilliohttps://github.com/ahillio
@categulariohttps://github.com/categulario
@jgottfriedhttps://github.com/jgottfried
herehttps://tmuxp.git-pull.com/configuration/examples.html#set-tmux-options
https://github.com/ahillio
ahilliohttps://github.com/ahillio
on Sep 10, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1242787046
https://github.com/tony
tonyhttps://github.com/tony
on Sep 10, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1242787413
@ahilliohttps://github.com/ahillio
https://github.com/haider-rs
haider-rshttps://github.com/haider-rs
on Sep 11, 2022https://github.com/tmux-python/tmuxp/issues/800#issuecomment-1243032232
@ahilliohttps://github.com/ahillio
@categulariohttps://github.com/categulario
@jgottfriedhttps://github.com/jgottfried
herehttps://tmuxp.git-pull.com/configuration/examples.html#set-tmux-options
Sign up for freehttps://github.com/signup?return_to=https://github.com/tmux-python/tmuxp/issues/800
Sign in to commenthttps://github.com/login?return_to=https://github.com/tmux-python/tmuxp/issues/800
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.