Title: `Builder`: Race conditions after #796 / strict mypy · Issue #856 · tmux-python/tmuxp · GitHub
Open Graph Title: `Builder`: Race conditions after #796 / strict mypy · Issue #856 · tmux-python/tmuxp
X Title: `Builder`: Race conditions after #796 / strict mypy · Issue #856 · tmux-python/tmuxp
Description: strict mypy #796 makes certain uncovered loading scenarios error tmuxp load when session already exists Launching a new tmux server with default socket path and socket name Details eduflow is already running. Attach? [Y/n] y Traceback (m...
Open Graph Description: strict mypy #796 makes certain uncovered loading scenarios error tmuxp load when session already exists Launching a new tmux server with default socket path and socket name Details eduflow is alrea...
X Description: strict mypy #796 makes certain uncovered loading scenarios error tmuxp load when session already exists Launching a new tmux server with default socket path and socket name Details eduflow is alrea...
Opengraph URL: https://github.com/tmux-python/tmuxp/issues/856
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Builder`: Race conditions after #796 / strict mypy","articleBody":"strict mypy #796 makes certain uncovered loading scenarios error\r\n\r\n- `tmuxp load` when session already exists\r\n- Launching a new tmux server with default socket path and socket name\r\n\r\n\u003cdetails>\r\n\r\n```\r\neduflow is already running. Attach? [Y/n] y\r\nTraceback (most recent call last):\r\n File \"/home/d/.cache/pypoetry/virtualenvs/tmuxp-m3jEKDEh-py3.11/bin/tmuxp\", line 6, in \u003cmodule>\r\n sys.exit(cli.cli())\r\n ^^^^^^^^^\r\n File \"~/projects/python/tmuxp/src/tmuxp/cli/__init__.py\", line 134, in cli\r\n command_load(\r\n File \"~/projects/python/tmuxp/src/tmuxp/cli/load.py\", line 640, in command_load\r\n load_workspace(\r\n File \"~/projects/python/tmuxp/src/tmuxp/cli/load.py\", line 416, in load_workspace\r\n _reattach(builder)\r\n File \"~/projects/python/tmuxp/src/tmuxp/cli/load.py\", line 161, in _reattach\r\n assert builder.session is not None\r\n ^^^^^^^^^^^^^^^\r\nAttributeError: 'WorkspaceBuilder' object has no attribute 'session'\r\n```\r\n\r\n\u003c/details>\r\n\r\nDeclone to loading existing session\r\n\r\n\u003cdetails>\r\n\r\n```\r\n❯ tmuxp load ~/work/python/libvcs\r\n[Loading] ~/projects/python/libvcs/.tmuxp.yaml\r\nAlready inside TMUX, switch to session? yes/no\r\nOr (a)ppend windows in the current active session?\r\n[y/n/a] - (y, n, a): n\r\nTraceback (most recent call last):\r\n File \"/home/d/.cache/pypoetry/virtualenvs/tmuxp-m3jEKDEh-py3.11/bin/tmuxp\", line 6, in \u003cmodule>\r\n sys.exit(cli.cli())\r\n ^^^^^^^^^\r\n File \"~/projects/python/tmuxp/src/tmuxp/cli/__init__.py\", line 134, in cli\r\n command_load(\r\n File \"~/projects/python/tmuxp/src/tmuxp/cli/load.py\", line 640, in command_load\r\n load_workspace(\r\n File \"~/projects/python/tmuxp/src/tmuxp/cli/load.py\", line 450, in load_workspace\r\n _load_detached(builder)\r\n File \"~/projects/python/tmuxp/src/tmuxp/cli/load.py\", line 217, in _load_detached\r\n builder.build()\r\n File \"~/projects/python/tmuxp/src/tmuxp/workspace/builder.py\", line 293, in build\r\n for w, wconf in self.iter_create_windows(session, append):\r\n File \"~/projects/python/tmuxp/src/tmuxp/workspace/builder.py\", line 416, in iter_create_windows\r\n w.set_window_option(key, val)\r\n File \"~/projects/python/libtmux/src/libtmux/window.py\", line 346, in set_window_option\r\n self.refresh()\r\n File \"~/projects/python/libtmux/src/libtmux/window.py\", line 84, in refresh\r\n return super()._refresh(\r\n ^^^^^^^^^^^^^^^^^\r\n File \"~/projects/python/libtmux/src/libtmux/neo.py\", line 174, in _refresh\r\n obj = fetch_obj(\r\n ^^^^^^^^^^\r\n File \"~/projects/python/libtmux/src/libtmux/neo.py\", line 242, in fetch_obj\r\n assert obj is not None\r\nAssertionError\r\n```\r\n\r\n\u003c/details>\r\n\r\nIntermittently during `tmuxp load`\r\n\r\n\u003cdetails>\r\n\r\n```\r\nDone in 1.87s.\r\nTraceback (most recent call last):\r\n File \"~/.local/bin/tmuxp\", line 8, in \u003cmodule>\r\n sys.exit(cli.cli())\r\n ^^^^^^^^^\r\n File \"~/projects/tmuxp/src/tmuxp/cli/__init__.py\", line 134, in cli\r\n command_load(\r\n File \"~/projects/tmuxp/src/tmuxp/cli/load.py\", line 640, in command_load\r\n load_workspace(\r\n File \"~/projects/tmuxp/src/tmuxp/cli/load.py\", line 452, in load_workspace\r\n _load_attached(builder, detached)\r\n File \"~/projects/tmuxp/src/tmuxp/cli/load.py\", line 184, in _load_attached\r\n builder.build()\r\n File \"~/projects/tmuxp/src/tmuxp/workspace/builder.py\", line 289, in build\r\n for w, wconf in self.iter_create_windows(session, append):\r\n File \"~/projects/tmuxp/src/tmuxp/workspace/builder.py\", line 411, in iter_create_windows\r\n w.set_window_option(key, val)\r\n File \"~/.local/lib/python3.11/site-packages/libtmux/window.py\", line 346, in set_window_option\r\n self.refresh()\r\n File \"~/.local/lib/python3.11/site-packages/libtmux/window.py\", line 84, in refresh\r\n return super()._refresh(\r\n ^^^^^^^^^^^^^^^^^\r\n File \"~/.local/lib/python3.11/site-packages/libtmux/neo.py\", line 174, in _refresh\r\n obj = fetch_obj(\r\n ^^^^^^^^^^\r\n File \"~/.local/lib/python3.11/site-packages/libtmux/neo.py\", line 242, in fetch_obj\r\n assert obj is not None\r\nAssertionError\r\n```\r\n\r\n\u003c/details>","author":{"url":"https://github.com/tony","@type":"Person","name":"tony"},"datePublished":"2022-12-29T00:05:23Z","url":"https://github.com/tmux-python/tmuxp/issues/856"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:43ee60b3-3b76-3b93-4efb-13e7c61e461e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B6A:1F4322:15313E:1CE82B:6B00649A |
| html-safe-nonce | f2da9a20722bb397fdde424501412a565294d8007b3131e80b5eb2decf3ecc46 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjZBOjFGNDMyMjoxNTMxM0U6MUNFODJCOjZCMDA2NDlBIiwidmlzaXRvcl9pZCI6IjU1NTI5OTE1MDExNTMyMzIwMjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cf09315a69c44e87155aceb49640de7091184f3293a0c5dae52117c543b7223a |
| hovercard-subject-tag | issue:1513249909 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/tmux-python/tmuxp/856/issue_layout |
| twitter:image | https://opengraph.githubassets.com/71df5f9489870e911056c6cdb04bdd7d9cdbb2998a98228c6b95a8248bafd91d/tmux-python/tmuxp/issues/856 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/71df5f9489870e911056c6cdb04bdd7d9cdbb2998a98228c6b95a8248bafd91d/tmux-python/tmuxp/issues/856 |
| og:image:alt | strict mypy #796 makes certain uncovered loading scenarios error tmuxp load when session already exists Launching a new tmux server with default socket path and socket name Details eduflow is alrea... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tony |
| hostname | github.com |
| expected-hostname | github.com |
| None | 25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e |
| turbo-cache-control | no-preview |
| go-import | github.com/tmux-python/tmuxp git https://github.com/tmux-python/tmuxp.git |
| octolytics-dimension-user_id | 37234308 |
| octolytics-dimension-user_login | tmux-python |
| octolytics-dimension-repository_id | 12398170 |
| octolytics-dimension-repository_nwo | tmux-python/tmuxp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 12398170 |
| octolytics-dimension-repository_network_root_nwo | tmux-python/tmuxp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4f5c239e31f1f680e6bbc419ff92d774da616ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width