{"action":"created","issue":{"url":"https://api.github.com/repos/andrejv/wxmaxima/issues/474","labels_url":"https://api.github.com/repos/andrejv/wxmaxima/issues/474/labels{/name}","comments_url":"https://api.github.com/repos/andrejv/wxmaxima/issues/474/comments","events_url":"https://api.github.com/repos/andrejv/wxmaxima/issues/474/events","html_url":"https://github.com/andrejv/wxmaxima/issues/474","id":78174716,"number":474,"title":"Question handling broken for all but the last command in a cell.","user":{"login":"gunterkoenigsmann","id":5041537,"avatar_url":"https://avatars.githubusercontent.com/u/5041537?v=3","gravatar_id":"","url":"https://api.github.com/users/gunterkoenigsmann","html_url":"https://github.com/gunterkoenigsmann","followers_url":"https://api.github.com/users/gunterkoenigsmann/followers","following_url":"https://api.github.com/users/gunterkoenigsmann/following{/other_user}","gists_url":"https://api.github.com/users/gunterkoenigsmann/gists{/gist_id}","starred_url":"https://api.github.com/users/gunterkoenigsmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunterkoenigsmann/subscriptions","organizations_url":"https://api.github.com/users/gunterkoenigsmann/orgs","repos_url":"https://api.github.com/users/gunterkoenigsmann/repos","events_url":"https://api.github.com/users/gunterkoenigsmann/events{/privacy}","received_events_url":"https://api.github.com/users/gunterkoenigsmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-19T17:14:16Z","updated_at":"2015-06-22T20:20:19Z","closed_at":null,"body":"How to reproduce:\r\n\r\n - Issue several commands from the same cell and make sure that the first command makes maxima ask a question.\r\n\r\nExample:\r\n\r\n    askinteger(x);x;\r\n\r\nWhat happens:\r\n - In long files \"evaluate all\" sometimes looses sync, which input cell  \r\n - sometimes the same output is added to two cells at once\r\n - sometimes the same question is printed several times in a row\r\n - sometimes the last lines of a question answer a question of the first line.\r\n - sometimes it is hard to recover from a situation in which wxMaxima looses track if a question has been answered and it is not too easy to recover from this situation.\r\n\r\nI honestly don't know if there actually is a easy way to fix this problem. Parse the input, send it to maxima line-by-line? Maxima is mighty enough to allow the user to define a completely new syntax that might not be line-based so we might never be completely sure if we can send a new line and maxima won't continue working unless we do or if maxima is still working on the old one. Add the address of the groupcell maxima is working on to the corresponding xml elements? MathCell::Contains allows to check if the address we get is valid."},"comment":{"url":"https://api.github.com/repos/andrejv/wxmaxima/issues/comments/114250095","html_url":"https://github.com/andrejv/wxmaxima/issues/474#issuecomment-114250095","issue_url":"https://api.github.com/repos/andrejv/wxmaxima/issues/474","id":114250095,"user":{"login":"gunterkoenigsmann","id":5041537,"avatar_url":"https://avatars.githubusercontent.com/u/5041537?v=3","gravatar_id":"","url":"https://api.github.com/users/gunterkoenigsmann","html_url":"https://github.com/gunterkoenigsmann","followers_url":"https://api.github.com/users/gunterkoenigsmann/followers","following_url":"https://api.github.com/users/gunterkoenigsmann/following{/other_user}","gists_url":"https://api.github.com/users/gunterkoenigsmann/gists{/gist_id}","starred_url":"https://api.github.com/users/gunterkoenigsmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunterkoenigsmann/subscriptions","organizations_url":"https://api.github.com/users/gunterkoenigsmann/orgs","repos_url":"https://api.github.com/users/gunterkoenigsmann/repos","events_url":"https://api.github.com/users/gunterkoenigsmann/events{/privacy}","received_events_url":"https://api.github.com/users/gunterkoenigsmann/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T20:20:18Z","updated_at":"2015-06-22T20:20:18Z","body":"Since commit 7ee50c6ceb383686b218004e04d9751ba6967dbf \"evaluate all\" should no more loose sync. For the rest I still don't have a good idea how to solve it. "}}