{"action":"created","issue":{"url":"https://api.github.com/repos/samth/pycket/issues/181","labels_url":"https://api.github.com/repos/samth/pycket/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/samth/pycket/issues/181/comments","events_url":"https://api.github.com/repos/samth/pycket/issues/181/events","html_url":"https://github.com/samth/pycket/issues/181","id":124241080,"number":181,"title":"Error in assignment conversion","user":{"login":"sabauma","id":2251823,"avatar_url":"https://avatars.githubusercontent.com/u/2251823?v=3","gravatar_id":"","url":"https://api.github.com/users/sabauma","html_url":"https://github.com/sabauma","followers_url":"https://api.github.com/users/sabauma/followers","following_url":"https://api.github.com/users/sabauma/following{/other_user}","gists_url":"https://api.github.com/users/sabauma/gists{/gist_id}","starred_url":"https://api.github.com/users/sabauma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabauma/subscriptions","organizations_url":"https://api.github.com/users/sabauma/orgs","repos_url":"https://api.github.com/users/sabauma/repos","events_url":"https://api.github.com/users/sabauma/events{/privacy}","received_events_url":"https://api.github.com/users/sabauma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-29T17:19:35Z","updated_at":"2015-12-29T18:07:18Z","closed_at":"2015-12-29T18:07:18Z","body":"Pycket does not seem to be computing the offsets for certain variables when `let` forms have empty variables lists.\r\nExample program\r\n\r\n```racket\r\n#lang pycket\r\n\r\n(let-values ([()      (values)]\r\n             [(a b c) (values 1 2 3)])\r\n  1)\r\n```\r\n\r\nResulting error\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/spenser/src/pycket/pycket/__main__.py\", line 32, in main\r\n    sys.exit(f(sys.argv))\r\n  File \"/home/spenser/src/pycket/pycket/entry_point.py\", line 23, in entry_point\r\n    return actual_entry(argv)\r\n  File \"/home/spenser/src/pycket/pycket/entry_point.py\", line 49, in actual_entry\r\n    ast = load_json_ast_rpython(json_ast, modtable)\r\n  File \"/home/spenser/src/pycket/pycket/expand.py\", line 230, in load_json_ast_rpython\r\n    return _to_module(pycket_json.loads(data), modtable).assign_convert_module()\r\n  File \"/home/spenser/src/pycket/pycket/interpreter.py\", line 461, in assign_convert_module\r\n    new_body = [b.assign_convert(local_muts, None) for b in self.rebuild_body()]\r\n  File \"/home/spenser/src/pycket/pycket/interpreter.py\", line 1794, in assign_convert\r\n    for j in range(self.counts[i])]\r\nIndexError: list index out of range\r\n> /home/spenser/src/pycket/pycket/interpreter.py(1794)assign_convert()\r\n-> for j in range(self.counts[i])]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/samth/pycket/issues/comments/167845552","html_url":"https://github.com/samth/pycket/issues/181#issuecomment-167845552","issue_url":"https://api.github.com/repos/samth/pycket/issues/181","id":167845552,"user":{"login":"sabauma","id":2251823,"avatar_url":"https://avatars.githubusercontent.com/u/2251823?v=3","gravatar_id":"","url":"https://api.github.com/users/sabauma","html_url":"https://github.com/sabauma","followers_url":"https://api.github.com/users/sabauma/followers","following_url":"https://api.github.com/users/sabauma/following{/other_user}","gists_url":"https://api.github.com/users/sabauma/gists{/gist_id}","starred_url":"https://api.github.com/users/sabauma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabauma/subscriptions","organizations_url":"https://api.github.com/users/sabauma/orgs","repos_url":"https://api.github.com/users/sabauma/repos","events_url":"https://api.github.com/users/sabauma/events{/privacy}","received_events_url":"https://api.github.com/users/sabauma/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T18:07:18Z","updated_at":"2015-12-29T18:07:18Z","body":"Fixed by eaa52cae5b6dd944e7d3fcafc1cd1205d9448104"}}