{"action":"created","issue":{"url":"https://api.github.com/repos/sagemathinc/smc/issues/1831","repository_url":"https://api.github.com/repos/sagemathinc/smc","labels_url":"https://api.github.com/repos/sagemathinc/smc/issues/1831/labels{/name}","comments_url":"https://api.github.com/repos/sagemathinc/smc/issues/1831/comments","events_url":"https://api.github.com/repos/sagemathinc/smc/issues/1831/events","html_url":"https://github.com/sagemathinc/smc/issues/1831","id":218978746,"number":1831,"title":"syncdoc → SynchronizedDocument2 → undo → to_str is not a function","user":{"login":"haraldschilly","id":207405,"avatar_url":"https://avatars3.githubusercontent.com/u/207405?v=3","gravatar_id":"","url":"https://api.github.com/users/haraldschilly","html_url":"https://github.com/haraldschilly","followers_url":"https://api.github.com/users/haraldschilly/followers","following_url":"https://api.github.com/users/haraldschilly/following{/other_user}","gists_url":"https://api.github.com/users/haraldschilly/gists{/gist_id}","starred_url":"https://api.github.com/users/haraldschilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haraldschilly/subscriptions","organizations_url":"https://api.github.com/users/haraldschilly/orgs","repos_url":"https://api.github.com/users/haraldschilly/repos","events_url":"https://api.github.com/users/haraldschilly/events{/privacy}","received_events_url":"https://api.github.com/users/haraldschilly/received_events","type":"User","site_admin":false},"labels":[{"id":447025147,"url":"https://api.github.com/repos/sagemathinc/smc/labels/A-sync","name":"A-sync","color":"fbca04","default":false},{"id":189237038,"url":"https://api.github.com/repos/sagemathinc/smc/labels/I-bug","name":"I-bug","color":"cc0000","default":false},{"id":556269486,"url":"https://api.github.com/repos/sagemathinc/smc/labels/stacktrace","name":"stacktrace","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":{"login":"williamstein","id":1276278,"avatar_url":"https://avatars3.githubusercontent.com/u/1276278?v=3","gravatar_id":"","url":"https://api.github.com/users/williamstein","html_url":"https://github.com/williamstein","followers_url":"https://api.github.com/users/williamstein/followers","following_url":"https://api.github.com/users/williamstein/following{/other_user}","gists_url":"https://api.github.com/users/williamstein/gists{/gist_id}","starred_url":"https://api.github.com/users/williamstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamstein/subscriptions","organizations_url":"https://api.github.com/users/williamstein/orgs","repos_url":"https://api.github.com/users/williamstein/repos","events_url":"https://api.github.com/users/williamstein/events{/privacy}","received_events_url":"https://api.github.com/users/williamstein/received_events","type":"User","site_admin":false},"assignees":[{"login":"williamstein","id":1276278,"avatar_url":"https://avatars3.githubusercontent.com/u/1276278?v=3","gravatar_id":"","url":"https://api.github.com/users/williamstein","html_url":"https://github.com/williamstein","followers_url":"https://api.github.com/users/williamstein/followers","following_url":"https://api.github.com/users/williamstein/following{/other_user}","gists_url":"https://api.github.com/users/williamstein/gists{/gist_id}","starred_url":"https://api.github.com/users/williamstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamstein/subscriptions","organizations_url":"https://api.github.com/users/williamstein/orgs","repos_url":"https://api.github.com/users/williamstein/repos","events_url":"https://api.github.com/users/williamstein/events{/privacy}","received_events_url":"https://api.github.com/users/williamstein/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-04-03T15:51:49Z","updated_at":"2017-05-06T21:28:36Z","closed_at":"2017-05-06T21:28:17Z","body":"Didn't we already have this issue? It's a bit weird.\r\n\r\n```\r\nTypeError: e.to_str is not a function\r\n    at i.n.redo (https://cloud.sagemath.com/static/smc-56ee75993e1748fa6ff6.js?56ee75993e1748fa6ff6:161:8540)\r\n    at No.redo (https://cloud.sagemath.com/static/smc-56ee75993e1748fa6ff6.js?56ee75993e1748fa6ff6:160:31114)\r\n    at n.click_edit_button (https://cloud.sagemath.com/static/smc-56ee75993e1748fa6ff6.js?56ee75993e1748fa6ff6:21:28185)\r\n    at n.click_edit_button (https://cloud.sagemath.com/static/smc-56ee75993e1748fa6ff6.js?56ee75993e1748fa6ff6:21:1241)\r\n    at HTMLAnchorElement.<anonymous> (https://cloud.sagemath.com/static/smc-56ee75993e1748fa6ff6.js?56ee75993e1748fa6ff6:21:27562)\r\n    at HTMLAnchorElement.dispatch (https://cloud.sagemath.com/static/lib-56ee75993e1748fa6ff6.js?56ee75993e1748fa6ff6:17:19134)\r\n    at HTMLAnchorElement.g.handle (https://cloud.sagemath.com/static/lib-56ee75993e1748fa6ff6.js?56ee75993e1748fa6ff6:17:17161)\r\n    at HTMLAnchorElement.function.e._wrapper.e._wrapper (https://cloud.sagemath.com/static/lib-56ee75993e1748fa6ff6.js?56ee75993e1748fa6ff6:117:25635)\r\n```\r\ntop frame:\r\n\r\n`n.prototype.redo=function(){var e,t;if(null!=this.codemirror&&this._syncstring.in_undo_mode()&&(t=null!=(e=this._syncstring.redo())?e.[BANG]to_str():void 0,null!=t))return this.focused_codemirror().setValueNoJump(t,!0)`\r\n\r\nwhich is in `smc-webapp/syncdoc.coffee`\r\n\r\n```\r\n    redo: () =>\r\n        if not @codemirror?\r\n            return\r\n        if not @_syncstring.in_undo_mode()\r\n            return\r\n        value = @_syncstring.redo()?.to_str()\r\n        if not value?  # can't redo if version not defined/not available.\r\n            return\r\n        @focused_codemirror().setValueNoJump(value, true)\r\n        @save_state_debounce()\r\n        @_last_change_time = new Date()\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/sagemathinc/smc/issues/comments/299666968","html_url":"https://github.com/sagemathinc/smc/issues/1831#issuecomment-299666968","issue_url":"https://api.github.com/repos/sagemathinc/smc/issues/1831","id":299666968,"user":{"login":"williamstein","id":1276278,"avatar_url":"https://avatars3.githubusercontent.com/u/1276278?v=3","gravatar_id":"","url":"https://api.github.com/users/williamstein","html_url":"https://github.com/williamstein","followers_url":"https://api.github.com/users/williamstein/followers","following_url":"https://api.github.com/users/williamstein/following{/other_user}","gists_url":"https://api.github.com/users/williamstein/gists{/gist_id}","starred_url":"https://api.github.com/users/williamstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamstein/subscriptions","organizations_url":"https://api.github.com/users/williamstein/orgs","repos_url":"https://api.github.com/users/williamstein/repos","events_url":"https://api.github.com/users/williamstein/events{/privacy}","received_events_url":"https://api.github.com/users/williamstein/received_events","type":"User","site_admin":false},"created_at":"2017-05-06T21:28:36Z","updated_at":"2017-05-06T21:28:36Z","body":"time: 13 minutes\r\n\r\nprocess: read and think."}}
{"actor":{"display_login":"williamstein"}}