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

Left pane size changes when starting Spyder #21596

Closed
dalthviz opened this issue Dec 7, 2023 · 1 comment · Fixed by #22232
Closed

Left pane size changes when starting Spyder #21596

dalthviz opened this issue Dec 7, 2023 · 1 comment · Fixed by #22232

Comments

@dalthviz
Copy link
Member

dalthviz commented Dec 7, 2023

I do not see any tracebacks in the console, only a warning:

$ spyder
fromIccProfile: failed minimal tag size sanity
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: v0.9.4.4-ds-git20220108-9023143f8b93 is an invalid version and will not be supported in a future release
  warnings.warn(

(it really ends after the opening bracket)

But the actual symptom in the UI looks exactly like in the OP (#18915):

The leftmost pane will become larger (on every app start) and the remaining panes are shrinked proportionally, total window size remains unchanged.

original:
1

1st restart:
2

2nd restart:
3

3rd restart:
4


I do NOT believe (my intuition is telling me this) that OP's traceback has anything to do with it. He changed and updated more than one thing before reporting it fixed, but his original visible UI symptom looks exactly like mine:

Left pane growing and remaining panes shrinking proportionally.

To me it seems the left pane (or one of the tabs inside) does not want to accept the saved size or is applying the size wrongly and the other panes have no other choice than shrinking because they don`t fit into the remaining space. They seem to apply something from the saved layout because their size proportions remain correct, but they are forced to shrink. The left pane also seems to use the saved size in some way as a starting point, but then always add additional width to the already existing saved width.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy

$ plasmashell --version
plasmashell 5.24.7


Originally posted by @prof7bit in #18915 (comment)

Edit: Extra setup info:

  • Spyder version: 5.5.0 (pip)
  • Python version: 3.10.12 64-bit
  • Qt version: 5.15.3
  • PyQt5 version: 5.15.6
  • Operating System: Linux-5.15.0-89-generic-x86_64-with-glibc2.35
@ccordoba12
Copy link
Member

As I said in #18915 (comment), I think I know what's happening in this case: we're not saving the window layout before closing all plugins.

I'll submit a PR to fix that for Spyder 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment