{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/issues/296","repository_url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE","labels_url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/issues/296/comments","events_url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/issues/296/events","html_url":"https://github.com/OpenCobolIDE/OpenCobolIDE/issues/296","id":140440788,"number":296,"title":"[Bug] [Unhandled exception] FileNotFoundError","user":{"login":"fatman2021","id":5570195,"avatar_url":"https://avatars.githubusercontent.com/u/5570195?v=3","gravatar_id":"","url":"https://api.github.com/users/fatman2021","html_url":"https://github.com/fatman2021","followers_url":"https://api.github.com/users/fatman2021/followers","following_url":"https://api.github.com/users/fatman2021/following{/other_user}","gists_url":"https://api.github.com/users/fatman2021/gists{/gist_id}","starred_url":"https://api.github.com/users/fatman2021/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatman2021/subscriptions","organizations_url":"https://api.github.com/users/fatman2021/orgs","repos_url":"https://api.github.com/users/fatman2021/repos","events_url":"https://api.github.com/users/fatman2021/events{/privacy}","received_events_url":"https://api.github.com/users/fatman2021/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-13T02:56:18Z","updated_at":"2016-03-13T02:56:18Z","closed_at":null,"body":"## Steps to reproduce\n\nPLEASE DESCRIBE THE CONTEXT OF THIS BUG AND THE STEPS TO REPRODUCE!\n\n## Traceback\n\n```\n  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/controllers/file.py\", line 129, in save_current\n    self.ui.tabWidgetEditors.save_current()\n  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/extlibs/pyqode/core/widgets/splittable_tab_widget.py\", line 1187, in save_current\n    self._save(editor)\n  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/extlibs/pyqode/core/widgets/splittable_tab_widget.py\", line 1197, in _save\n    with open(path, encoding=encoding) as f:\n\nFileNotFoundError: [Errno 2] No such file or directory: '/home/main/tmp.cbl'\n```\n\n## System information\n\n- Operating System: ManjaroLinux\n- OpenCobolIDE: 4.7.1\n- GnuCOBOL: cobc (GNU Cobol) 2.0.0\n- Python: 3.5.1 (64bits)\n- Qt: 5.5.1\n- PyQt: 5.5.1\n- pyqode.core: 2.8.0\n- pyqode.cobol: 2.8.0\n- pyqode.qt: 2.8.0\n- pygments: 2.1\n- QDarkStyle: 2.1\n\n## Application log\n\n```\n20:26:46:302::INFO::1603::open_cobol_ide::version: 4.7.1\n20:27:07:945::INFO::1603::open_cobol_ide.compilers::GnuCOBOL compiler check: success\n20:27:07:945::INFO::1603::open_cobol_ide.compilers::Executable extension: \n20:27:07:945::INFO::1603::open_cobol_ide.compilers::Module extension: .so\n20:27:07:954::INFO::1603::open_cobol_ide.app::GnuCOBOL version: cobc (GNU Cobol) 2.0.0\n18:14:05:669::CRITICAL::1603::open_cobol_ide.app::unhandled exception:\n  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/extlibs/pyqode/core/api/client.py\", line 336, in _on_ready_read\n    self._read_payload()\n  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/extlibs/pyqode/core/api/client.py\", line 322, in _read_payload\n    results = obj['results']\nKeyError: 'results'\n18:14:12:528::ERROR::1603::pyqode.backend::Traceback (most recent call last):\n18:14:12:529::ERROR::1603::pyqode.backend::  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/backend.py\", line 28, in <module>\n18:14:12:529::ERROR::1603::pyqode.backend::    backend.serve_forever()\n18:14:12:530::ERROR::1603::pyqode.backend::  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/extlibs/pyqode/core/backend/server.py\", line 215, in serve_forever\n18:14:12:530::ERROR::1603::pyqode.backend::    server = JsonServer(args=args)\n18:14:12:531::ERROR::1603::pyqode.backend::  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/extlibs/pyqode/core/backend/server.py\", line 170, in __init__\n18:14:12:531::ERROR::1603::pyqode.backend::    self, ('127.0.0.1', int(args.port)), self._Handler)\n18:14:12:531::ERROR::1603::pyqode.backend::  File \"/usr/lib/python3.5/socketserver.py\", line 443, in __init__\n18:14:12:531::ERROR::1603::pyqode.backend::    self.server_bind()\n18:14:12:532::ERROR::1603::pyqode.backend::  File \"/usr/lib/python3.5/socketserver.py\", line 457, in server_bind\n18:14:12:532::ERROR::1603::pyqode.backend::    self.socket.bind(self.server_address)\n18:14:12:533::ERROR::1603::pyqode.backend::OSError: [Errno 98] Address already in use\n18:26:22:866::WARNING::1603::pyqode.core.managers.modes::potential memory leak detected on mode <pyqode.core.modes.filewatcher.FileWatcherMode object at 0x7f6968154048>...\nInstall the objgraph package to know what objects are holding references the mode.\n18:29:54:208::WARNING::1603::pyqode.core.managers.modes::potential memory leak detected on mode <pyqode.core.modes.filewatcher.FileWatcherMode object at 0x7f696815b048>...\nInstall the objgraph package to know what objects are holding references the mode.\n18:34:05:171::WARNING::1603::pyqode.core.managers.modes::potential memory leak detected on mode <pyqode.core.modes.filewatcher.FileWatcherMode object at 0x7f696ab78438>...\nInstall the objgraph package to know what objects are holding references the mode.\n21:53:38:359::INFO::1603::open_cobol_ide.controllers.cobol::running compilation thread: ['/home/main/tmp.cbl']\n21:53:38:398::INFO::1603::open_cobol_ide.compilers::compiling /home/main/tmp.cbl\n21:53:50:093::INFO::1603::open_cobol_ide.compilers::binary file '/home/main/bin/tmp' created:  True\n21:53:50:094::INFO::1603::open_cobol_ide.compilers::compile results: 0 - []\n21:53:52:839::INFO::1603::open_cobol_ide.controllers.cobol::running compilation thread: ['/home/main/tmp.cbl']\n21:53:52:840::INFO::1603::open_cobol_ide.compilers::compiling /home/main/tmp.cbl\n21:53:52:841::INFO::1603::open_cobol_ide.compilers::compilation skipped, up to date...\n21:53:52:862::INFO::1603::open_cobol_ide.controllers.cobol::running program\n21:55:17:786::CRITICAL::1603::open_cobol_ide.app::unhandled exception:\n  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/controllers/file.py\", line 129, in save_current\n    self.ui.tabWidgetEditors.save_current()\n  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/extlibs/pyqode/core/widgets/splittable_tab_widget.py\", line 1187, in save_current\n    self._save(editor)\n  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/extlibs/pyqode/core/widgets/splittable_tab_widget.py\", line 1197, in _save\n    with open(path, encoding=encoding) as f:\nFileNotFoundError: [Errno 2] No such file or directory: '/home/main/tmp.cbl'\n21:55:21:667::INFO::1603::open_cobol_ide.view.dialogs.report_bug::System informations:\n- Operating System: ManjaroLinux\n- OpenCobolIDE: 4.7.1\n- GnuCOBOL: cobc (GNU Cobol) 2.0.0\n- Python: 3.5.1 (64bits)\n- Qt: 5.5.1\n- PyQt: 5.5.1\n- pyqode.core: 2.8.0\n- pyqode.cobol: 2.8.0\n- pyqode.qt: 2.8.0\n- pygments: 2.1\n- QDarkStyle: 2.1\n21:55:46:289::ERROR::1603::open_cobol_ide.view.dialogs.report_bug::failed to send bug report\nTraceback (most recent call last):\n  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/extlibs/github.py\", line 166, in _http\n    response = opener.open(request, timeout=TIMEOUT)\n  File \"/usr/lib/python3.5/urllib/request.py\", line 471, in open\n    response = meth(req, response)\n  File \"/usr/lib/python3.5/urllib/request.py\", line 581, in http_response\n    'http', request, response, code, msg, hdrs)\n  File \"/usr/lib/python3.5/urllib/request.py\", line 509, in error\n    return self._call_chain(*args)\n  File \"/usr/lib/python3.5/urllib/request.py\", line 443, in _call_chain\n    result = func(*args)\n  File \"/usr/lib/python3.5/urllib/request.py\", line 589, in http_error_default\n    raise HTTPError(req.full_url, code, msg, hdrs, fp)\nurllib.error.HTTPError: HTTP Error 401: Unauthorized\nDuring handling of the above exception, another exception occurred:\nTraceback (most recent call last):\n  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/view/dialogs/report_bug.py\", line 85, in submit\n    ret = repo.issues.post(title=data['title'], body=data['body'])\n  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/extlibs/github.py\", line 203, in __call__\n    return self._gh._http(self._method, self._path, **kw)\n  File \"/usr/lib/python3.5/site-packages/open_cobol_ide/extlibs/github.py\", line 178, in _http\n    raise ApiError(url, req, resp)\ngithub.ApiError: https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/issues\n```\n\n"}}