{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/733","repository_url":"https://api.github.com/repos/open-cogsci/OpenSesame","labels_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/733/labels{/name}","comments_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/733/comments","events_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/733/events","html_url":"https://github.com/open-cogsci/OpenSesame/issues/733","id":731750054,"node_id":"MDU6SXNzdWU3MzE3NTAwNTQ=","number":733,"title":"autodetect_indentation_mode can trigger re.error Exception","user":{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":425538403,"node_id":"MDU6TGFiZWw0MjU1Mzg0MDM=","url":"https://api.github.com/repos/open-cogsci/OpenSesame/labels/Bug","name":"Bug","color":"FF9800","default":false,"description":null}],"state":"closed","locked":false,"assignees":[{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":0,"created_at":"2020-10-28T20:00:27Z","updated_at":"2020-11-24T20:07:40Z","closed_at":"2020-11-24T20:07:40Z","assignee":{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false},"author_association":"COLLABORATOR","issue_field_values":[],"type":null,"active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"This came in as an automated bug report. It appears that something can go wrong with regular expression search for spaces, although it's unclear under which conditions this can happen.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\libqtopensesame\\widgets\\tree_overview.py\", line 330, in mousePressEvent\r\n    target_treeitem.open_tab()\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\libqtopensesame\\items\\qtitem.py\", line 143, in open_tab\r\n    self.tabwidget.add(self.widget(), self.item_icon(), self.name)\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\libqtopensesame\\items\\qtitem.py\", line 45, in inner\r\n    self.init_edit_widget()\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\libqtopensesame\\items\\inline_script.py\", line 101, in init_edit_widget\r\n    self._pyqode_tab_widget.create_new_document('Prepare', self.ext)\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\pyqode\\core\\widgets\\splittable_tab_widget.py\", line 1418, in create_new_document\r\n    self.guess_mimetype(name), **kwargs)\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\pyqode\\core\\widgets\\splittable_tab_widget.py\", line 1379, in _create_code_edit\r\n    **kwargs\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\share\\opensesame_extensions\\pyqode_manager\\pyqode_extras\\widgets\\python_code_edit.py\", line 107, in __init__\r\n    self.modes.append(AutodetectIndentationMode())\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\pyqode\\core\\managers\\modes.py\", line 31, in append\r\n    mode.on_install(self.editor)\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\share\\opensesame_extensions\\pyqode_manager\\pyqode_extras\\modes\\autodetect_indentation_mode.py\", line 39, in on_install\r\n    self._autodetect_indentation()\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\share\\opensesame_extensions\\pyqode_manager\\pyqode_extras\\modes\\autodetect_indentation_mode.py\", line 56, in _autodetect_indentation\r\n    code\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\lib\\re.py\", line 223, in findall\r\n    return _compile(pattern, flags).findall(string)\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\lib\\re.py\", line 286, in _compile\r\n    p = sre_compile.compile(pattern, flags)\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\lib\\sre_compile.py\", line 764, in compile\r\n    p = sre_parse.parse(p, flags)\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\lib\\sre_parse.py\", line 924, in parse\r\n    p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\lib\\sre_parse.py\", line 420, in _parse_sub\r\n    not nested and not items))\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\lib\\sre_parse.py\", line 810, in _parse\r\n    p = _parse_sub(source, state, sub_verbose, nested + 1)\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\lib\\sre_parse.py\", line 420, in _parse_sub\r\n    not nested and not items))\r\n  File \"C:\\Program Files (x86)\\OpenSesame\\lib\\sre_parse.py\", line 645, in _parse\r\n    source.tell() - here + len(this))\r\nre.error: nothing to repeat at position 13 (line 2, column 8)\r\n```","closed_by":{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/733/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/733/timeline","performed_via_github_app":null,"state_reason":"completed","pinned_comment":null}