{"action":"created","issue":{"url":"https://api.github.com/repos/baudren/NoteOrganiser/issues/18","labels_url":"https://api.github.com/repos/baudren/NoteOrganiser/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/baudren/NoteOrganiser/issues/18/comments","events_url":"https://api.github.com/repos/baudren/NoteOrganiser/issues/18/events","html_url":"https://github.com/baudren/NoteOrganiser/issues/18","id":52818065,"number":18,"title":"Feedback on error generating the preview","user":{"login":"egolus","id":6723020,"avatar_url":"https://avatars.githubusercontent.com/u/6723020?v=3","gravatar_id":"","url":"https://api.github.com/users/egolus","html_url":"https://github.com/egolus","followers_url":"https://api.github.com/users/egolus/followers","following_url":"https://api.github.com/users/egolus/following{/other_user}","gists_url":"https://api.github.com/users/egolus/gists{/gist_id}","starred_url":"https://api.github.com/users/egolus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egolus/subscriptions","organizations_url":"https://api.github.com/users/egolus/orgs","repos_url":"https://api.github.com/users/egolus/repos","events_url":"https://api.github.com/users/egolus/events{/privacy}","received_events_url":"https://api.github.com/users/egolus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/baudren/NoteOrganiser/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/baudren/NoteOrganiser/labels/ready","name":"ready","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"baudren","id":3526120,"avatar_url":"https://avatars.githubusercontent.com/u/3526120?v=3","gravatar_id":"","url":"https://api.github.com/users/baudren","html_url":"https://github.com/baudren","followers_url":"https://api.github.com/users/baudren/followers","following_url":"https://api.github.com/users/baudren/following{/other_user}","gists_url":"https://api.github.com/users/baudren/gists{/gist_id}","starred_url":"https://api.github.com/users/baudren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baudren/subscriptions","organizations_url":"https://api.github.com/users/baudren/orgs","repos_url":"https://api.github.com/users/baudren/repos","events_url":"https://api.github.com/users/baudren/events{/privacy}","received_events_url":"https://api.github.com/users/baudren/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/baudren/NoteOrganiser/milestones/1","html_url":"https://github.com/baudren/NoteOrganiser/milestones/0.2","labels_url":"https://api.github.com/repos/baudren/NoteOrganiser/milestones/1/labels","id":825301,"number":1,"title":"0.2","description":null,"creator":{"login":"baudren","id":3526120,"avatar_url":"https://avatars.githubusercontent.com/u/3526120?v=3","gravatar_id":"","url":"https://api.github.com/users/baudren","html_url":"https://github.com/baudren","followers_url":"https://api.github.com/users/baudren/followers","following_url":"https://api.github.com/users/baudren/following{/other_user}","gists_url":"https://api.github.com/users/baudren/gists{/gist_id}","starred_url":"https://api.github.com/users/baudren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baudren/subscriptions","organizations_url":"https://api.github.com/users/baudren/orgs","repos_url":"https://api.github.com/users/baudren/repos","events_url":"https://api.github.com/users/baudren/events{/privacy}","received_events_url":"https://api.github.com/users/baudren/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":3,"state":"open","created_at":"2014-10-14T09:35:26Z","updated_at":"2015-04-22T08:34:15Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2014-12-24T13:05:57Z","updated_at":"2015-04-22T12:20:55Z","closed_at":null,"body":"I think, it would be nice, if the user gets a feedback as a message box, when you fail to generate the preview. At least for me right now, it's the most common problem.\r\nI see the error in the command window, but when you start python without command window, you don't get any feedback and your program just doesn't react to the click on `preview`\r\n\r\nI'm talking about these errors:\r\n\r\n~~~\r\nTraceback (most recent call last):\r\n  File \"noteorganiser\\NoteOrganiser.py\", line 145, in previewNotebook\r\n    self.preview.loadNotebook(notebook)\r\n  File \"c:\\_programmierung\\noteorganizer\\fork\\noteorganiser\\noteorganiser\\frames.py\", line 391, in loadNotebook\r\n    os.path.join(self.info.level, notebook), tags)\r\n  File \"c:\\_programmierung\\noteorganizer\\fork\\noteorganiser\\noteorganiser\\frames.py\", line 416, in convert\r\n    path, input_tags=tags)\r\n  File \"c:\\_programmierung\\noteorganizer\\fork\\noteorganiser\\noteorganiser\\text_processing.py\", line 236, in from_notes_to_markdown\r\n    title, posts = extract_title_and_posts_from_text(text)\r\n  File \"c:\\_programmierung\\noteorganizer\\fork\\noteorganiser\\noteorganiser\\text_processing.py\", line 211, in extract_title_and_posts_from_text\r\n    posts[index] = normalize_post(post)\r\n  File \"c:\\_programmierung\\noteorganizer\\fork\\noteorganiser\\noteorganiser\\text_processing.py\", line 146, in normalize_post\r\n    dashline_index = post.index(dashes[0])\r\nIndexError: list index out of range\r\n~~~\r\n\r\nin this case, the problem was generated by this text:\r\n\r\n~~~\r\n-\t--  nicht moeglich\r\n~~~\r\n\r\nit's a list-item with two dashes in the listitem-text but it looks like your code ignores the whitespace and sees three dashes. When i change it to\r\n\r\n~~~\r\n-\t-\\-  nicht moeglich\r\n~~~\r\n\r\nit works again. \r\nIt's no problem, but I run into these problems from time to time and it would be nice to get a feedback, when i click on `preview`"},"comment":{"url":"https://api.github.com/repos/baudren/NoteOrganiser/issues/comments/95155114","html_url":"https://github.com/baudren/NoteOrganiser/issues/18#issuecomment-95155114","issue_url":"https://api.github.com/repos/baudren/NoteOrganiser/issues/18","id":95155114,"user":{"login":"egolus","id":6723020,"avatar_url":"https://avatars.githubusercontent.com/u/6723020?v=3","gravatar_id":"","url":"https://api.github.com/users/egolus","html_url":"https://github.com/egolus","followers_url":"https://api.github.com/users/egolus/followers","following_url":"https://api.github.com/users/egolus/following{/other_user}","gists_url":"https://api.github.com/users/egolus/gists{/gist_id}","starred_url":"https://api.github.com/users/egolus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egolus/subscriptions","organizations_url":"https://api.github.com/users/egolus/orgs","repos_url":"https://api.github.com/users/egolus/repos","events_url":"https://api.github.com/users/egolus/events{/privacy}","received_events_url":"https://api.github.com/users/egolus/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T12:20:55Z","updated_at":"2015-04-22T12:20:55Z","body":"Yes, I totally agree\n\nAm 22. April 2015 13:58:31 MESZ, schrieb Benjamin Audren <notifications@github.com>:\n>Well, there are two cases.\n>\n>Either it is a foreseen error (for instance, many possible errors have\n>been taken into account in\n>[text_processing.py](noteorganiser/text_processing.py)), and display a\n>relatively clear error message at the end of the trace.\n>\n>Or it is an unexpected error, in which case the stack trace is still a\n>better information than none, and it will eventually be caught and\n>processed to give a better error.\n>\n>So: stacktrace! That might be scary for a few people, but it is cleaner\n>than a silent failure with no indication.\n>\n>---\n>Reply to this email directly or view it on GitHub:\n>https://github.com/baudren/NoteOrganiser/issues/18#issuecomment-95148919\n"}}