{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2556","repository_url":"https://api.github.com/repos/Microsoft/vscode-python","labels_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2556/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2556/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2556/events","html_url":"https://github.com/Microsoft/vscode-python/issues/2556","id":359405771,"node_id":"MDU6SXNzdWUzNTk0MDU3NzE=","number":2556,"title":"Debugger never ends when running the script, and it fails to pick local dependencies","user":{"login":"Balky79","id":18532205,"node_id":"MDQ6VXNlcjE4NTMyMjA1","avatar_url":"https://avatars3.githubusercontent.com/u/18532205?v=4","gravatar_id":"","url":"https://api.github.com/users/Balky79","html_url":"https://github.com/Balky79","followers_url":"https://api.github.com/users/Balky79/followers","following_url":"https://api.github.com/users/Balky79/following{/other_user}","gists_url":"https://api.github.com/users/Balky79/gists{/gist_id}","starred_url":"https://api.github.com/users/Balky79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Balky79/subscriptions","organizations_url":"https://api.github.com/users/Balky79/orgs","repos_url":"https://api.github.com/users/Balky79/repos","events_url":"https://api.github.com/users/Balky79/events{/privacy}","received_events_url":"https://api.github.com/users/Balky79/received_events","type":"User","site_admin":false},"labels":[{"id":717126847,"node_id":"MDU6TGFiZWw3MTcxMjY4NDc=","url":"https://api.github.com/repos/Microsoft/vscode-python/labels/feature-debugging","name":"feature-debugging","color":"006b75","default":false},{"id":717071344,"node_id":"MDU6TGFiZWw3MTcwNzEzNDQ=","url":"https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20verification","name":"needs verification","color":"fbca04","default":false},{"id":716013197,"node_id":"MDU6TGFiZWw3MTYwMTMxOTc=","url":"https://api.github.com/repos/Microsoft/vscode-python/labels/type-bug","name":"type-bug","color":"ee0701","default":false}],"state":"open","locked":false,"assignee":{"login":"d3r3kk","id":11466735,"node_id":"MDQ6VXNlcjExNDY2NzM1","avatar_url":"https://avatars0.githubusercontent.com/u/11466735?v=4","gravatar_id":"","url":"https://api.github.com/users/d3r3kk","html_url":"https://github.com/d3r3kk","followers_url":"https://api.github.com/users/d3r3kk/followers","following_url":"https://api.github.com/users/d3r3kk/following{/other_user}","gists_url":"https://api.github.com/users/d3r3kk/gists{/gist_id}","starred_url":"https://api.github.com/users/d3r3kk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3r3kk/subscriptions","organizations_url":"https://api.github.com/users/d3r3kk/orgs","repos_url":"https://api.github.com/users/d3r3kk/repos","events_url":"https://api.github.com/users/d3r3kk/events{/privacy}","received_events_url":"https://api.github.com/users/d3r3kk/received_events","type":"User","site_admin":false},"assignees":[{"login":"d3r3kk","id":11466735,"node_id":"MDQ6VXNlcjExNDY2NzM1","avatar_url":"https://avatars0.githubusercontent.com/u/11466735?v=4","gravatar_id":"","url":"https://api.github.com/users/d3r3kk","html_url":"https://github.com/d3r3kk","followers_url":"https://api.github.com/users/d3r3kk/followers","following_url":"https://api.github.com/users/d3r3kk/following{/other_user}","gists_url":"https://api.github.com/users/d3r3kk/gists{/gist_id}","starred_url":"https://api.github.com/users/d3r3kk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3r3kk/subscriptions","organizations_url":"https://api.github.com/users/d3r3kk/orgs","repos_url":"https://api.github.com/users/d3r3kk/repos","events_url":"https://api.github.com/users/d3r3kk/events{/privacy}","received_events_url":"https://api.github.com/users/d3r3kk/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-12T10:02:16Z","updated_at":"2018-09-12T15:02:31Z","closed_at":null,"author_association":"NONE","body":"## Environment data\r\n\r\n- VS Code version: 1.27.1\r\n- Extension version (available under the Extensions sidebar): 2018.8.0\r\n- OS and version: Windows 10\r\n- Python version (& distribution if applicable, e.g. Anaconda): Python 3.7, Anaconda, Python 2.6...\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv, conda, N/A\r\n- Relevant/affected Python packages and their versions: all above\r\n\r\n## Actual behavior\r\n\r\nRunning the python script fails to pick up depending local modules.\r\nDebugging mode never finishes, and when stopped manually it causes an \"error in debugger Banner\" error. \r\n\r\n## Expected  behavior\r\n\r\nEverything to work as it worked with VS Code version 1.27.0\r\n\r\n## Steps to reproduce:\r\nCreate a blank .py script, and try to import script from the same folder.\r\nRun your script.\r\nObserve debugging banner / Trackback dump. \r\n\r\n## Logs\r\n\r\nWhen used directly with a folder where python is installed:\r\n`Traceback (most recent call last):\r\n  File \"C:\\Python35\\lib\\runpy.py\", line 170, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"C:\\Python35\\lib\\runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\__main__.py\", line 211, in <module>\r\n    singlesession=args.single_session)\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\__main__.py\", line 203, in main\r\n    run_main(addr, name, kind, *extra, **kwargs)\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\_local.py\", line 37, in run_main\r\n    runner(addr, name, kind == 'module', *extra, **kwargs)\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\runner.py\", line 32, in run\r\n    set_trace=False)\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\_vendored\\pydevd\\pydevd.py\", line 1099, in run\r\n    return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\_vendored\\pydevd\\pydevd.py\", line 1106, in _exec\r\n    pydev_imports.execfile(file, globals, locals)  # execute the script\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\_vendored\\pydevd\\_pydev_imps\\_pydev_execfile.py\", line 25, in execfile\r\n    exec(compile(contents+\"\\n\", file, 'exec'), glob, loc)\r\n  File \"c:\\!IgorBackup\\python-automation-scripts\\PyScripts\\blankStart.py\", line 9, in <module>\r\n    import sqlite3_hello_world\r\nImportError: No module named 'sqlite3_hello_world'`\r\n\r\nWhen used with Anaconda virtualenv:\r\n`Traceback (most recent call last):\r\n  File \"g:\\Anaconda3\\Lib\\runpy.py\", line 193, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"g:\\Anaconda3\\Lib\\runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\__main__.py\", line 211, in <module>\r\n    singlesession=args.single_session)\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\__main__.py\", line 203, in main\r\n    run_main(addr, name, kind, *extra, **kwargs)\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\_local.py\", line 37, in run_main\r\n    runner(addr, name, kind == 'module', *extra, **kwargs)\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\runner.py\", line 32, in run\r\n    set_trace=False)\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\_vendored\\pydevd\\pydevd.py\", line 1099, in run\r\n    return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\_vendored\\pydevd\\pydevd.py\", line 1106, in _exec\r\n    pydev_imports.execfile(file, globals, locals)  # execute the script\r\n  File \"c:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd\\ptvsd\\_vendored\\pydevd\\_pydev_imps\\_pydev_execfile.py\", line 25, in execfile\r\n    exec(compile(contents+\"\\n\", file, 'exec'), glob, loc)\r\n  File \"c:\\!IgorBackup\\python-automation-scripts\\PyScripts\\blankStart.py\", line 9, in <module>\r\n    import sqlite3_hello_world\r\nModuleNotFoundError: No module named 'sqlite3_hello_world'`\r\n\r\n![msft-01](https://user-images.githubusercontent.com/18532205/45417842-01122880-b67b-11e8-9d74-a4762e0bf97b.png)\r\n![msft-02](https://user-images.githubusercontent.com/18532205/45417843-01aabf00-b67b-11e8-89e9-4ce59c8db081.png)\r\n![msft-03](https://user-images.githubusercontent.com/18532205/45417844-01aabf00-b67b-11e8-85cb-c5cba7f39f27.png)\r\n\r\n\r\nOutput from `Console` under the `Developer Tools` panel (toggle Developer Tools on under `Help`)\r\n\r\n```\r\nconsole.ts:136 [Extension Host] Python Extension: Error in debugger Banner Error: Missing required @injectable annotation in: Random.\r\n\tat getTargets (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\node_modules\\inversify\\lib\\planning\\reflection_utils.js:20:15)\r\n\tat Object.getDependencies (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\node_modules\\inversify\\lib\\planning\\reflection_utils.js:11:19)\r\n\tat C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\node_modules\\inversify\\lib\\planning\\planner.js:106:51\r\n\tat Array.forEach (<anonymous>)\r\n\tat _createSubRequests (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\node_modules\\inversify\\lib\\planning\\planner.js:94:20)\r\n\tat Object.plan (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\node_modules\\inversify\\lib\\planning\\planner.js:129:9)\r\n\tat C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\node_modules\\inversify\\lib\\container\\container.js:316:37\r\n\tat Container._get (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\node_modules\\inversify\\lib\\container\\container.js:309:44)\r\n\tat Container.get (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\node_modules\\inversify\\lib\\container\\container.js:228:21)\r\n\tat ServiceContainer.get (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\ioc\\container.js:28:89)\r\n\tat DebuggerBanner.<anonymous> (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:163:55)\r\n\tat Generator.next (<anonymous>)\r\n\tat C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:18:71\r\n\tat new Promise (<anonymous>)\r\n\tat __awaiter (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:14:12)\r\n\tat DebuggerBanner.getDebuggerLaunchThresholdCounter (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:158:16)\r\n\tat DebuggerBanner.<anonymous> (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:135:22)\r\n\tat Generator.next (<anonymous>)\r\n\tat C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:18:71\r\n\tat new Promise (<anonymous>)\r\n\tat __awaiter (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:14:12)\r\n\tat DebuggerBanner.passedThreshold (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:133:16)\r\n\tat DebuggerBanner.<anonymous> (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:72:30)\r\n\tat Generator.next (<anonymous>)\r\n\tat C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:18:71\r\n\tat new Promise (<anonymous>)\r\n\tat __awaiter (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:14:12)\r\n\tat DebuggerBanner.shouldShow (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:68:16)\r\n\tat DebuggerBanner.<anonymous> (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:188:37)\r\n\tat Generator.next (<anonymous>)\r\n\tat fulfilled (C:\\Users\\istojako\\.vscode\\extensions\\ms-python.python-2018.8.0\\out\\client\\debugger\\banner.js:15:58)\r\n\tat <anonymous>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/comments/420681970","html_url":"https://github.com/Microsoft/vscode-python/issues/2556#issuecomment-420681970","issue_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2556","id":420681970,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDY4MTk3MA==","user":{"login":"d3r3kk","id":11466735,"node_id":"MDQ6VXNlcjExNDY2NzM1","avatar_url":"https://avatars0.githubusercontent.com/u/11466735?v=4","gravatar_id":"","url":"https://api.github.com/users/d3r3kk","html_url":"https://github.com/d3r3kk","followers_url":"https://api.github.com/users/d3r3kk/followers","following_url":"https://api.github.com/users/d3r3kk/following{/other_user}","gists_url":"https://api.github.com/users/d3r3kk/gists{/gist_id}","starred_url":"https://api.github.com/users/d3r3kk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3r3kk/subscriptions","organizations_url":"https://api.github.com/users/d3r3kk/orgs","repos_url":"https://api.github.com/users/d3r3kk/repos","events_url":"https://api.github.com/users/d3r3kk/events{/privacy}","received_events_url":"https://api.github.com/users/d3r3kk/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T15:02:31Z","updated_at":"2018-09-12T15:02:31Z","author_association":"NONE","body":"@Balky79, thanks for the report!\r\n\r\nThere may be two problems going on here, let's try and tackle them one by one.\r\n\r\n1. The extension is raising an error regarding the use of a DebuggerBanner.\r\n\r\nThis is a bug with our latest version of the extension, and one that we will have to fix as soon as we can. Our team will triage this today and determine if we can put out a fix for it right now or provide a workaround for you.  \r\n\r\n2. The debugger doesn't work for a file imported from the same folder.\r\n\r\nI cannot reproduce this, as the simple reproduction case you provide is something that works without fail for me. Could you provide us with a minimum sample of code that has a reproduction on your machine?\r\n\r\n\r\nIt is possible that the two issues are related so I will attempt to reproduce #2 on my machine a bit further by forcing #1 to happen alongside it. \r\n"}}
{"actor":{"display_login":"d3r3kk"}}