Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MountError: Can't mount widget(s) before MainArea(id='main-view') is mounted #122

Copy link
Copy link

Description

@almereyda
Issue body actions

When launching against Jupyverse and moving the mouse to the top of the screen or trying to hover the file list, the application crashes immediately.

Python 3.10, for that matter.

2026-01-09 21:50:07 [critical ] Exception                      [fps._module]
╭──────────────────────── Traceback (most recent call last) ─────────────────────────╮
│ /home/yala/.local/lib/python3.10/site-packages/fps/_module.py:517 in               │
│ _start_and_done                                                                    │
│                                                                                    │
│   514 │   │   │   log.critical("Module failed while starting", path=self.path)     │
│   515 │                                                                            │
│   516async def _start_and_done(self) -> None:                                 │
│ ❱ 517 │   │   await self.start()                                                   │
│   518 │   │   if not self._started.is_set():                                       │
│   519 │   │   │   self.done()                                                      │
│   520                                                                              │
│                                                                                    │
│ ╭──────────────────────────── locals ────────────────────────────╮                 │
│ │ self = <txl_jpterm.main.JptermModule object at 0x7c9c4ee82710> │                 │
│ ╰────────────────────────────────────────────────────────────────╯                 │
│                                                                                    │
│ /home/yala/.local/lib/python3.10/site-packages/txl_jpterm/main.py:70 in start      │
│                                                                                    │
│   67 │   │   file_browser = await self.get(FileBrowser)                            │
│   68 │   │   editors = await self.get(Editors)                                     │
│   69 │   │   file_browser.open_file_signal.connect(editors.on_open)                │
│ ❱ 70 │   │   jpterm.start(launcher, file_browser)                                  │
│   71                                                                               │
│                                                                                    │
│ ╭──────────────────────────────── locals ────────────────────────────────╮         │
│ │      editors = _Editors(id='editors')                                  │         │
│ │ file_browser = DirectoryTree(id='browser-view', name='.')              │         │
│ │       footer = Footer()                                                │         │
│ │       header = Header()                                                │         │
│ │       jpterm = Jpterm(                                                 │         │
│ │                │   title='Jpterm',                                     │         │
│ │                │   classes={'-show-browser', '-dark-mode'},            │         │
│ │                │   pseudo_classes={'focus', 'dark'}                    │         │
│ │                )                                                       │         │
│ │     launcher = _Launcher()                                             │         │
│ │    main_area = MainArea(id='main-view')                                │         │
│ │         self = <txl_jpterm.main.JptermModule object at 0x7c9c4ee82710> │         │
│ ╰────────────────────────────────────────────────────────────────────────╯         │
│                                                                                    │
│ /home/yala/.local/lib/python3.10/site-packages/txl_jpterm/main.py:35 in start      │
│                                                                                    │
│   32 │   │   container = Container(file_browser, self.main_area)                   │
│   33 │   │   self.mount(container)                                                 │
│   34 │   │   self.mount(self.footer)                                               │
│ ❱ 35 │   │   self.main_area.show(launcher, "Launcher", mount=False)                │
│   36 │                                                                             │
│   37def watch_show_browser(self, show_browser: bool) -> None:                 │
│   38 │   │   self.set_class(show_browser, "-show-browser")                         │
│                                                                                    │
│ ╭────────────────────────── locals ───────────────────────────╮                    │
│ │    container = Container()                                  │                    │
│ │ file_browser = DirectoryTree(id='browser-view', name='.')   │                    │
│ │     launcher = _Launcher()                                  │                    │
│ │         self = Jpterm(                                      │                    │
│ │                │   title='Jpterm',                          │                    │
│ │                │   classes={                                │                    │
│ │                │   │   '-show-browser',                     │                    │
│ │                │   │   '-dark-mode'                         │                    │
│ │                │   },                                       │                    │
│ │                │   pseudo_classes={'focus', 'dark'}         │                    │
│ │                )                                            │                    │
│ ╰─────────────────────────────────────────────────────────────╯                    │
│                                                                                    │
│ /home/yala/.local/lib/python3.10/site-packages/txl_jpterm/main_area.py:30 in show  │
│                                                                                    │
│   27 │   │   │   tab = Tab(str(title))                                             │
│   28 │   │   │   if self.tabs is None:                                             │
│   29 │   │   │   │   self.tabs = Tabs(tab)                                         │
│ ❱ 30 │   │   │   │   self.mount(self.tabs)                                         │
│   31 │   │   │   │   self.mount(widget)                                            │
│   32 │   │   │   │   mount = False                                                 │
│   33 │   │   │   else:                                                             │
│                                                                                    │
│ ╭───────────── locals ──────────────╮                                              │
│ │  mount = False                    │                                              │
│ │   self = MainArea(id='main-view') │                                              │
│ │    tab = Tab(id='tab-1')          │                                              │
│ │  title = 'Launcher'               │                                              │
│ │ widget = _Launcher()              │                                              │
│ ╰───────────────────────────────────╯                                              │
│                                                                                    │
│ /home/yala/.local/lib/python3.10/site-packages/textual/widget.py:1406 in mount     │
│                                                                                    │
│   1403 │   │   if self._closing or self._pruning:                                  │
│   1404 │   │   │   return AwaitMount(self, [])                                     │
│   1405 │   │   if not self.is_attached:                                            │
│ ❱ 1406 │   │   │   raise MountError(f"Can't mount widget(s) before {self!r} is mou │
│   1407 │   │   # Check for duplicate IDs in the incoming widgets                   │1408 │   │   ids_to_mount = [                                                    │
│   1409 │   │   │   widget_id for widget in widgets if (widget_id := widget.id) is  │
│                                                                                    │
│ ╭────────────── locals ──────────────╮                                             │
│ │   after = None                     │                                             │
│ │  before = None                     │                                             │
│ │    self = MainArea(id='main-view') │                                             │
│ │ widgets = (Tabs(),)                │                                             │
│ ╰────────────────────────────────────╯                                             │
╰────────────────────────────────────────────────────────────────────────────────────╯
MountError: Can't mount widget(s) before MainArea(id='main-view') is mounted

This was installed following the instructions on https://davidbrochart.github.io/jpterm/usage/CLI/

What could be happening here?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.