{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/694","repository_url":"https://api.github.com/repos/open-cogsci/OpenSesame","labels_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/694/labels{/name}","comments_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/694/comments","events_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/694/events","html_url":"https://github.com/open-cogsci/OpenSesame/issues/694","id":613806842,"node_id":"MDU6SXNzdWU2MTM4MDY4NDI=","number":694,"title":"Copying a Canvas with an arrow gives exception under legacy backend","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":1,"created_at":"2020-05-07T06:30:17Z","updated_at":"2020-05-14T14:19:23Z","closed_at":"2020-05-14T14:19:23Z","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":"When `Canvas` with an arrow element is copied, then under the *legacy* backend (but not other backends), the following exception is triggered. See also [this forum post](https://forum.cogsci.nl/discussion/6051/bug-or-feature-or-just-not-jet-implemented-in-canvas-copy#latest).\r\n\r\n```\r\n File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\libopensesame\\inline_script.py\", line 116, in run\r\n  self.workspace._exec(self.crun)\r\n File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\libopensesame\\base_python_workspace.py\", line 124, in _exec\r\n  exec(bytecode, self._globals)\r\n Inline script, line 4, in <module>\r\n File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\libopensesame\\inline_script.py\", line 183, in copy_sketchpad\r\n  c.copy(self.experiment.items[sketchpad_name].canvas)\r\n File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\openexp\\_canvas\\legacy.py\", line 158, in copy\r\n  Canvas.copy(self, canvas)\r\n File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\openexp\\_canvas\\canvas.py\", line 784, in copy\r\n  for name, element in canvas._elements.items()\r\n File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\openexp\\_canvas\\canvas.py\", line 784, in <listcomp>\r\n  for name, element in canvas._elements.items()\r\n File \"C:\\Program Files (x86)\\OpenSesame\\Lib\\site-packages\\openexp\\_canvas\\_element\\legacy.py\", line 47, in copy\r\n  return self.__class__(canvas, **properties)\r\nTypeError: __init__() missing 4 required positional arguments: 'sx', 'sy', 'ex', and 'ey' \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/694/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/694/timeline","performed_via_github_app":null,"state_reason":"completed","pinned_comment":null}