Benjamin-Loison / pyzo

Python to the people
https://pyzo.org
Other
0 stars 0 forks source link

Crash on launch `Uncaught Python exception: setChecked(self, a0: bool): argument 1 has unexpected type 'str'` #20

Open Benjamin-Loison opened 7 months ago

Benjamin-Loison commented 7 months ago
pyzo
Pyzo 4.14.4
Started our command server
Loaded theme 'Solarized_Dark'
Loaded theme 'Default'
Loaded theme 'Dark'
Loaded theme 'Scintilla'
Loaded theme 'default_dark'
Loaded theme 'Solarized_Light'
Uncaught Python exception: setChecked(self, a0: bool): argument 1 has unexpected type 'str'
  File "/home/benjamin/.local/bin/pyzo", line 8, in <module>
    sys.exit(main())
  File "/home/benjamin/.local/lib/python3.10/site-packages/pyzo/__main__.py", line 41, in main
    pyzo.start()
  File "/home/benjamin/.local/lib/python3.10/site-packages/pyzo/__init__.py", line 57, in start
    start()
  File "/home/benjamin/.local/lib/python3.10/site-packages/pyzo/_start.py", line 248, in start
    MainWindow(None, appLocale)
  File "/home/benjamin/.local/lib/python3.10/site-packages/pyzo/core/main.py", line 114, in __init__
    self._populate()
  File "/home/benjamin/.local/lib/python3.10/site-packages/pyzo/core/main.py", line 211, in _populate
    menu.buildMenus(self.menuBar())
  File "/home/benjamin/.local/lib/python3.10/site-packages/pyzo/core/menu.py", line 41, in buildMenus
    ViewMenu(menuBar, translate("menu", "View")),
  File "/home/benjamin/.local/lib/python3.10/site-packages/pyzo/core/menu.py", line 225, in __init__
    self.build()
  File "/home/benjamin/.local/lib/python3.10/site-packages/pyzo/core/menu.py", line 985, in build
    self.addEditorItem(
  File "/home/benjamin/.local/lib/python3.10/site-packages/pyzo/core/menu.py", line 1052, in addEditorItem
    self.addCheckItem(
  File "/home/benjamin/.local/lib/python3.10/site-packages/pyzo/core/menu.py", line 362, in addCheckItem
    a = self._addAction(text, icon, selected)
  File "/home/benjamin/.local/lib/python3.10/site-packages/pyzo/core/menu.py", line 253, in _addAction
    a.setChecked(selected)

Does not seem related to #11, as modifying the associated value in ~/.config/pyzo/config.ssdf has not changed anything.

Related to #21.

Benjamin-Loison commented 7 months ago

~/.local/lib/python3.10/site-packages/pyzo/core/menu.py:253 selected:

2024-04-14 01:18:47: 0
2024-04-14 01:18:47: 0
2024-04-14 01:18:47: 1
2024-04-14 01:18:47: 0
2024-04-14 01:18:47: False

So despite showing by default False in advanced settings if change it to False it actually changes 0 to False which is not correct.

Should check on a fresh install.