dooit: [BUG] Crash on adding a workspace (only first?)

Describe the bug πŸ› Install by pip install dooit turns out it contains old code.

To Reproduce 🐣 Steps to reproduce the behavior:

  1. Install by pip install dooit
  2. run dooit from terminal
  3. image

Expected behavior πŸ€” Program can’t launch

Desktop (please complete the following information): πŸ€–

  • OS: Windows10
  • Version 22H2 19045.3803

Python

  • Version: 3.8.10

Additional context πŸ“ Require manual change the code(from pip install originally) from

from textual.widget import Widget
from dooit.ui.events.events import ChangeStatus, Notify, StatusType
from dooit.utils.keybinder import KeyBinder, KeyList
from dooit.api.model import Result


class KeyWidget(Widget):
    """
    A widget that calls function from keybinder
    """

    def __init__(
        self,
        *children: Widget,
        name: str | None = None,
        id: str | None = None,
        classes: str | None = None,
        disabled: bool = False

to

from typing import Optional
from textual.widget import Widget
from dooit.ui.events.events import ChangeStatus, Notify, StatusType
from dooit.utils.keybinder import KeyBinder, KeyList
from dooit.api.model import Result


class KeyWidget(Widget):
    """
    A widget that calls function from keybinder
    """

    def __init__(
        self,
        *children: Widget,
        name: Optional[str] = None,
        id: Optional[str] = None,
        classes: Optional[str] = None,
        disabled: bool = False

After the change, the program is able to launch

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Comments: 16 (10 by maintainers)

Most upvoted comments

Awesome. It’s really weird tho Alright, I’ll close this one for now. You can try again from Pip if that works for you or not πŸ˜„

Ugh, not sure what’s going on here. Looks like you’re on a windows machine so lemme try that πŸ˜ƒ

One more try πŸ˜„

Ah damn I need to bump textual as well. Gimme 5 mins πŸ˜„