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

CommandError: -o is not supported with 'tabs.select_on_remove' set to 'last-used'! #7569

Open
The-Compiler opened this issue Jan 30, 2023 · 0 comments
Labels
bug: exception A Python exception gets thrown. priority: 2 - low Issues which are currently not very important.

Comments

@The-Compiler
Copy link
Member

Version info:
qutebrowser v2.5.2
Backend: QtWebEngine 5.15.11, based on Chromium 87.0.4280.144
Qt: 5.15.7

Does the bug happen if you start with --temp-basedir?: unknown

Description

11:05:11 DEBUG    commands   command:run:535 command called: tab-close ['-o']
11:05:11 DEBUG    commands   command:run:549 Calling qutebrowser.browser.commands.CommandDispatcher.tab_close(<qutebrowser.browser.commands.CommandDispatcher>, False, False, True, False, None)
11:05:11 DEBUG    prompt     prompt:ask_question:160 Asking question <qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>, blocking False, loops [], queue deque([])
11:05:11 DEBUG    prompt     prompt:_on_show_prompts:336 Displaying prompt qutebrowser.mainwindow.prompt.YesNoPrompt(question=<qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>)
11:05:11 DEBUG    modes      modeman:enter:363 Entering mode KeyMode.yesno (reason: question asked)
11:05:11 DEBUG    statusbar  bar:set_mode_active:330 Setting prompt flag to True
11:05:11 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: qutebrowser.mainwindow.prompt.YesNoPrompt(question=<qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>)
11:05:11 DEBUG    misc       mainwindow:_update_overlay_geometry:350 new geometry for <qutebrowser.mainwindow.prompt.PromptContainer win_id=0>: PyQt5.QtCore.QRect(1167, 1172, 227, 238)
11:05:11 DEBUG    prompt     prompt:_on_show_prompts:336 Displaying prompt qutebrowser.mainwindow.prompt.YesNoPrompt(question=<qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>)
11:05:11 DEBUG    modes      modeman:enter:363 Entering mode KeyMode.yesno (reason: question asked)
11:05:11 DEBUG    statusbar  bar:set_mode_active:330 Setting prompt flag to True
11:05:11 DEBUG    misc       mainwindow:_update_overlay_geometry:350 new geometry for <qutebrowser.mainwindow.prompt.PromptContainer win_id=2>: PyQt5.QtCore.QRect(141, 1220, 227, 238)
11:05:11 DEBUG    modes      modeman:_handle_keypress:312 match: 2, forward_unbound_keys: auto, passthrough: False, is_non_alnum: False, dry_run: False --> filter: True (focused: qutebrowser.mainwindow.prompt.YesNoPrompt(question=<qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>))
11:05:11 DEBUG    modes      modeman:_handle_keyrelease:337 filter: False
11:05:11 DEBUG    modes      modeman:_handle_keyrelease:337 filter: True
11:05:11 DEBUG    modes      modeman:_handle_keypress:287 got keypress in mode KeyMode.yesno - delegating to <qutebrowser.keyinput.modeparsers.CommandKeyParser do_log=True mode=<KeyMode.yesno: 4> passthrough=False supports_count=False win_id=0>
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Got key: 0x4f / modifiers: 0x0 / text: 'o' / dry_run True
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Trying match without modifiers
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Trying match with key_mappings
11:05:11 DEBUG    modes      modeman:_handle_keypress:312 match: 0, forward_unbound_keys: auto, passthrough: False, is_non_alnum: False, dry_run: True --> filter: True (focused: qutebrowser.mainwindow.prompt.YesNoPrompt(question=<qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>))
11:05:11 DEBUG    modes      modeman:_handle_keypress:287 got keypress in mode KeyMode.yesno - delegating to <qutebrowser.keyinput.modeparsers.CommandKeyParser do_log=True mode=<KeyMode.yesno: 4> passthrough=False supports_count=False win_id=0>
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Got key: 0x4f / modifiers: 0x0 / text: 'o' / dry_run False
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Trying match without modifiers
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Trying match with key_mappings
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Giving up with 'o', no matches
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Clearing keystring (was: o).
11:05:11 DEBUG    modes      modeman:_handle_keypress:312 match: 0, forward_unbound_keys: auto, passthrough: False, is_non_alnum: False, dry_run: False --> filter: True (focused: qutebrowser.mainwindow.prompt.YesNoPrompt(question=<qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>))
11:05:11 DEBUG    modes      modeman:_handle_keyrelease:337 filter: True
11:05:11 DEBUG    modes      modeman:_handle_keypress:287 got keypress in mode KeyMode.yesno - delegating to <qutebrowser.keyinput.modeparsers.CommandKeyParser do_log=True mode=<KeyMode.yesno: 4> passthrough=False supports_count=False win_id=0>
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Got key: 0x20 / modifiers: 0x0 / text: '<Space>' / dry_run True
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Trying match without modifiers
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Trying match with key_mappings
11:05:11 DEBUG    modes      modeman:_handle_keypress:312 match: 0, forward_unbound_keys: auto, passthrough: False, is_non_alnum: True, dry_run: True --> filter: False (focused: qutebrowser.mainwindow.prompt.YesNoPrompt(question=<qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>))
11:05:11 DEBUG    modes      modeman:_handle_keypress:287 got keypress in mode KeyMode.yesno - delegating to <qutebrowser.keyinput.modeparsers.CommandKeyParser do_log=True mode=<KeyMode.yesno: 4> passthrough=False supports_count=False win_id=0>
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Got key: 0x20 / modifiers: 0x0 / text: '<Space>' / dry_run False
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Trying match without modifiers
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Trying match with key_mappings
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Giving up with '<Space>', no matches
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Clearing keystring (was: <Space>).
11:05:11 DEBUG    modes      modeman:_handle_keypress:312 match: 0, forward_unbound_keys: auto, passthrough: False, is_non_alnum: True, dry_run: False --> filter: False (focused: qutebrowser.mainwindow.prompt.YesNoPrompt(question=<qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>))
11:05:11 DEBUG    modes      modeman:_handle_keypress:287 got keypress in mode KeyMode.yesno - delegating to <qutebrowser.keyinput.modeparsers.CommandKeyParser do_log=True mode=<KeyMode.yesno: 4> passthrough=False supports_count=False win_id=0>
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Got key: 0x59 / modifiers: 0x0 / text: 'y' / dry_run True
11:05:11 DEBUG    modes      modeman:_handle_keypress:312 match: 2, forward_unbound_keys: auto, passthrough: False, is_non_alnum: False, dry_run: True --> filter: True (focused: qutebrowser.mainwindow.prompt.YesNoPrompt(question=<qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>))
11:05:11 DEBUG    modes      modeman:_handle_keypress:287 got keypress in mode KeyMode.yesno - delegating to <qutebrowser.keyinput.modeparsers.CommandKeyParser do_log=True mode=<KeyMode.yesno: 4> passthrough=False supports_count=False win_id=0>
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Got key: 0x59 / modifiers: 0x0 / text: 'y' / dry_run False
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Definitive match for 'y'.
11:05:11 DEBUG    keyboard   basekeyparser:_debug_log:216 CommandKeyParser for mode yesno: Clearing keystring (was: y).
11:05:11 DEBUG    commands   command:run:535 command called: prompt-accept ['yes']
11:05:11 DEBUG    commands   command:run:549 Calling qutebrowser.mainwindow.prompt.PromptContainer.prompt_accept(<qutebrowser.mainwindow.prompt.PromptContainer win_id=0>, 'yes', save=False)
11:05:11 DEBUG    modes      modeman:leave:431 Leaving mode KeyMode.yesno (reason: :prompt-accept)
11:05:11 DEBUG    statusbar  bar:set_mode_active:330 Setting prompt flag to False
11:05:11 DEBUG    prompt     prompt:_on_mode_left:225 Left mode KeyMode.yesno, hiding <qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>
11:05:11 DEBUG    prompt     prompt:_on_show_prompts:316 Deleting old prompt qutebrowser.mainwindow.prompt.YesNoPrompt(question=<qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>)
11:05:11 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: <qutebrowser.mainwindow.tabwidget.TabBar count=9>
11:05:11 DEBUG    prompt     prompt:_on_show_prompts:321 No prompts left, hiding prompt container.
11:05:11 DEBUG    prompt     prompt:_on_show_prompts:316 Deleting old prompt qutebrowser.mainwindow.prompt.YesNoPrompt(question=<qutebrowser.utils.usertypes.Question default=False mode=<PromptMode.yesno: 1> option=None text='Are you sure you want to close a pinned tab?' title='Pinned Tab'>)
11:05:11 DEBUG    prompt     prompt:_on_show_prompts:321 No prompts left, hiding prompt container.
11:05:11 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.yesno (reason left in other window) as we're in mode KeyMode.normal
11:05:11 DEBUG    modes      modeman:leave:431 Leaving mode KeyMode.yesno (reason: left in other window)
11:05:11 DEBUG    statusbar  bar:set_mode_active:330 Setting prompt flag to False
11:05:11 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.yesno (reason left in other window) as we're in mode KeyMode.normal
11:05:11 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.yesno (reason left in other window) as we're in mode KeyMode.normal
11:05:11 DEBUG    modes      tabbedbrowser:on_mode_left:832 Left status-input mode, focusing <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=52 url='https://www.espn.com/nfl/game/_/gameId/401437920'>
11:05:11 DEBUG    modes      modeman:leave:431 Leaving mode KeyMode.normal (reason: enter normal: restore mode before yesno)
11:05:11 DEBUG    modes      tabbedbrowser:on_mode_left:832 Left status-input mode, focusing <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=5 url='https://mail.google.com/chat/u/0/#chat/dm/kKUfoIAAAAE'>
11:05:11 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: <PyQt5.QtWidgets.QWidget object at 0x7fbfe44d1120>
11:05:11 DEBUG    misc       app:on_focus_object_changed:581 Focus object changed: <PyQt5.QtCore.QObject object at 0x7fbfe44d1120>
11:05:11 DEBUG    modes      modeman:leave:431 Leaving mode KeyMode.normal (reason: enter normal: restore mode before yesno)
11:05:11 DEBUG    modes      modeman:leave:424 Ignoring leave request for KeyMode.yesno (reason :prompt-accept) as we're in mode KeyMode.normal
11:05:11 ERROR    misc       crashsignal:_handle_early_exits:241 Uncaught exception
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/qutebrowser/browser/commands.py", line 231, in _tab_close
    selection_override = self._get_selection_override(prev, next_,
  File "/usr/lib/python3.10/site-packages/qutebrowser/browser/commands.py", line 211, in _get_selection_override
    raise cmdutils.CommandError(
qutebrowser.api.cmdutils.CommandError: -o is not supported with 'tabs.select_on_remove' set to 'last-used'!

https://crashes.qutebrowser.org/view/b34504ed

How to reproduce

unknown

@The-Compiler The-Compiler added priority: 2 - low Issues which are currently not very important. bug: exception A Python exception gets thrown. labels Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: exception A Python exception gets thrown. priority: 2 - low Issues which are currently not very important.
Projects
None yet
Development

No branches or pull requests

1 participant