{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/584","repository_url":"https://api.github.com/repos/open-cogsci/OpenSesame","labels_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/584/labels{/name}","comments_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/584/comments","events_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/584/events","html_url":"https://github.com/open-cogsci/OpenSesame/issues/584","id":297820020,"node_id":"MDU6SXNzdWUyOTc4MjAwMjA=","number":584,"title":"Dropping item from Unused items bin can cause recursion error","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":{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/milestones/38","html_url":"https://github.com/open-cogsci/OpenSesame/milestone/38","labels_url":"https://api.github.com/repos/open-cogsci/OpenSesame/milestones/38/labels","id":3122458,"node_id":"MDk6TWlsZXN0b25lMzEyMjQ1OA==","number":38,"title":"OpenSesame 3.2.2 Kafkaesque Koffka","description":"Second maintenance release in the 3.2 series.","creator":{"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},"open_issues":3,"closed_issues":25,"state":"closed","created_at":"2018-02-16T15:18:55Z","updated_at":"2024-01-09T10:26:04Z","due_on":"2018-04-01T00:00:00Z","closed_at":"2024-01-09T10:26:04Z"},"comments":0,"created_at":"2018-02-16T15:22:11Z","updated_at":"2018-02-25T14:48:20Z","closed_at":"2018-02-25T14:48:20Z","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":"To trigger this issue:\r\n\r\n- Add item A that contains item B\r\n- Delete item A\r\n- From the Unused items bin, drag item A onto item B\r\n\r\n~~~ python\r\nTraceback (most recent call last):\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/widgets/tree_overview.py\", line 755, in dropEvent\r\n    self.drop_event_item_existing(data, e)\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/widgets/tree_overview.py\", line 526, in drop_event_item_existing\r\n    if self.drop_event_item_new(data, e, target_treeitem=target_treeitem):\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/widgets/tree_overview.py\", line 704, in drop_event_item_new\r\n    target_item.insert_child_item(item.name)\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/items/qtstructure_item.py\", line 67, in inner\r\n    return fnc(self, *args, **kwargs)\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/items/sequence.py\", line 202, in insert_child_item\r\n    self.update()\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/items/qtstructure_item.py\", line 46, in update\r\n    self.experiment.build_item_tree()\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/items/experiment.py\", line 137, in build_item_tree\r\n    self.treeitem_general = tree_general_item(self)\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/widgets/tree_general_item.py\", line 54, in __init__\r\n    self.experiment.items[self.experiment.var.start].build_item_tree(self)\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/items/sequence.py\", line 147, in build_item_tree\r\n    max_depth=max_depth-1, extra_info=cond)\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/items/sequence.py\", line 147, in build_item_tree\r\n    max_depth=max_depth-1, extra_info=cond)\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/items/sequence.py\", line 147, in build_item_tree\r\n    max_depth=max_depth-1, extra_info=cond)\r\n  [Previous line repeated 962 more times]\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/items/sequence.py\", line 141, in build_item_tree\r\n    widget = tree_item_item(self, extra_info=extra_info)\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/widgets/tree_item_item.py\", line 65, in __init__\r\n    self._droppable = self.item.name in self.item.experiment.items.used()\r\n  File \"/home/sebastiaan/git/OpenSesame/libqtopensesame/misc/qtitem_store.py\", line 193, in used\r\n    if self.experiment.var.start not in self:\r\n  File \"/home/sebastiaan/git/OpenSesame/libopensesame/var_store.py\", line 165, in __getattr__\r\n    return self.get(var)\r\n  File \"/home/sebastiaan/git/OpenSesame/libopensesame/var_store.py\", line 232, in get\r\n    self._check_var_name(var)\r\n  File \"/home/sebastiaan/git/OpenSesame/libopensesame/var_store.py\", line 116, in _check_var_name\r\n    self.__item__.experiment.syntax.valid_var_name(var):\r\n  File \"/home/sebastiaan/git/OpenSesame/libopensesame/syntax.py\", line 613, in valid_var_name\r\n    return re.match(self.re_valid_var_name, s)\r\n  File \"/usr/lib/python3.6/re.py\", line 172, in match\r\n    return _compile(pattern, flags).match(string)\r\n  File \"/usr/lib/python3.6/re.py\", line 289, in _compile\r\n    p, loc = _cache[type(pattern), pattern, flags]\r\nRecursionError: maximum recursion depth exceeded while calling a Python object\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/584/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/584/timeline","performed_via_github_app":null,"state_reason":"completed","pinned_comment":null}