GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix layout related issues #737, #667, #704 by nvasilas · Pull Request #793 · tmux-python/tmuxp

Conversation

@nvasilas

@nvasilas nvasilas commented Aug 7, 2022 •
edited by tony
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Use tmux default session size 80x24 when creating a new session

re: #737, #667, #704

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tony

tony commented Aug 7, 2022

Copy link
Copy Markdown
Member

@nvasilas Can you take a look at the tests?

It looks like this may need a version conditional from libtmux.common, example:

  • tmuxp/tmuxp/cli/load.py

    Line 165 in ad6d30b

    if has_gte_version("2.6"):
  • tmuxp/tests/test_workspacebuilder.py

    Line 255 in 9a627f6

    sconfig["windows"][0]["options"]["pane-border-format"] = " #P "
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tony

tony commented Aug 7, 2022

Copy link
Copy Markdown
Member

Docs on related functions: https://libtmux.git-pull.com/reference/common.html?highlight=has_gt_version#libtmux.common.has_gt_version

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nvasilas

nvasilas commented Aug 8, 2022

Copy link
Copy Markdown
Contributor Author

@tony Sure mate I 'll fix them.

tony reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tony
tony force-pushed the master branch from cd9aa53 to cf5daa6 Compare August 14, 2022 09:12
@tony

tony commented Aug 14, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@nvasilas I rebased your branch via GitHub's rebase button (git pull --rebase --autostash to pull the changes)

The changes include basic mypy support #786

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Aug 18, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #793 (28c4366) into master (b70cd70) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #793   +/-   ##
=======================================
  Coverage   75.19%   75.19%           
=======================================
  Files          18       18           
  Lines        1431     1431           
  Branches      337      336    -1     
=======================================
  Hits         1076     1076           
  Misses        267      267           
  Partials       88       88           
Impacted Files Coverage Δ
tmuxp/workspacebuilder.py 85.29% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tony and others added 4 commits August 21, 2022 15:47
@tony
docs(CHANGES): Note bug fix by @nvasilas
28c4366
@nvasilas @tony
Fix layout related issues tmux-python#737, tmux-python#667, tmux-pyth…
fb9a8af
…on#704

Use tmux default session size 80x24 when creating a new session
@nvasilas @tony
Check minimum tmux version
2099745
@nvasilas @tony
Skip test that requires higher tmux version
927cf1f
@tony
tony force-pushed the master branch 2 times, most recently from 402acbc to 927cf1f Compare August 21, 2022 21:12
@tony

tony commented Aug 21, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@nvasilas It really works. Nice.

Tested by doing pip install -e ~/path/to/your/tmuxp/branch and doing tmuxp load ./workspacefile.yaml -L another-tmux-server.

Master: b70cd70: Layout is scrunched
This PR: Maintains the layout!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tony
tony merged commit 129300d into tmux-python:master Aug 21, 2022
tony added a commit that referenced this pull request Aug 21, 2022
@tony
Tag v1.13.1 (layout sizing bug fix from #793)
b9fd311
@tony

tony commented Aug 21, 2022

Copy link
Copy Markdown
Member

@nvasilas Thank you for this!

Live in v1.13.1

PyPI, GitHub Tag

Any better?

I will reach out to users in the other issues as well

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Aug 21, 2022
Layout broken #737
Closed
WorkspaceBuilder creates "main-horizontal" layout with a very thin main pane #667
Open
Layout is broken with 1.9.2 #704
Closed
@jgottfried jgottfried mentioned this pull request Aug 28, 2022
no space for new pane with main-horizontal and a few panes #800
Open
@ApexWeed ApexWeed mentioned this pull request Aug 29, 2022
Tiled layouts are broken in 1.13.1 #806
Closed
tony
tony reviewed Aug 29, 2022
View reviewed changes
Comment thread tmuxp/workspacebuilder.py

if "layout" in wconf:
w.select_layout(wconf["layout"])

@tony tony Aug 29, 2022

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nvasilas Do you recall the rationale behind the removing / adding of the .select_layout's here, here, and here?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@nvasilas nvasilas Aug 30, 2022

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tony If I recall correctly without this change the layout wasn't updated properly. It seems like I broke some things with this PR. I will investigate and I'll try to provide a fix.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tony reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@tony tony Aug 30, 2022

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nvasilas Thank you! Let's see how it goes!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
tony
tony reviewed Sep 10, 2022
View reviewed changes
Comment thread tests/test_workspacebuilder.py
def width(p):
return int(p._info["pane_width"])

assert height(main_horizontal_pane) > height(panes[0])

@tony tony Sep 10, 2022

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I learned something new:

main-horizontal doesn't necessarily guarantee the top pane will be bigger.

A large (main) pane is shown at the top of the window and the remaining panes are spread from left to right in the leftover space at the bottom. Use the main-pane-height window option to specify the height of the top pane. manpage

I will try to remedy this in #809

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tony tony mentioned this pull request Sep 10, 2022
tests / fix: Fix v1.13.1 pane spacing issue #809
Merged
@tony

tony commented Sep 10, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@nvasilas I am deliberating fully reversing the change while we understand the problem better. You can recreate the same PR again, but it's my fault since my tests didn't catch the issues - so I feel bad

The reason why I may reverse it (v1.13.2 and v1.13.3) is it had more of an effect on users with certain kinds of sessions than we both thought it would (#800)

If you have more ideas on this - I am all ears - a bulk of my effort is improving libtmux so issues like this are easier to diagnose. The experience is going to get better, and we'll improve at catching these issues, I promise.

In #809 I added a test for us to check for tmux spacing issues

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tony tony mentioned this pull request Sep 11, 2022
Tests: Build a test suite for layouts #815
Open
7 tasks
@tony

tony commented Sep 11, 2022

Copy link
Copy Markdown
Member

@nvasilas I've started a new issue at #815 the opportunity arises you'd like to collab (sorry about retracting on this PR, it is my 100% my mess up)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nvasilas

nvasilas commented Sep 14, 2022

Copy link
Copy Markdown
Contributor Author

@tony Sorry mate I was abroad and I wasn't able to follow the recent changes. I introduced the bug with my PR and reverting it was the best choice. So, no worries. When I get some free time I will try to find a proper fix.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tony

tony commented Sep 17, 2022

Copy link
Copy Markdown
Member

@nvasilas I will keep you apprised either way 👍 (and vice-versa, hopefully!)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tony tony mentioned this pull request Mar 8, 2026
fix(workspace/builder): Wait for shell prompt before layout and commands #1018
Merged
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tony tony tony left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@nvasilas @tony
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.