payload: {"action":"closed","issue":{"url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3664","repository_url":"https://api.github.com/repos/sagemathinc/cocalc","labels_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3664/labels{/name}","comments_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3664/comments","events_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3664/events","html_url":"https://github.com/sagemathinc/cocalc/issues/3664","id":418443183,"node_id":"MDU6SXNzdWU0MTg0NDMxODM=","number":3664,"title":"jupyter2.sage-history: set_hook_pos → Cannot read property 'setState' of undefined","user":{"login":"haraldschilly","id":207405,"node_id":"MDQ6VXNlcjIwNzQwNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/207405?v=4","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":446988900,"node_id":"MDU6TGFiZWw0NDY5ODg5MDA=","url":"https://api.github.com/repos/sagemathinc/cocalc/labels/A-TimeTravel","name":"A-TimeTravel","color":"fbca04","default":false},{"id":734225815,"node_id":"MDU6TGFiZWw3MzQyMjU4MTU=","url":"https://api.github.com/repos/sagemathinc/cocalc/labels/A-jupyter2","name":"A-jupyter2","color":"fbca04","default":false},{"id":556269486,"node_id":"MDU6TGFiZWw1NTYyNjk0ODY=","url":"https://api.github.com/repos/sagemathinc/cocalc/labels/stacktrace","name":"stacktrace","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-03-07T18:04:45Z","updated_at":"2019-03-07T20:51:27Z","closed_at":"2019-03-07T20:51:27Z","author_association":"CONTRIBUTOR","body":"for **timetravel history files** of ipynb notebooks\r\n\r\nchrome: `Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36`\r\n\r\nsmc_git_rev: 72fe284bb553f1b3a414d3019e7904328ec0f156\r\n\r\nDate: 2019-03-07 14:36:54.816804\r\n\r\n`Cannot read property 'setState' of undefined`\r\n\r\n```\r\nTypeError: Cannot read property 'setState' of undefined\r\n    at t.set_hook_pos (https://cocalc.com/static/smc-d00933fe2385b78f4dd7.cacheme.js?d00933fe2385b78f4dd7:5:1692139)\r\n    at t._cm_merge_remote (https://cocalc.com/static/smc-d00933fe2385b78f4dd7.cacheme.js?d00933fe2385b78f4dd7:5:1692738)\r\n    at t.componentWillReceiveProps (https://cocalc.com/static/smc-d00933fe2385b78f4dd7.cacheme.js?d00933fe2385b78f4dd7:5:1696732)\r\n    at si (https://cocalc.com/static/0-d00933fe2385b78f4dd7.cacheme.js?d00933fe2385b78f4dd7:6:4310599)\r\n    at Ao (https://cocalc.com/static/0-d00933fe2385b78f4dd7.cacheme.js?d00933fe2385b78f4dd7:6:4326570)\r\n    at Io (https://cocalc.com/static/0-d00933fe2385b78f4dd7.cacheme.js?d00933fe2385b78f4dd7:6:4331515)\r\n    at qa (https://cocalc.com/static/0-d00933fe2385b78f4dd7.cacheme.js?d00933fe2385b78f4dd7:6:4355584)\r\n    at Wa (https://cocalc.com/static/0-d00933fe2385b78f4dd7.cacheme.js?d00933fe2385b78f4dd7:6:4355968)\r\n    at Es (https://cocalc.com/static/0-d00933fe2385b78f4dd7.cacheme.js?d00933fe2385b78f4dd7:6:4362855)\r\n    at Ms (https://cocalc.com/static/0-d00933fe2385b78f4dd7.cacheme.js?d00933fe2385b78f4dd7:6:4362235)\r\n```\r\n\r\n---\r\n\r\nin `smc-webapp/jupyter/codemirror-editor.tsx`\r\n\r\n```\r\n  set_hook_pos = (): void => {\r\n    if (this.cm == null) {\r\n      return;\r\n    }\r\n    // Used for maintaining vertical scroll position with multiple simultaneous editors.\r\n    const offset = this.cm.cursorCoords(true, \"local\").top;\r\n    this.props.actions.setState({ hook_offset: offset });\r\n  };\r\n```"}}
other: {"actor":{"display_login":"williamstein"}}