after_merge stringlengths 28 79.6k | before_merge stringlengths 20 79.6k | url stringlengths 38 71 | full_traceback stringlengths 43 922k | traceback_type stringclasses 555
values |
|---|---|---|---|---|
def resolve_acls():
"""Resolve ACL references in config."""
def build_acl(acl, vid=None):
"""Check that ACL can be built from config."""
if acl.rules:
assert valve_acl.build_acl_ofmsgs(
[acl],
self.wildcard_table,
valve_of.goto_table(s... | def resolve_acls():
"""Resolve ACL references in config."""
def build_acl(acl, vid=None):
"""Check that ACL can be built from config."""
if acl.rules:
assert valve_acl.build_acl_ofmsgs(
[acl],
self.wildcard_table,
valve_of.goto_table(s... | https://github.com/faucetsdn/faucet/issues/1201 | Nov 15 01:59:34 faucet.exception ERROR Unhandled exception, killing RYU
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/faucet/valve_util.py", line 34, in __koe
func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/faucet/faucet.py", line 146, in _load_configs
new_config_file, self.l... | KeyError |
def finalize_config(self, dps):
"""Perform consistency checks after initial config parsing."""
def resolve_port_no(port_name):
"""Resolve port by name or number."""
if port_name in port_by_name:
return port_by_name[port_name].number
elif port_name in self.ports:
... | def finalize_config(self, dps):
"""Perform consistency checks after initial config parsing."""
def resolve_port_no(port_name):
"""Resolve port by name or number."""
if port_name in port_by_name:
return port_by_name[port_name].number
elif port_name in self.ports:
... | https://github.com/faucetsdn/faucet/issues/1201 | Nov 15 01:59:34 faucet.exception ERROR Unhandled exception, killing RYU
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/faucet/valve_util.py", line 34, in __koe
func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/faucet/faucet.py", line 146, in _load_configs
new_config_file, self.l... | KeyError |
def choose_file(multiple: bool) -> List[str]:
"""Select file(s) for uploading, using external command defined in config.
Args:
multiple: Should selecting multiple files be allowed.
Return:
A list of selected file paths, or empty list if no file is selected.
If multiple is False, th... | def choose_file(multiple: bool) -> List[str]:
"""Select file(s) for uploading, using external command defined in config.
Args:
multiple: Should selecting multiple files be allowed.
Return:
A list of selected file paths, or empty list if no file is selected.
If multiple is False, th... | https://github.com/qutebrowser/qutebrowser/issues/6175 | 20:03:45 DEBUG procs guiprocess:_pre_start:154 Executing: kitty nnn -p /tmp/qutebrowser-fileselect-kqiigxcd
[...]
20:03:48 DEBUG procs guiprocess:_on_finished:91 Process finished with code 0, status 0.
20:03:48 ERROR misc utils:cleanup_file:891 Failed to delete tempfile /tmp/qutebrowser-filesel... | FileNotFoundError |
def qt_args(namespace: argparse.Namespace) -> List[str]:
"""Get the Qt QApplication arguments based on an argparse namespace.
Args:
namespace: The argparse namespace.
Return:
The argv list to be passed to Qt.
"""
argv = [sys.argv[0]]
if namespace.qt_flag is not None:
a... | def qt_args(namespace: argparse.Namespace) -> List[str]:
"""Get the Qt QApplication arguments based on an argparse namespace.
Args:
namespace: The argparse namespace.
Return:
The argv list to be passed to Qt.
"""
argv = [sys.argv[0]]
if namespace.qt_flag is not None:
a... | https://github.com/qutebrowser/qutebrowser/issues/6161 | Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/florian/proj/qutebrowser/git/qutebrowser/__main__.py", line 29, in <module>
sys... | AssertionError |
def get_argparser():
"""Get the argparse parser."""
parser = argparse.ArgumentParser(
prog="qutebrowser", description=qutebrowser.__description__
)
parser.add_argument("-B", "--basedir", help="Base directory for all storage.")
parser.add_argument(
"-C", "--config-py", help="Path to c... | def get_argparser():
"""Get the argparse parser."""
parser = argparse.ArgumentParser(
prog="qutebrowser", description=qutebrowser.__description__
)
parser.add_argument("-B", "--basedir", help="Base directory for all storage.")
parser.add_argument(
"-C", "--config-py", help="Path to c... | https://github.com/qutebrowser/qutebrowser/issues/6091 | Traceback (most recent call last):
File "/bin/qutebrowser", line 33, in <module>
sys.exit(load_entry_point('qutebrowser==1.14.1', 'gui_scripts', 'qutebrowser')())
File "/usr/lib/python3.9/site-packages/qutebrowser/qutebrowser.py", line 204, in main
return app.run(args)
File "/usr/lib/python3.9/site-packages/qutebrowser... | AttributeError |
def _unpack_json_args(args):
"""Restore arguments from --json-args after a restart.
When restarting, we serialize the argparse namespace into json, and
construct a "fake" argparse.Namespace here based on the data loaded
from json.
"""
new_args = vars(args)
data = json.loads(args.json_args)
... | def _unpack_json_args(args):
"""Restore arguments from --json-args after a restart.
When restarting, we serialize the argparse namespace into json, and
construct a "fake" argparse.Namespace here based on the data loaded
from json.
"""
data = json.loads(args.json_args)
return argparse.Namesp... | https://github.com/qutebrowser/qutebrowser/issues/6091 | Traceback (most recent call last):
File "/bin/qutebrowser", line 33, in <module>
sys.exit(load_entry_point('qutebrowser==1.14.1', 'gui_scripts', 'qutebrowser')())
File "/usr/lib/python3.9/site-packages/qutebrowser/qutebrowser.py", line 204, in main
return app.run(args)
File "/usr/lib/python3.9/site-packages/qutebrowser... | AttributeError |
def process_pos_args(args, via_ipc=False, cwd=None, target_arg=None):
"""Process positional commandline args.
URLs to open have no prefix, commands to execute begin with a colon.
Args:
args: A list of arguments to process.
via_ipc: Whether the arguments were transmitted over IPC.
c... | def process_pos_args(args, via_ipc=False, cwd=None, target_arg=None):
"""Process positional commandline args.
URLs to open have no prefix, commands to execute begin with a colon.
Args:
args: A list of arguments to process.
via_ipc: Whether the arguments were transmitted over IPC.
c... | https://github.com/qutebrowser/qutebrowser/issues/6122 | Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/qutebrowser/completion/completer.py", line 260, in _update_completion
cur_tab = objreg.get('tab', scope='tab', window=self._win_id,
File "/usr/lib/python3.9/site-packages/qutebrowser/utils/objreg.py", line 241, in get
reg = _get_registry(scope, w... | qutebrowser.utils.objreg.RegistryUnavailableError |
def preload_resources() -> None:
"""Load resource files into the cache."""
resource_path = _resource_path("")
for subdir, ext in [
("html", ".html"),
("javascript", ".js"),
("javascript/quirks", ".js"),
]:
for name in _glob_resources(resource_path, subdir, ext):
... | def preload_resources() -> None:
"""Load resource files into the cache."""
resource_path = _resource_path("")
for subdir, ext in [("html", ".html"), ("javascript", ".js")]:
for name in _glob_resources(resource_path, subdir, ext):
_resource_cache[name] = read_file(name)
| https://github.com/qutebrowser/qutebrowser/issues/6098 | Traceback (most recent call last):
File "/home/florian/proj/qutebrowser/git/qutebrowser/commands/runners.py", line 319, in run_safely
File "/home/florian/proj/qutebrowser/git/qutebrowser/commands/runners.py", line 374, in run
File "/home/florian/proj/qutebrowser/git/qutebrowser/commands/command.py", line 553, in run
de... | FileNotFoundError |
def check_libraries():
"""Check if all needed Python libraries are installed."""
modules = {
"jinja2": _missing_str("jinja2"),
"yaml": _missing_str("PyYAML"),
"dataclasses": _missing_str("dataclasses"),
"PyQt5.QtQml": _missing_str("PyQt5.QtQml"),
"PyQt5.QtSql": _missing_s... | def check_libraries():
"""Check if all needed Python libraries are installed."""
modules = {
"jinja2": _missing_str("jinja2"),
"yaml": _missing_str("PyYAML"),
"dataclasses": _missing_str("dataclasses"),
"PyQt5.QtQml": _missing_str("PyQt5.QtQml"),
"PyQt5.QtSql": _missing_s... | https://github.com/qutebrowser/qutebrowser/issues/6083 | Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/root/qutebrowser/qutebrowser/__main__.py", line 29, in <module>
sys.exit(qutebrowser... | ModuleNotFoundError |
def set_pattern(self, val):
"""Setter for pattern.
Args:
val: The value to set.
"""
if len(val) > 5000: # avoid crash on huge search terms (#5973)
log.completion.warning(f"Trimming {len(val)}-char pattern to 5000")
val = val[:5000]
self._pattern = val
val = re.sub(r" +"... | def set_pattern(self, val):
"""Setter for pattern.
Args:
val: The value to set.
"""
self._pattern = val
val = re.sub(r" +", r" ", val) # See #1919
val = re.escape(val)
val = val.replace(r"\ ", ".*")
rx = QRegularExpression(val, QRegularExpression.CaseInsensitiveOption)
qtut... | https://github.com/qutebrowser/qutebrowser/issues/5973 | 16:00:59 DEBUG keyboard basekeyparser:_debug_log:216 NormalKeyParser for mode normal: Definitive match for 'go'.
16:00:59 DEBUG keyboard basekeyparser:_debug_log:216 NormalKeyParser for mode normal: Clearing keystring (was: go).
16:00:59 DEBUG commands command:run:538 command called: set-cmd-text [':open... | qutebrowser.utils.qtutils.QtValueError |
def set_pattern(self, val):
"""Setter for pattern.
Args:
val: The value to set.
"""
if len(val) > 5000: # avoid crash on huge search terms (#5973)
log.completion.warning(f"Trimming {len(val)}-char pattern to 5000")
val = val[:5000]
self._pattern = val
val = re.sub(r" +"... | def set_pattern(self, val):
"""Setter for pattern.
Args:
val: The value to set.
"""
self._pattern = val
val = re.sub(r" +", r" ", val) # See #1919
val = re.escape(val)
val = val.replace(r"\ ", ".*")
if len(val) > 5000: # avoid crash on huge search terms (#5973)
log.com... | https://github.com/qutebrowser/qutebrowser/issues/5973 | 16:00:59 DEBUG keyboard basekeyparser:_debug_log:216 NormalKeyParser for mode normal: Definitive match for 'go'.
16:00:59 DEBUG keyboard basekeyparser:_debug_log:216 NormalKeyParser for mode normal: Clearing keystring (was: go).
16:00:59 DEBUG commands command:run:538 command called: set-cmd-text [':open... | qutebrowser.utils.qtutils.QtValueError |
def to_py(self, value: _StrUnset) -> typing.Union[usertypes.Unset, None, QFont]:
self._basic_py_validation(value, str)
if isinstance(value, usertypes.Unset):
return value
elif not value:
return None
font = QFont()
font.setStyle(QFont.StyleNormal)
font.setWeight(QFont.Normal)
... | def to_py(self, value: _StrUnset) -> typing.Union[usertypes.Unset, None, QFont]:
self._basic_py_validation(value, str)
if isinstance(value, usertypes.Unset):
return value
elif not value:
return None
font = QFont()
font.setStyle(QFont.StyleNormal)
font.setWeight(QFont.Normal)
... | https://github.com/qutebrowser/qutebrowser/issues/5223 | Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/qutebrowser/config/configinit.py", line 67, in early_init configfiles.read_config_py(config_file) File "/usr/lib/python3.8/site-packages/qutebrowser/config/configfiles.py", line 743, in read_config_py raise configexc.ConfigFileErrors('config.py',... | configexc.ConfigFileError |
def _do_close(self):
"""Helper function for closeEvent."""
try:
last_visible = objreg.get("last-visible-main-window")
if self is last_visible:
objreg.delete("last-visible-main-window")
except KeyError:
pass
sessions.session_manager.save_last_window_session()
self.... | def _do_close(self):
"""Helper function for closeEvent."""
try:
last_visible = objreg.get("last-visible-main-window")
if self is last_visible:
objreg.delete("last-visible-main-window")
except KeyError:
pass
sessions.session_manager.save_last_window_session()
self.... | https://github.com/qutebrowser/qutebrowser/issues/5187 | 10:46:58 DEBUG init app:process_pos_args:299 Startup cmd ':later 500 quit'
10:46:58 DEBUG commands command:run:541 command called: later ['500', 'quit']
10:46:58 DEBUG commands command:run:556 Calling qutebrowser.misc.utilcmds.later(500, 'quit', 0)
10:46:58 DEBUG init app:_process_args:243 I... | subprocess.CalledProcessError |
def __init__(self, *, win_id, private, parent=None):
if private:
assert not qtutils.is_single_process()
super().__init__(parent)
self.widget = tabwidget.TabWidget(win_id, parent=self)
self._win_id = win_id
self._tab_insert_idx_left = 0
self._tab_insert_idx_right = -1
self.shutting_do... | def __init__(self, *, win_id, private, parent=None):
if private:
assert not qtutils.is_single_process()
super().__init__(parent)
self.widget = tabwidget.TabWidget(win_id, parent=self)
self._win_id = win_id
self._tab_insert_idx_left = 0
self._tab_insert_idx_right = -1
self.shutting_do... | https://github.com/qutebrowser/qutebrowser/issues/5187 | 10:46:58 DEBUG init app:process_pos_args:299 Startup cmd ':later 500 quit'
10:46:58 DEBUG commands command:run:541 command called: later ['500', 'quit']
10:46:58 DEBUG commands command:run:556 Calling qutebrowser.misc.utilcmds.later(500, 'quit', 0)
10:46:58 DEBUG init app:_process_args:243 I... | subprocess.CalledProcessError |
def fuzzy_url(
urlstr: str,
cwd: str = None,
relative: bool = False,
do_search: bool = True,
force_search: bool = False,
) -> QUrl:
"""Get a QUrl based on a user input which is URL or search term.
Args:
urlstr: URL to load as a string.
cwd: The current working directory, or ... | def fuzzy_url(
urlstr: str,
cwd: str = None,
relative: bool = False,
do_search: bool = True,
force_search: bool = False,
) -> QUrl:
"""Get a QUrl based on a user input which is URL or search term.
Args:
urlstr: URL to load as a string.
cwd: The current working directory, or ... | https://github.com/qutebrowser/qutebrowser/issues/970 | 11:33:17 DEBUG commands command:run:504 Calling qutebrowser.browser.commands.CommandDispatcher.paste(<qutebrowser.browser.commands.CommandDispatcher>, True, False, False, False)
11:33:17 DEBUG misc commands:paste:869 Primary selection contained: 'h = back
'
11:33:17 DEBUG url urlutils:is_url:247... | qutebrowser.utils.qtutils.QtValueError |
def _pop(self):
"""Pop a question from the queue and ask it, if there are any."""
log.prompt.debug("Popping from queue {}".format(self._queue))
if self._queue:
question = self._queue.popleft()
if not question.is_aborted:
# the question could already be aborted, e.g. by a cancelle... | def _pop(self):
"""Pop a question from the queue and ask it, if there are any."""
log.prompt.debug("Popping from queue {}".format(self._queue))
if self._queue:
question = self._queue.popleft()
if not sip.isdeleted(question):
# the question could already be deleted, e.g. by a canc... | https://github.com/qutebrowser/qutebrowser/issues/1249 | Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/qutebrowser/app.py", line 846, in eventFilter
return handler(event)
File "/usr/lib/python3.5/site-packages/qutebrowser/app.py", line 803, in _handle_key_event
return man.eventFilter(event)
File "/usr/lib/python3.5/site-packages/qutebrowser/keyinp... | RuntimeError |
def _is_surrogate(key):
"""Check if a codepoint is a UTF-16 surrogate.
UTF-16 surrogates are a reserved range of Unicode from 0xd800
to 0xd8ff, used to encode Unicode codepoints above the BMP
(Base Multilingual Plane)"""
return 0xD800 <= key <= 0xDFFF
| def _is_surrogate(key):
"""Check for Unicode characters such as emoji and extended CJK characters
Necessary to work around poor handling of higher codepoints by QKeyEvent
This checks for unicode codepoints above ASCII range. The highest unicode
is below Qt::Key modifiers and "special" keys, which start ... | https://github.com/qutebrowser/qutebrowser/issues/4439 | Traceback (most recent call last):
File "/home/florian/proj/qutebrowser/git/qutebrowser/keyinput/keyutils.py", line 82, in _check_valid_utf8
s.encode('utf-8')
UnicodeEncodeError: 'utf-8' codec can't encode character '\ud83c' in position 0: surrogates not allowed
During handling of the above exception, another exceptio... | UnicodeEncodeError |
def _remap_unicode(key, text):
"""Work around QtKeyEvent's bad values for high codepoints.
QKeyEvent handles higher unicode codepoints poorly (see
QTBUG-72776). It uses UTF-16 to handle key events, and for
higher codepoints that require UTF-16 surrogates (e.g. emoji
and some CJK characters), it set... | def _remap_unicode(key, text):
"""Work around Qt having bad values for UTF-16 surrogates
Qt events have the upper half of the UTF-16 representation as key()
instead of the unicode codepoint. We re-parse these from text()
"""
if _is_surrogate(key):
if len(text) != 1:
raise KeyPars... | https://github.com/qutebrowser/qutebrowser/issues/4439 | Traceback (most recent call last):
File "/home/florian/proj/qutebrowser/git/qutebrowser/keyinput/keyutils.py", line 82, in _check_valid_utf8
s.encode('utf-8')
UnicodeEncodeError: 'utf-8' codec can't encode character '\ud83c' in position 0: surrogates not allowed
During handling of the above exception, another exceptio... | UnicodeEncodeError |
def _start_cb(self, elems):
"""Initialize the elements and labels based on the context set."""
if self._context is None:
log.hints.debug("In _start_cb without context!")
return
if not elems:
message.error("No elements found.")
return
# Because _start_cb is called asynch... | def _start_cb(self, elems):
"""Initialize the elements and labels based on the context set."""
if self._context is None:
log.hints.debug("In _start_cb without context!")
return
if not elems:
message.error("No elements found.")
return
strings = self._hint_strings(elems)
... | https://github.com/qutebrowser/qutebrowser/issues/3892 | 16:39:39 DEBUG commands command:run:486 command called: follow-hint ['-s', 'd']
16:39:39 DEBUG commands command:run:501 Calling qutebrowser.browser.hints.HintManager.follow_hint(<qutebrowser.browser.hints.HintManager object at 0x7f70c01191f8>, True, 'd')
16:39:39 ERROR misc crashsignal:exception_hook... | AttributeError |
def run_batch(self, values):
"""Execute the query in batch mode."""
log.sql.debug('Running SQL query (batch): "{}"'.format(self.query.lastQuery()))
self._bind_values(values)
db = QSqlDatabase.database()
ok = db.transaction()
self._check_ok("transaction", ok)
ok = self.query.execBatch()
... | def run_batch(self, values):
"""Execute the query in batch mode."""
log.sql.debug('Running SQL query (batch): "{}"'.format(self.query.lastQuery()))
self._bind_values(values)
db = QSqlDatabase.database()
ok = db.transaction()
self._check_ok("transaction", ok)
ok = self.query.execBatch()
... | https://github.com/qutebrowser/qutebrowser/issues/3378 | 13:11:06 DEBUG modes tabbedbrowser:on_mode_left:618 Left status-input mode, focusing <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=1 url='https://[...].slack.com/messages/[...]/convo/[...]/'>
13:11:06 DEBUG modes modeman:leave:290 Ignoring leave request for KeyMode.prompt (reason abort... | AttributeError |
def _on_show_prompts(self, question):
"""Show a prompt for the given question.
Args:
question: A Question object or None.
"""
item = self._layout.takeAt(0)
if item is not None:
widget = item.widget()
log.prompt.debug("Deleting old prompt {}".format(widget))
widget.hi... | def _on_show_prompts(self, question):
"""Show a prompt for the given question.
Args:
question: A Question object or None.
"""
item = self._layout.takeAt(0)
if item is not None:
widget = item.widget()
log.prompt.debug("Deleting old prompt {}".format(widget))
widget.hi... | https://github.com/qutebrowser/qutebrowser/issues/3378 | 13:11:06 DEBUG modes tabbedbrowser:on_mode_left:618 Left status-input mode, focusing <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=1 url='https://[...].slack.com/messages/[...]/convo/[...]/'>
13:11:06 DEBUG modes modeman:leave:290 Ignoring leave request for KeyMode.prompt (reason abort... | AttributeError |
def _init_modules(args, crash_handler):
"""Initialize all 'modules' which need to be initialized.
Args:
args: The argparse namespace.
crash_handler: The CrashHandler instance.
"""
log.init.debug("Initializing save manager...")
save_manager = savemanager.SaveManager(q_app)
objreg... | def _init_modules(args, crash_handler):
"""Initialize all 'modules' which need to be initialized.
Args:
args: The argparse namespace.
crash_handler: The CrashHandler instance.
"""
log.init.debug("Initializing save manager...")
save_manager = savemanager.SaveManager(q_app)
objreg... | https://github.com/qutebrowser/qutebrowser/issues/4687 | 00:59:51 DEBUG completion completionmodel:set_pattern:179 Setting completion pattern ''
00:59:51 DEBUG sql sql:__init__:174 Preparing SQL query: "SELECT url, title, strftime('%Y-%m-%d', last_atime, 'unixepoch', 'localtime') FROM CompletionHistory WHERE ((url || title) LIKE :0 escape '\') ORDER BY last_ati... | qutebrowser.misc.sql.SqlEnvironmentError |
def _handle_sql_errors(self):
try:
yield
except sql.SqlKnownError as e:
message.error("Failed to write history: {}".format(e.text()))
| def _handle_sql_errors(self):
try:
yield
except sql.SqlEnvironmentError as e:
message.error("Failed to write history: {}".format(e.text()))
| https://github.com/qutebrowser/qutebrowser/issues/4687 | 00:59:51 DEBUG completion completionmodel:set_pattern:179 Setting completion pattern ''
00:59:51 DEBUG sql sql:__init__:174 Preparing SQL query: "SELECT url, title, strftime('%Y-%m-%d', last_atime, 'unixepoch', 'localtime') FROM CompletionHistory WHERE ((url || title) LIKE :0 escape '\') ORDER BY last_ati... | qutebrowser.misc.sql.SqlEnvironmentError |
def set_pattern(self, pattern):
"""Set the pattern used to filter results.
Args:
pattern: string pattern to filter by.
"""
# escape to treat a user input % or _ as a literal, not a wildcard
pattern = pattern.replace("%", "\\%")
pattern = pattern.replace("_", "\\_")
words = ["%{}%".f... | def set_pattern(self, pattern):
"""Set the pattern used to filter results.
Args:
pattern: string pattern to filter by.
"""
# escape to treat a user input % or _ as a literal, not a wildcard
pattern = pattern.replace("%", "\\%")
pattern = pattern.replace("_", "\\_")
words = ["%{}%".f... | https://github.com/qutebrowser/qutebrowser/issues/4687 | 00:59:51 DEBUG completion completionmodel:set_pattern:179 Setting completion pattern ''
00:59:51 DEBUG sql sql:__init__:174 Preparing SQL query: "SELECT url, title, strftime('%Y-%m-%d', last_atime, 'unixepoch', 'localtime') FROM CompletionHistory WHERE ((url || title) LIKE :0 escape '\') ORDER BY last_ati... | qutebrowser.misc.sql.SqlEnvironmentError |
def raise_sqlite_error(msg, error):
"""Raise either a SqlBugError or SqlKnownError."""
error_code = error.nativeErrorCode()
database_text = error.databaseText()
driver_text = error.driverText()
log.sql.debug("SQL error:")
log.sql.debug("type: {}".format(debug.qenum_key(QSqlError, error.type()))... | def raise_sqlite_error(msg, error):
"""Raise either a SqlBugError or SqlEnvironmentError."""
error_code = error.nativeErrorCode()
database_text = error.databaseText()
driver_text = error.driverText()
log.sql.debug("SQL error:")
log.sql.debug("type: {}".format(debug.qenum_key(QSqlError, error.ty... | https://github.com/qutebrowser/qutebrowser/issues/4687 | 00:59:51 DEBUG completion completionmodel:set_pattern:179 Setting completion pattern ''
00:59:51 DEBUG sql sql:__init__:174 Preparing SQL query: "SELECT url, title, strftime('%Y-%m-%d', last_atime, 'unixepoch', 'localtime') FROM CompletionHistory WHERE ((url || title) LIKE :0 escape '\') ORDER BY last_ati... | qutebrowser.misc.sql.SqlEnvironmentError |
def init(db_path):
"""Initialize the SQL database connection."""
database = QSqlDatabase.addDatabase("QSQLITE")
if not database.isValid():
raise SqlKnownError(
"Failed to add database. Are sqlite and Qt sqlite support installed?"
)
database.setDatabaseName(db_path)
if not... | def init(db_path):
"""Initialize the SQL database connection."""
database = QSqlDatabase.addDatabase("QSQLITE")
if not database.isValid():
raise SqlEnvironmentError(
"Failed to add database. Are sqlite and Qt sqlite support installed?"
)
database.setDatabaseName(db_path)
... | https://github.com/qutebrowser/qutebrowser/issues/4687 | 00:59:51 DEBUG completion completionmodel:set_pattern:179 Setting completion pattern ''
00:59:51 DEBUG sql sql:__init__:174 Preparing SQL query: "SELECT url, title, strftime('%Y-%m-%d', last_atime, 'unixepoch', 'localtime') FROM CompletionHistory WHERE ((url || title) LIKE :0 escape '\') ORDER BY last_ati... | qutebrowser.misc.sql.SqlEnvironmentError |
def version():
"""Return the sqlite version string."""
try:
if not QSqlDatabase.database().isOpen():
init(":memory:")
ver = Query("select sqlite_version()").run().value()
close()
return ver
return Query("select sqlite_version()").run().value()
... | def version():
"""Return the sqlite version string."""
try:
if not QSqlDatabase.database().isOpen():
init(":memory:")
ver = Query("select sqlite_version()").run().value()
close()
return ver
return Query("select sqlite_version()").run().value()
... | https://github.com/qutebrowser/qutebrowser/issues/4687 | 00:59:51 DEBUG completion completionmodel:set_pattern:179 Setting completion pattern ''
00:59:51 DEBUG sql sql:__init__:174 Preparing SQL query: "SELECT url, title, strftime('%Y-%m-%d', last_atime, 'unixepoch', 'localtime') FROM CompletionHistory WHERE ((url || title) LIKE :0 escape '\') ORDER BY last_ati... | qutebrowser.misc.sql.SqlEnvironmentError |
def set_pattern(self, pattern):
"""Set the pattern used to filter results.
Args:
pattern: string pattern to filter by.
"""
# escape to treat a user input % or _ as a literal, not a wildcard
pattern = pattern.replace("%", "\\%")
pattern = pattern.replace("_", "\\_")
words = ["%{}%".f... | def set_pattern(self, pattern):
"""Set the pattern used to filter results.
Args:
pattern: string pattern to filter by.
"""
# escape to treat a user input % or _ as a literal, not a wildcard
pattern = pattern.replace("%", "\\%")
pattern = pattern.replace("_", "\\_")
words = ["%{}%".f... | https://github.com/qutebrowser/qutebrowser/issues/4681 | 23:32:01 DEBUG completion completionmodel:set_pattern:179 Setting completion pattern 'x x [...]'
23:32:01 DEBUG sql sql:__init__:169 Preparing SQL query: "SELECT url, title, strftime('%Y-%m-%d', last_atime, 'unixepoch', 'localtime') FROM CompletionHistory WHERE ((url || ' ' || title) LIKE :0 escape '\' AND... | qutebrowser.misc.sql.SqlBugError |
def raise_sqlite_error(msg, error):
"""Raise either a SqlBugError or SqlKnownError."""
error_code = error.nativeErrorCode()
database_text = error.databaseText()
driver_text = error.driverText()
log.sql.debug("SQL error:")
log.sql.debug("type: {}".format(debug.qenum_key(QSqlError, error.type()))... | def raise_sqlite_error(msg, error):
"""Raise either a SqlBugError or SqlKnownError."""
error_code = error.nativeErrorCode()
database_text = error.databaseText()
driver_text = error.driverText()
log.sql.debug("SQL error:")
log.sql.debug("type: {}".format(debug.qenum_key(QSqlError, error.type()))... | https://github.com/qutebrowser/qutebrowser/issues/4681 | 23:32:01 DEBUG completion completionmodel:set_pattern:179 Setting completion pattern 'x x [...]'
23:32:01 DEBUG sql sql:__init__:169 Preparing SQL query: "SELECT url, title, strftime('%Y-%m-%d', last_atime, 'unixepoch', 'localtime') FROM CompletionHistory WHERE ((url || ' ' || title) LIKE :0 escape '\' AND... | qutebrowser.misc.sql.SqlBugError |
def reload(self, *, force=False):
if self.url().isValid():
self.predicted_navigation.emit(self.url())
if force:
action = QWebEnginePage.ReloadAndBypassCache
else:
action = QWebEnginePage.Reload
self._widget.triggerPageAction(action)
| def reload(self, *, force=False):
self.predicted_navigation.emit(self.url())
if force:
action = QWebEnginePage.ReloadAndBypassCache
else:
action = QWebEnginePage.Reload
self._widget.triggerPageAction(action)
| https://github.com/qutebrowser/qutebrowser/issues/3706 | Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/qutebrowser/browser/webengine/webenginetab.py", line 934, in _on_predicted_navigation
self.settings.update_for_url(url)
File "/usr/lib/python3.6/site-packages/qutebrowser/config/websettings.py", line 149, in update_for_url
value = values.get_for_... | qutebrowser.utils.qtutils.QtValueError |
def _on_predicted_navigation(self, url):
"""If we know we're going to visit an URL soon, change the settings."""
qtutils.ensure_valid(url)
self.settings.update_for_url(url)
| def _on_predicted_navigation(self, url):
"""If we know we're going to visit an URL soon, change the settings."""
self.settings.update_for_url(url)
| https://github.com/qutebrowser/qutebrowser/issues/3706 | Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/qutebrowser/browser/webengine/webenginetab.py", line 934, in _on_predicted_navigation
self.settings.update_for_url(url)
File "/usr/lib/python3.6/site-packages/qutebrowser/config/websettings.py", line 149, in update_for_url
value = values.get_for_... | qutebrowser.utils.qtutils.QtValueError |
def reload(self, *, force=False):
if self.url().isValid():
self.predicted_navigation.emit(self.url())
if force:
action = QWebPage.ReloadAndBypassCache
else:
action = QWebPage.Reload
self._widget.triggerPageAction(action)
| def reload(self, *, force=False):
self.predicted_navigation.emit(self.url())
if force:
action = QWebPage.ReloadAndBypassCache
else:
action = QWebPage.Reload
self._widget.triggerPageAction(action)
| https://github.com/qutebrowser/qutebrowser/issues/3706 | Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/qutebrowser/browser/webengine/webenginetab.py", line 934, in _on_predicted_navigation
self.settings.update_for_url(url)
File "/usr/lib/python3.6/site-packages/qutebrowser/config/websettings.py", line 149, in update_for_url
value = values.get_for_... | qutebrowser.utils.qtutils.QtValueError |
def update_for_url(self, url):
"""Update settings customized for the given tab.
Return:
A set of settings which actually changed.
"""
qtutils.ensure_valid(url)
changed_settings = set()
for values in config.instance:
if not values.opt.supports_pattern:
continue
... | def update_for_url(self, url):
"""Update settings customized for the given tab.
Return:
A set of settings which actually changed.
"""
changed_settings = set()
for values in config.instance:
if not values.opt.supports_pattern:
continue
value = values.get_for_url(... | https://github.com/qutebrowser/qutebrowser/issues/3706 | Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/qutebrowser/browser/webengine/webenginetab.py", line 934, in _on_predicted_navigation
self.settings.update_for_url(url)
File "/usr/lib/python3.6/site-packages/qutebrowser/config/websettings.py", line 149, in update_for_url
value = values.get_for_... | qutebrowser.utils.qtutils.QtValueError |
def download_dir():
"""Get the download directory to use."""
directory = config.val.downloads.location.directory
remember_dir = config.val.downloads.location.remember
if remember_dir and last_used_directory is not None:
ddir = last_used_directory
elif directory is None:
ddir = stand... | def download_dir():
"""Get the download directory to use."""
directory = config.val.downloads.location.directory
remember_dir = config.val.downloads.location.remember
if remember_dir and last_used_directory is not None:
ddir = last_used_directory
elif directory is None:
ddir = stand... | https://github.com/qutebrowser/qutebrowser/issues/2570 | 15:48:51 DEBUG downloads qtnetworkdownloads:fetch:489 fetch: PyQt5.QtCore.QUrl('https://en.wikipedia.org/wiki/Canadian_National_Vimy_Memorial') -> Canadian_National_Vimy_Memorial
15:48:51 DEBUG downloads downloads:_on_begin_insert_row:825 _on_begin_insert_row with idx 0, webengine False
15:48:51 DEBUG misc ... | PermissionError |
def download_dir():
"""Get the download directory to use."""
directory = config.val.downloads.location.directory
remember_dir = config.val.downloads.location.remember
if remember_dir and last_used_directory is not None:
ddir = last_used_directory
elif directory is None:
ddir = stand... | def download_dir():
"""Get the download directory to use."""
directory = config.val.downloads.location.directory
remember_dir = config.val.downloads.location.remember
if remember_dir and last_used_directory is not None:
ddir = last_used_directory
elif directory is None:
ddir = stand... | https://github.com/qutebrowser/qutebrowser/issues/2570 | 15:48:51 DEBUG downloads qtnetworkdownloads:fetch:489 fetch: PyQt5.QtCore.QUrl('https://en.wikipedia.org/wiki/Canadian_National_Vimy_Memorial') -> Canadian_National_Vimy_Memorial
15:48:51 DEBUG downloads downloads:_on_begin_insert_row:825 _on_begin_insert_row with idx 0, webengine False
15:48:51 DEBUG misc ... | PermissionError |
def _after_create_parent_question(self, force_overwrite, remember_directory):
"""After asking about parent directory.
Args:
force_overwrite: Force overwriting existing files.
remember_directory: If True, remember the directory for future
downloads.
"""
global... | def _after_create_parent_question(self, force_overwrite, remember_directory):
"""After asking about parent directory.
Args:
force_overwrite: Force overwriting existing files.
remember_directory: If True, remember the directory for future
downloads.
"""
global... | https://github.com/qutebrowser/qutebrowser/issues/2570 | 15:48:51 DEBUG downloads qtnetworkdownloads:fetch:489 fetch: PyQt5.QtCore.QUrl('https://en.wikipedia.org/wiki/Canadian_National_Vimy_Memorial') -> Canadian_National_Vimy_Memorial
15:48:51 DEBUG downloads downloads:_on_begin_insert_row:825 _on_begin_insert_row with idx 0, webengine False
15:48:51 DEBUG misc ... | PermissionError |
def _init_lineparser(self):
bookmarks_directory = os.path.join(standarddir.config(), "bookmarks")
os.makedirs(bookmarks_directory, exist_ok=True)
bookmarks_subdir = os.path.join("bookmarks", "urls")
self._lineparser = lineparser.LineParser(
standarddir.config(), bookmarks_subdir, parent=self
... | def _init_lineparser(self):
bookmarks_directory = os.path.join(standarddir.config(), "bookmarks")
if not os.path.isdir(bookmarks_directory):
os.makedirs(bookmarks_directory)
bookmarks_subdir = os.path.join("bookmarks", "urls")
self._lineparser = lineparser.LineParser(
standarddir.config... | https://github.com/qutebrowser/qutebrowser/issues/2570 | 15:48:51 DEBUG downloads qtnetworkdownloads:fetch:489 fetch: PyQt5.QtCore.QUrl('https://en.wikipedia.org/wiki/Canadian_National_Vimy_Memorial') -> Canadian_National_Vimy_Memorial
15:48:51 DEBUG downloads downloads:_on_begin_insert_row:825 _on_begin_insert_row with idx 0, webengine False
15:48:51 DEBUG misc ... | PermissionError |
def _prepare_save(self):
"""Prepare saving of the file.
Return:
True if the file should be saved, False otherwise.
"""
os.makedirs(self._configdir, 0o755, exist_ok=True)
return True
| def _prepare_save(self):
"""Prepare saving of the file.
Return:
True if the file should be saved, False otherwise.
"""
if not os.path.exists(self._configdir):
os.makedirs(self._configdir, 0o755)
return True
| https://github.com/qutebrowser/qutebrowser/issues/2570 | 15:48:51 DEBUG downloads qtnetworkdownloads:fetch:489 fetch: PyQt5.QtCore.QUrl('https://en.wikipedia.org/wiki/Canadian_National_Vimy_Memorial') -> Canadian_National_Vimy_Memorial
15:48:51 DEBUG downloads downloads:_on_begin_insert_row:825 _on_begin_insert_row with idx 0, webengine False
15:48:51 DEBUG misc ... | PermissionError |
def _create(path):
"""Create the `path` directory.
From the XDG basedir spec:
If, when attempting to write a file, the destination directory is
non-existent an attempt should be made to create it with permission
0700. If the destination directory exists already the permissions
s... | def _create(path):
"""Create the `path` directory.
From the XDG basedir spec:
If, when attempting to write a file, the destination directory is
non-existent an attempt should be made to create it with permission
0700. If the destination directory exists already the permissions
s... | https://github.com/qutebrowser/qutebrowser/issues/2570 | 15:48:51 DEBUG downloads qtnetworkdownloads:fetch:489 fetch: PyQt5.QtCore.QUrl('https://en.wikipedia.org/wiki/Canadian_National_Vimy_Memorial') -> Canadian_National_Vimy_Memorial
15:48:51 DEBUG downloads downloads:_on_begin_insert_row:825 _on_begin_insert_row with idx 0, webengine False
15:48:51 DEBUG misc ... | PermissionError |
def _follow_selected_cb(self, js_elem, tab=False):
"""Callback for javascript which clicks the selected element.
Args:
js_elem: The element serialized from javascript.
tab: Open in a new tab.
"""
if js_elem is None:
return
if js_elem == "focused":
# we had a focused ... | def _follow_selected_cb(self, js_elem, tab=False):
"""Callback for javascript which clicks the selected element.
Args:
js_elem: The element serialized from javascript.
tab: Open in a new tab.
"""
if js_elem is None:
return
if js_elem == "focused":
# we had a focused ... | https://github.com/qutebrowser/qutebrowser/issues/4073 | 08:20:52 DEBUG commands command:run:491 command called: follow-selected
08:20:52 DEBUG commands command:run:506 Calling qutebrowser.browser.commands.CommandDispatcher.follow_selected(<qutebrowser.browser.commands.CommandDispatcher>, tab=False)
08:20:52 DEBUG modes modeman:_handle_keypress:199 match: 2... | qutebrowser.browser.webelem.Error |
def _requires_user_interaction(self):
baseurl = self._tab.url()
url = self.resolve_url(baseurl)
if url is None:
return True
if baseurl.scheme() == url.scheme(): # e.g. a qute:// link
return False
return url.scheme() not in urlutils.WEBENGINE_SCHEMES
| def _requires_user_interaction(self):
baseurl = self._tab.url()
url = self.resolve_url(baseurl)
if url is None:
return True
return url.scheme() not in urlutils.WEBENGINE_SCHEMES
| https://github.com/qutebrowser/qutebrowser/issues/4073 | 08:20:52 DEBUG commands command:run:491 command called: follow-selected
08:20:52 DEBUG commands command:run:506 Calling qutebrowser.browser.commands.CommandDispatcher.follow_selected(<qutebrowser.browser.commands.CommandDispatcher>, tab=False)
08:20:52 DEBUG modes modeman:_handle_keypress:199 match: 2... | qutebrowser.browser.webelem.Error |
def _on_reply_error(self, code):
"""Handle QNetworkReply errors."""
if code == QNetworkReply.OperationCanceledError:
return
if self._reply is None:
error = "Unknown error: {}".format(debug.qenum_key(QNetworkReply, code))
else:
error = self._reply.errorString()
self._die(err... | def _on_reply_error(self, code):
"""Handle QNetworkReply errors."""
if code == QNetworkReply.OperationCanceledError:
return
self._die(self._reply.errorString())
| https://github.com/qutebrowser/qutebrowser/issues/1270 | DEBUG misc qutescheme:createRequest:80 url: qute://, path: , host
DEBUG downloads downloads:fetch:847 fetch: PyQt5.QtCore.QUrl('qute://') -> qutebrowser-download
DEBUG downloads downloads:set_filename:540 Setting filename to /tmp/qutebrowser-basedir-dtdr4vwx/download
DEBUG downloads downloads:set_f... | AttributeError |
def __init__(self, eventfilter, widget, win_id, parent=None):
super().__init__(parent)
self._filter = eventfilter
assert widget is not None
self._widget = widget
self._win_id = win_id
| def __init__(self, eventfilter, widget, parent=None):
super().__init__(parent)
self._filter = eventfilter
assert widget is not None
self._widget = widget
| https://github.com/qutebrowser/qutebrowser/issues/3913 | qutebrowser --version [17:43:09]
17:43:35 ERROR: Error while loading config.py
Traceback (most recent call last):
File "/nix/store/cfcd2j5l3ff8j51r6ad60ka5qg... | qutebrowser.config.configexc.ConfigFileErrors |
def eventFilter(self, obj, event):
"""Act on ChildAdded events."""
if event.type() == QEvent.ChildAdded:
child = event.child()
log.mouse.debug("{} got new child {}, installing filter".format(obj, child))
assert obj is self._widget
child.installEventFilter(self._filter)
i... | def eventFilter(self, obj, event):
"""Act on ChildAdded events."""
if event.type() == QEvent.ChildAdded:
child = event.child()
log.mouse.debug("{} got new child {}, installing filter".format(obj, child))
assert obj is self._widget
child.installEventFilter(self._filter)
i... | https://github.com/qutebrowser/qutebrowser/issues/3913 | qutebrowser --version [17:43:09]
17:43:35 ERROR: Error while loading config.py
Traceback (most recent call last):
File "/nix/store/cfcd2j5l3ff8j51r6ad60ka5qg... | qutebrowser.config.configexc.ConfigFileErrors |
def _install_event_filter(self):
fp = self._widget.focusProxy()
if fp is not None:
fp.installEventFilter(self._mouse_event_filter)
self._child_event_filter = mouse.ChildEventFilter(
eventfilter=self._mouse_event_filter,
widget=self._widget,
win_id=self.win_id,
parent=... | def _install_event_filter(self):
fp = self._widget.focusProxy()
if fp is not None:
fp.installEventFilter(self._mouse_event_filter)
self._child_event_filter = mouse.ChildEventFilter(
eventfilter=self._mouse_event_filter, widget=self._widget, parent=self
)
self._widget.installEventFilt... | https://github.com/qutebrowser/qutebrowser/issues/3913 | qutebrowser --version [17:43:09]
17:43:35 ERROR: Error while loading config.py
Traceback (most recent call last):
File "/nix/store/cfcd2j5l3ff8j51r6ad60ka5qg... | qutebrowser.config.configexc.ConfigFileErrors |
def _match_count(self, sequence, dry_run):
"""Try to match a key as count."""
txt = str(sequence[-1]) # To account for sequences changed above.
if (
txt in string.digits
and self._supports_count
and not (not self._count and txt == "0")
):
self._debug_log("Trying match as... | def _match_count(self, sequence, dry_run):
"""Try to match a key as count."""
txt = str(sequence[-1]) # To account for sequences changed above.
if txt.isdigit() and self._supports_count and not (not self._count and txt == "0"):
self._debug_log("Trying match as count")
assert len(txt) == 1, ... | https://github.com/qutebrowser/qutebrowser/issues/3743 | 15:47:41 DEBUG keyboard basekeyparser:_debug_log:89 Got key: 0xb2 / modifiers: 0x0 / text: '²' / dry_run True
15:47:41 DEBUG modes modeman:_handle_keypress:194 match: 2, forward_unbound_keys: auto, passthrough: False, is_non_alnum: False, dry_run: True --> filter: True (focused: <PyQt5.QtWidgets.QWidget ob... | ValueError |
def _open_startpage(win_id=None):
"""Open startpage.
The startpage is never opened if the given windows are not empty.
Args:
win_id: If None, open startpage in all empty windows.
If set, open the startpage in the given window.
"""
if win_id is not None:
window_ids =... | def _open_startpage(win_id=None):
"""Open startpage.
The startpage is never opened if the given windows are not empty.
Args:
win_id: If None, open startpage in all empty windows.
If set, open the startpage in the given window.
"""
if win_id is not None:
window_ids =... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _parse_line(self, line):
"""Parse a line from a host file.
Args:
line: The bytes object to parse.
Returns:
True if parsing succeeded, False otherwise.
"""
if line.startswith(b"#"):
# Ignoring comments early so we don't have to care about
# encoding errors in the... | def _parse_line(self, line):
"""Parse a line from a host file.
Args:
line: The bytes object to parse.
Returns:
True if parsing succeeded, False otherwise.
"""
if line.startswith(b"#"):
# Ignoring comments early so we don't have to care about
# encoding errors in the... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def __init__(self, *, win_id, mode_manager, private, parent=None):
self.private = private
self.win_id = win_id
self.tab_id = next(tab_id_gen)
super().__init__(parent)
self.registry = objreg.ObjectRegistry()
tab_registry = objreg.get("tab-registry", scope="window", window=win_id)
tab_registr... | def __init__(self, *, win_id, mode_manager, private, parent=None):
self.private = private
self.win_id = win_id
self.tab_id = next(tab_id_gen)
super().__init__(parent)
self.registry = objreg.ObjectRegistry()
tab_registry = objreg.get("tab-registry", scope="window", window=win_id)
tab_registr... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _openurl_prepare(self, url, *, predict=True):
qtutils.ensure_valid(url)
if predict:
self.predicted_navigation.emit(url)
| def _openurl_prepare(self, url):
qtutils.ensure_valid(url)
self.predicted_navigation.emit(url)
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def openurl(self, url, *, predict=True):
raise NotImplementedError
| def openurl(self, url):
raise NotImplementedError
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _count(self):
"""Convenience method to get the widget count."""
return self._tabbed_browser.widget.count()
| def _count(self):
"""Convenience method to get the widget count."""
return self._tabbed_browser.count()
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _set_current_index(self, idx):
"""Convenience method to set the current widget index."""
cmdutils.check_overflow(idx, "int")
self._tabbed_browser.widget.setCurrentIndex(idx)
| def _set_current_index(self, idx):
"""Convenience method to set the current widget index."""
cmdutils.check_overflow(idx, "int")
self._tabbed_browser.setCurrentIndex(idx)
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _current_index(self):
"""Convenience method to get the current widget index."""
return self._tabbed_browser.widget.currentIndex()
| def _current_index(self):
"""Convenience method to get the current widget index."""
return self._tabbed_browser.currentIndex()
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _current_widget(self):
"""Get the currently active widget from a command."""
widget = self._tabbed_browser.widget.currentWidget()
if widget is None:
raise cmdexc.CommandError("No WebView available yet!")
return widget
| def _current_widget(self):
"""Get the currently active widget from a command."""
widget = self._tabbed_browser.currentWidget()
if widget is None:
raise cmdexc.CommandError("No WebView available yet!")
return widget
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _cntwidget(self, count=None):
"""Return a widget based on a count/idx.
Args:
count: The tab index, or None.
Return:
The current widget if count is None.
The widget with the given tab ID if count is given.
None if no widget was found.
"""
if count is None:
... | def _cntwidget(self, count=None):
"""Return a widget based on a count/idx.
Args:
count: The tab index, or None.
Return:
The current widget if count is None.
The widget with the given tab ID if count is given.
None if no widget was found.
"""
if count is None:
... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _tab_focus_last(self, *, show_error=True):
"""Select the tab which was last focused."""
try:
tab = objreg.get("last-focused-tab", scope="window", window=self._win_id)
except KeyError:
if not show_error:
return
raise cmdexc.CommandError("No last focused tab!")
idx ... | def _tab_focus_last(self, *, show_error=True):
"""Select the tab which was last focused."""
try:
tab = objreg.get("last-focused-tab", scope="window", window=self._win_id)
except KeyError:
if not show_error:
return
raise cmdexc.CommandError("No last focused tab!")
idx ... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _tab_close(self, tab, prev=False, next_=False, opposite=False):
"""Helper function for tab_close be able to handle message.async.
Args:
tab: Tab object to select be closed.
prev: Force selecting the tab before the current tab.
next_: Force selecting the tab after the current tab.
... | def _tab_close(self, tab, prev=False, next_=False, opposite=False):
"""Helper function for tab_close be able to handle message.async.
Args:
tab: Tab object to select be closed.
prev: Force selecting the tab before the current tab.
next_: Force selecting the tab after the current tab.
... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def tab_pin(self, count=None):
"""Pin/Unpin the current/[count]th tab.
Pinning a tab shrinks it to the size of its title text.
Attempting to close a pinned tab will cause a confirmation,
unless --force is passed.
Args:
count: The tab index to pin or unpin, or None
"""
tab = self._c... | def tab_pin(self, count=None):
"""Pin/Unpin the current/[count]th tab.
Pinning a tab shrinks it to the size of its title text.
Attempting to close a pinned tab will cause a confirmation,
unless --force is passed.
Args:
count: The tab index to pin or unpin, or None
"""
tab = self._c... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def tab_clone(self, bg=False, window=False):
"""Duplicate the current tab.
Args:
bg: Open in a background tab.
window: Open in a new window.
Return:
The new QWebView.
"""
cmdutils.check_exclusive((bg, window), "bw")
curtab = self._current_widget()
cur_title = self._... | def tab_clone(self, bg=False, window=False):
"""Duplicate the current tab.
Args:
bg: Open in a background tab.
window: Open in a new window.
Return:
The new QWebView.
"""
cmdutils.check_exclusive((bg, window), "bw")
curtab = self._current_widget()
cur_title = self._... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def yank(self, what="url", sel=False, keep=False):
"""Yank something to the clipboard or primary selection.
Args:
what: What to yank.
- `url`: The current URL.
- `pretty-url`: The URL in pretty decoded form.
- `title`: The current page's title.
- `domain... | def yank(self, what="url", sel=False, keep=False):
"""Yank something to the clipboard or primary selection.
Args:
what: What to yank.
- `url`: The current URL.
- `pretty-url`: The URL in pretty decoded form.
- `title`: The current page's title.
- `domain... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def tab_only(self, prev=False, next_=False, force=False):
"""Close all tabs except for the current one.
Args:
prev: Keep tabs before the current.
next_: Keep tabs after the current.
force: Avoid confirmation for pinned tabs.
"""
cmdutils.check_exclusive((prev, next_), "pn")
... | def tab_only(self, prev=False, next_=False, force=False):
"""Close all tabs except for the current one.
Args:
prev: Keep tabs before the current.
next_: Keep tabs after the current.
force: Avoid confirmation for pinned tabs.
"""
cmdutils.check_exclusive((prev, next_), "pn")
... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def tab_prev(self, count=1):
"""Switch to the previous tab, or switch [count] tabs back.
Args:
count: How many tabs to switch back.
"""
if self._count() == 0:
# Running :tab-prev after last tab was closed
# See https://github.com/qutebrowser/qutebrowser/issues/1448
retur... | def tab_prev(self, count=1):
"""Switch to the previous tab, or switch [count] tabs back.
Args:
count: How many tabs to switch back.
"""
if self._count() == 0:
# Running :tab-prev after last tab was closed
# See https://github.com/qutebrowser/qutebrowser/issues/1448
retur... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def tab_next(self, count=1):
"""Switch to the next tab, or switch [count] tabs forward.
Args:
count: How many tabs to switch forward.
"""
if self._count() == 0:
# Running :tab-next after last tab was closed
# See https://github.com/qutebrowser/qutebrowser/issues/1448
ret... | def tab_next(self, count=1):
"""Switch to the next tab, or switch [count] tabs forward.
Args:
count: How many tabs to switch forward.
"""
if self._count() == 0:
# Running :tab-next after last tab was closed
# See https://github.com/qutebrowser/qutebrowser/issues/1448
ret... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _resolve_buffer_index(self, index):
"""Resolve a buffer index to the tabbedbrowser and tab.
Args:
index: The [win_id/]index of the tab to be selected. Or a substring
in which case the closest match will be focused.
"""
index_parts = index.split("/", 1)
try:
for p... | def _resolve_buffer_index(self, index):
"""Resolve a buffer index to the tabbedbrowser and tab.
Args:
index: The [win_id/]index of the tab to be selected. Or a substring
in which case the closest match will be focused.
"""
index_parts = index.split("/", 1)
try:
for p... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def buffer(self, index=None, count=None):
"""Select tab by index or url/title best match.
Focuses window if necessary when index is given. If both index and
count are given, use count.
With neither index nor count given, open the qute://tabs page.
Args:
index: The [win_id/]index of the ta... | def buffer(self, index=None, count=None):
"""Select tab by index or url/title best match.
Focuses window if necessary when index is given. If both index and
count are given, use count.
With neither index nor count given, open the qute://tabs page.
Args:
index: The [win_id/]index of the ta... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def tab_move(self, index: typing.Union[str, int] = None, count=None):
"""Move the current tab according to the argument and [count].
If neither is given, move it to the first position.
Args:
index: `+` or `-` to move relative to the current tab by
count, or a default of 1 space.
... | def tab_move(self, index: typing.Union[str, int] = None, count=None):
"""Move the current tab according to the argument and [count].
If neither is given, move it to the first position.
Args:
index: `+` or `-` to move relative to the current tab by
count, or a default of 1 space.
... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _run_userscript(self, selection, cmd, args, verbose):
"""Run a userscript given as argument.
Args:
cmd: The userscript to run.
args: Arguments to pass to the userscript.
verbose: Show notifications when the command started/exited.
"""
env = {
"QUTE_MODE": "command",
... | def _run_userscript(self, selection, cmd, args, verbose):
"""Run a userscript given as argument.
Args:
cmd: The userscript to run.
args: Arguments to pass to the userscript.
verbose: Show notifications when the command started/exited.
"""
env = {
"QUTE_MODE": "command",
... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _open_editor_cb(self, elem):
"""Open editor after the focus elem was found in open_editor."""
if elem is None:
message.error("No element focused!")
return
if not elem.is_editable(strict=True):
message.error("Focused element is not editable!")
return
text = elem.value... | def _open_editor_cb(self, elem):
"""Open editor after the focus elem was found in open_editor."""
if elem is None:
message.error("No element focused!")
return
if not elem.is_editable(strict=True):
message.error("Focused element is not editable!")
return
text = elem.value... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def on_file_updated(self, ed, elem, text):
"""Write the editor text into the form field and clean up tempfile.
Callback for GUIProcess when the edited text was updated.
Args:
elem: The WebElementWrapper which was modified.
text: The new text to insert.
"""
try:
elem.set_val... | def on_file_updated(self, elem, text):
"""Write the editor text into the form field and clean up tempfile.
Callback for GUIProcess when the edited text was updated.
Args:
elem: The WebElementWrapper which was modified.
text: The new text to insert.
"""
try:
elem.set_value(t... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def fullscreen(self, leave=False):
"""Toggle fullscreen mode.
Args:
leave: Only leave fullscreen if it was entered by the page.
"""
if leave:
tab = self._current_widget()
try:
tab.action.exit_fullscreen()
except browsertab.UnsupportedOperationError:
... | def fullscreen(self, leave=False):
"""Toggle fullscreen mode.
Args:
leave: Only leave fullscreen if it was entered by the page.
"""
if leave:
tab = self._current_widget()
try:
tab.action.exit_fullscreen()
except browsertab.UnsupportedOperationError:
... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def parse(cls, source):
"""GreasemonkeyScript factory.
Takes a userscript source and returns a GreasemonkeyScript.
Parses the Greasemonkey metadata block, if present, to fill out
attributes.
"""
matches = re.split(cls.HEADER_REGEX, source, maxsplit=2)
try:
_head, props, _code = matc... | def parse(cls, source):
"""GreasemonkeyScript factory.
Takes a userscript source and returns a GreasemonkeyScript.
Parses the Greasemonkey metadata block, if present, to fill out
attributes.
"""
matches = re.split(cls.HEADER_REGEX, source, maxsplit=2)
try:
_head, props, _code = matc... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def code(self):
"""Return the processed JavaScript code of this script.
Adorns the source code with GM_* methods for Greasemonkey
compatibility and wraps it in an IIFE to hide it within a
lexical scope. Note that this means line numbers in your
browser's debugger/inspector will not match up to the ... | def code(self):
"""Return the processed JavaScript code of this script.
Adorns the source code with GM_* methods for Greasemonkey
compatibility and wraps it in an IIFE to hide it within a
lexical scope. Note that this means line numbers in your
browser's debugger/inspector will not match up to the ... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def start(
self, # pylint: disable=keyword-arg-before-vararg
group=webelem.Group.all,
target=Target.normal,
*args,
win_id,
mode=None,
add_history=False,
rapid=False,
):
"""Start hinting.
Args:
rapid: Whether to do rapid hinting. With rapid hinting, the hint
... | def start(
self, # pylint: disable=keyword-arg-before-vararg
group=webelem.Group.all,
target=Target.normal,
*args,
win_id,
mode=None,
add_history=False,
rapid=False,
):
"""Start hinting.
Args:
rapid: Whether to do rapid hinting. With rapid hinting, the hint
... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _do_cancel(self):
self._read_timer.stop()
if self._reply is not None:
self._reply.finished.disconnect(self._on_reply_finished)
self._reply.abort()
self._reply.deleteLater()
self._reply = None
if self.fileobj is not None:
self.fileobj.close()
self.cancelled.emi... | def _do_cancel(self):
if self._reply is not None:
self._reply.finished.disconnect(self._on_reply_finished)
self._reply.abort()
self._reply.deleteLater()
self._reply = None
if self.fileobj is not None:
self.fileobj.close()
self.cancelled.emit()
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _filter_signals(self, signal, tab, *args):
"""Filter signals and trigger TabbedBrowser signals if needed.
Triggers signal if the original signal was sent from the _current_ tab
and not from any other one.
The original signal does not matter, since we get the new signal and
all args.
Args:... | def _filter_signals(self, signal, tab, *args):
"""Filter signals and trigger TabbedBrowser signals if needed.
Triggers signal if the original signal was sent from the _current_ tab
and not from any other one.
The original signal does not matter, since we get the new signal and
all args.
Args:... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def __init__(self, parent=None):
super().__init__(parent)
self.port = None
view = QWebEngineView()
settings = view.settings()
settings.setAttribute(QWebEngineSettings.JavascriptEnabled, True)
self._set_widget(view)
| def __init__(self, parent=None):
super().__init__(parent)
self.port = None
view = QWebEngineView()
self._set_widget(view)
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _update_settings(option):
"""Update global settings when qwebsettings changed."""
global_settings.update_setting(option)
if option in ["content.headers.user_agent", "content.headers.accept_language"]:
default_profile.setter.set_http_headers()
private_profile.setter.set_http_headers()
... | def _update_settings(option):
"""Update global settings when qwebsettings changed."""
global_settings.update_setting(option)
if option in ["scrolling.bar", "content.user_stylesheets"]:
_init_stylesheet(default_profile)
_init_stylesheet(private_profile)
_update_stylesheet()
elif ... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _init_profiles():
"""Init the two used QWebEngineProfiles."""
global default_profile, private_profile
default_profile = QWebEngineProfile.defaultProfile()
default_profile.setter = ProfileSetter(default_profile)
default_profile.setCachePath(os.path.join(standarddir.cache(), "webengine"))
def... | def _init_profiles():
"""Init the two used QWebEngineProfiles."""
global default_profile, private_profile
default_profile = QWebEngineProfile.defaultProfile()
default_profile.setCachePath(os.path.join(standarddir.cache(), "webengine"))
default_profile.setPersistentStoragePath(
os.path.join(... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def __init__(self, profile):
self._profile = profile
| def __init__(self, settings):
super().__init__(settings)
# Attributes which don't exist in all Qt versions.
new_attributes = {
# Qt 5.8
"content.print_element_backgrounds": "PrintElementBackgrounds",
}
for name, attribute in new_attributes.items():
try:
value = ge... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def init():
"""Initialize QtWebEngine-specific modules."""
# For some reason we need to keep a reference, otherwise the scheme handler
# won't work...
# https://www.riverbankcomputing.com/pipermail/pyqt/2016-September/038075.html
global _qute_scheme_handler
app = QApplication.instance()
log... | def init():
"""Initialize QtWebEngine-specific modules."""
# For some reason we need to keep a reference, otherwise the scheme handler
# won't work...
# https://www.riverbankcomputing.com/pipermail/pyqt/2016-September/038075.html
global _qute_scheme_handler
app = QApplication.instance()
log... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _on_mode_entered(self, mode):
if mode != usertypes.KeyMode.caret:
return
if self._tab.search.search_displayed:
# We are currently in search mode.
# convert the search to a blue selection so we can operate on it
# https://bugreports.qt.io/browse/QTBUG-60673
self._tab.... | def _on_mode_entered(self, mode):
if mode != usertypes.KeyMode.caret:
return
if self._tab.search.search_displayed:
# We are currently in search mode.
# convert the search to a blue selection so we can operate on it
# https://bugreports.qt.io/browse/QTBUG-60673
self._tab.... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def toggle_selection(self):
self._js_call("toggleSelection", self.selection_toggled.emit)
| def toggle_selection(self):
self._js_call("toggleSelection")
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _js_call(self, command, callback=None):
self._tab.run_js_async(javascript.assemble("caret", command), callback)
| def _js_call(self, command):
self._tab.run_js_async(javascript.assemble("caret", command))
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _repeated_key_press(self, key, count=1, modifier=Qt.NoModifier):
"""Send count fake key presses to this scroller's WebEngineTab."""
for _ in range(min(count, 1000)):
self._tab.key_press(key, modifier)
| def _repeated_key_press(self, key, count=1, modifier=Qt.NoModifier):
"""Send count fake key presses to this scroller's WebEngineTab."""
for _ in range(min(count, 5000)):
self._tab.key_press(key, modifier)
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def load_items(self, items):
if items:
self._tab.predicted_navigation.emit(items[-1].url)
stream, _data, cur_data = tabhistory.serialize(items)
qtutils.deserialize_stream(stream, self._history)
@pyqtSlot()
def _on_load_finished():
self._tab.scroller.to_point(cur_data["scroll-pos"])... | def load_items(self, items):
stream, _data, cur_data = tabhistory.serialize(items)
qtutils.deserialize_stream(stream, self._history)
@pyqtSlot()
def _on_load_finished():
self._tab.scroller.to_point(cur_data["scroll-pos"])
self._tab.load_finished.disconnect(_on_load_finished)
if cur... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def __init__(self, *, win_id, mode_manager, private, parent=None):
super().__init__(
win_id=win_id, mode_manager=mode_manager, private=private, parent=parent
)
widget = webview.WebEngineView(tabdata=self.data, win_id=win_id, private=private)
self.history = WebEngineHistory(self)
self.scrolle... | def __init__(self, *, win_id, mode_manager, private, parent=None):
super().__init__(
win_id=win_id, mode_manager=mode_manager, private=private, parent=parent
)
widget = webview.WebEngineView(tabdata=self.data, win_id=win_id, private=private)
self.history = WebEngineHistory(self)
self.scrolle... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _init_js(self):
"""Initialize global qutebrowser JavaScript."""
js_code = javascript.wrap_global(
"scripts",
utils.read_file("javascript/scroll.js"),
utils.read_file("javascript/webelem.js"),
utils.read_file("javascript/caret.js"),
)
# FIXME:qtwebengine what about sub... | def _init_js(self):
js_code = "\n".join(
[
'"use strict";',
"window._qutebrowser = window._qutebrowser || {};",
utils.read_file("javascript/scroll.js"),
utils.read_file("javascript/webelem.js"),
utils.read_file("javascript/caret.js"),
]
... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def openurl(self, url, *, predict=True):
"""Open the given URL in this tab.
Arguments:
url: The QUrl to open.
predict: If set to False, predicted_navigation is not emitted.
"""
self._saved_zoom = self.zoom.factor()
self._openurl_prepare(url, predict=predict)
self._widget.load(ur... | def openurl(self, url):
self._saved_zoom = self.zoom.factor()
self._openurl_prepare(url)
self._widget.load(url)
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _on_load_finished(self, ok):
"""Display a static error page if JavaScript is disabled."""
super()._on_load_finished(ok)
js_enabled = self.settings.test_attribute("content.javascript.enabled")
if not ok and not js_enabled:
self.dump_async(self._error_page_workaround)
if ok and self._relo... | def _on_load_finished(self, ok):
"""Display a static error page if JavaScript is disabled."""
super()._on_load_finished(ok)
js_enabled = self.settings.test_attribute("content.javascript.enabled")
if not ok and not js_enabled:
self.dump_async(self._error_page_workaround)
if ok and self._relo... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _on_mode_entered(self, mode):
if mode != usertypes.KeyMode.caret:
return
self.selection_enabled = self._widget.hasSelection()
self.selection_toggled.emit(self.selection_enabled)
settings = self._widget.settings()
settings.setAttribute(QWebSettings.CaretBrowsingEnabled, True)
if sel... | def _on_mode_entered(self, mode):
if mode != usertypes.KeyMode.caret:
return
settings = self._widget.settings()
settings.setAttribute(QWebSettings.CaretBrowsingEnabled, True)
self.selection_enabled = self._widget.hasSelection()
if self._widget.isVisible():
# Sometimes the caret isn... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def toggle_selection(self):
self.selection_enabled = not self.selection_enabled
self.selection_toggled.emit(self.selection_enabled)
| def toggle_selection(self):
self.selection_enabled = not self.selection_enabled
mainwindow = objreg.get("main-window", scope="window", window=self._tab.win_id)
mainwindow.status.set_mode_active(usertypes.KeyMode.caret, True)
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def load_items(self, items):
if items:
self._tab.predicted_navigation.emit(items[-1].url)
stream, _data, user_data = tabhistory.serialize(items)
qtutils.deserialize_stream(stream, self._history)
for i, data in enumerate(user_data):
self._history.itemAt(i).setUserData(data)
cur_data ... | def load_items(self, items):
stream, _data, user_data = tabhistory.serialize(items)
qtutils.deserialize_stream(stream, self._history)
for i, data in enumerate(user_data):
self._history.itemAt(i).setUserData(data)
cur_data = self._history.currentItem().userData()
if cur_data is not None:
... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def openurl(self, url, *, predict=True):
self._openurl_prepare(url, predict=predict)
self._widget.openurl(url)
| def openurl(self, url):
self._openurl_prepare(url)
self._widget.openurl(url)
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _buffer(skip_win_id=None):
"""Helper to get the completion model for buffer/other_buffer.
Args:
skip_win_id: The id of the window to skip, or None to include all.
"""
def delete_buffer(data):
"""Close the selected tab."""
win_id, tab_index = data[0].split("/")
tabbe... | def _buffer(skip_win_id=None):
"""Helper to get the completion model for buffer/other_buffer.
Args:
skip_win_id: The id of the window to skip, or None to include all.
"""
def delete_buffer(data):
"""Close the selected tab."""
win_id, tab_index = data[0].split("/")
tabbe... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _handle_migrations(self, settings):
"""Migrate older configs to the newest format."""
# Simple renamed/deleted options
for name in list(settings):
if name in configdata.MIGRATIONS.renamed:
new_name = configdata.MIGRATIONS.renamed[name]
log.config.debug("Renaming {} to {}"... | def _handle_migrations(self, settings):
"""Migrate older configs to the newest format."""
# Simple renamed/deleted options
for name in list(settings):
if name in configdata.MIGRATIONS.renamed:
new_name = configdata.MIGRATIONS.renamed[name]
log.config.debug("Renaming {} to {}"... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def _init_envvars():
"""Initialize environment variables which need to be set early."""
if (
objects.backend == usertypes.Backend.QtWebEngine
and config.val.qt.force_software_rendering
):
os.environ["QT_XCB_FORCE_SOFTWARE_OPENGL"] = "1"
if config.val.qt.force_platform is not Non... | def _init_envvars():
"""Initialize environment variables which need to be set early."""
if (
objects.backend == usertypes.Backend.QtWebEngine
and config.val.qt.force_software_rendering
):
os.environ["QT_XCB_FORCE_SOFTWARE_OPENGL"] = "1"
if config.val.qt.force_platform is not Non... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def qt_args(namespace):
"""Get the Qt QApplication arguments based on an argparse namespace.
Args:
namespace: The argparse namespace.
Return:
The argv list to be passed to Qt.
"""
argv = [sys.argv[0]]
if namespace.qt_flag is not None:
argv += ["--" + flag[0] for flag i... | def qt_args(namespace):
"""Get the Qt QApplication arguments based on an argparse namespace.
Args:
namespace: The argparse namespace.
Return:
The argv list to be passed to Qt.
"""
argv = [sys.argv[0]]
if namespace.qt_flag is not None:
argv += ["--" + flag[0] for flag i... | https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def from_obj(self, value):
if value is None:
return []
return [self.valtype.from_obj(v) for v in value]
| def from_obj(self, value):
if value is None:
return []
return value
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
def to_str(self, value):
if value is None:
return ""
val, typ = self._val_and_type(value)
return typ.to_str(val)
| def to_str(self, value):
if value is None:
return ""
if isinstance(value, list):
if len(value) == 1:
return self.valtype.to_str(value[0])
else:
return self.listtype.to_str(value)
else:
return self.valtype.to_str(value)
| https://github.com/qutebrowser/qutebrowser/issues/3634 | 16:39:44 DEBUG init app:_init_modules:468 Initializing websettings...
16:39:45 ERROR misc crashsignal:exception_hook:216 Uncaught exception
Traceback (most recent call last):
File "/bin/qutebrowser", line 11, in <module>
load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
File "/usr... | ValueError |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.