{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/ptvsd/issues/987","repository_url":"https://api.github.com/repos/Microsoft/ptvsd","labels_url":"https://api.github.com/repos/Microsoft/ptvsd/issues/987/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ptvsd/issues/987/comments","events_url":"https://api.github.com/repos/Microsoft/ptvsd/issues/987/events","html_url":"https://github.com/Microsoft/ptvsd/issues/987","id":377557115,"node_id":"MDU6SXNzdWUzNzc1NTcxMTU=","number":987,"title":"'NoneType' object is not callable","user":{"login":"karthiknadig","id":3840081,"node_id":"MDQ6VXNlcjM4NDAwODE=","avatar_url":"https://avatars3.githubusercontent.com/u/3840081?v=4","gravatar_id":"","url":"https://api.github.com/users/karthiknadig","html_url":"https://github.com/karthiknadig","followers_url":"https://api.github.com/users/karthiknadig/followers","following_url":"https://api.github.com/users/karthiknadig/following{/other_user}","gists_url":"https://api.github.com/users/karthiknadig/gists{/gist_id}","starred_url":"https://api.github.com/users/karthiknadig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthiknadig/subscriptions","organizations_url":"https://api.github.com/users/karthiknadig/orgs","repos_url":"https://api.github.com/users/karthiknadig/repos","events_url":"https://api.github.com/users/karthiknadig/events{/privacy}","received_events_url":"https://api.github.com/users/karthiknadig/received_events","type":"User","site_admin":false},"labels":[{"id":772812964,"node_id":"MDU6TGFiZWw3NzI4MTI5NjQ=","url":"https://api.github.com/repos/Microsoft/ptvsd/labels/bug","name":"bug","color":"ee0701","default":true},{"id":965143256,"node_id":"MDU6TGFiZWw5NjUxNDMyNTY=","url":"https://api.github.com/repos/Microsoft/ptvsd/labels/platform:%20Linux","name":"platform: Linux","color":"d93f0b","default":false},{"id":839601987,"node_id":"MDU6TGFiZWw4Mzk2MDE5ODc=","url":"https://api.github.com/repos/Microsoft/ptvsd/labels/priority:P1","name":"priority:P1","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-05T19:54:23Z","updated_at":"2018-11-08T21:38:35Z","closed_at":null,"author_association":"MEMBER","body":"## Environment data\r\n\r\n- PTVSD version: master\r\n- OS and version: Centos/7\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Using VS Code or Visual Studio: VSC\r\n\r\n## Actual behavior\r\n\r\nCalling `ptvsd.enable_attach()` throws this error.\r\n```\r\nTraceback (most recent call last):\r\n  File \"./scratch.py\", line 3, in <module>\r\n    ptvsd.enable_attach()\r\n  File \"/vagrant/ptvsd/attach_server.py\", line 72, in enable_attach\r\n    redirect_output=redirect_output,\r\n  File \"/vagrant/ptvsd/_remote.py\", line 85, in enable_attach\r\n    suspend=False)\r\n  File \"/vagrant/ptvsd/_vendored/pydevd/pydevd.py\", line 1488, in settrace\r\n    stop_at_frame,\r\n  File \"/vagrant/ptvsd/_vendored/pydevd/pydevd.py\", line 1582, in _locked_settrace\r\n    debugger.set_tracing_for_untraced_contexts(ignore_frame=get_frame())\r\n  File \"/vagrant/ptvsd/_vendored/pydevd/pydevd.py\", line 722, in set_tracing_for_untraced_contexts\r\n    for t in threads:\r\n  File \"/vagrant/ptvsd/_vendored/pydevd/pydevd.py\", line 722, in set_tracing_for_untraced_contexts\r\n    for t in threads:\r\nTypeError: 'NoneType' object is not callable\r\n```\r\nI suspect that this might not be the right stack for this.\r\n\r\n## Expected  behavior\r\n\r\nShould not throw error\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/ptvsd/issues/comments/437165275","html_url":"https://github.com/Microsoft/ptvsd/issues/987#issuecomment-437165275","issue_url":"https://api.github.com/repos/Microsoft/ptvsd/issues/987","id":437165275,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzE2NTI3NQ==","user":{"login":"karthiknadig","id":3840081,"node_id":"MDQ6VXNlcjM4NDAwODE=","avatar_url":"https://avatars3.githubusercontent.com/u/3840081?v=4","gravatar_id":"","url":"https://api.github.com/users/karthiknadig","html_url":"https://github.com/karthiknadig","followers_url":"https://api.github.com/users/karthiknadig/followers","following_url":"https://api.github.com/users/karthiknadig/following{/other_user}","gists_url":"https://api.github.com/users/karthiknadig/gists{/gist_id}","starred_url":"https://api.github.com/users/karthiknadig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthiknadig/subscriptions","organizations_url":"https://api.github.com/users/karthiknadig/orgs","repos_url":"https://api.github.com/users/karthiknadig/repos","events_url":"https://api.github.com/users/karthiknadig/events{/privacy}","received_events_url":"https://api.github.com/users/karthiknadig/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T21:38:35Z","updated_at":"2018-11-08T21:38:35Z","author_association":"MEMBER","body":"@int19h could this be the pipe we use to communicate with pydevd that is broken? I see different stacks each time:\r\n```\r\n2018-11-08T20:58:19.0491030Z @00.047363: ptvsd#50247 ERR   File \"/Users/vsts/agent/2.141.2/work/1/s/ptvsd/__main__.py\", line 269, in <module>\r\n2018-11-08T20:58:19.0491100Z @00.047441: ptvsd#50247 ERR     main()\r\n2018-11-08T20:58:19.0491160Z @00.047631: ptvsd#50247 ERR   File \"/Users/vsts/agent/2.141.2/work/1/s/ptvsd/__main__.py\", line 265, in main\r\n2018-11-08T20:58:19.0491230Z @00.047720: ptvsd#50247 ERR     wait=args.wait)\r\n2018-11-08T20:58:19.0491290Z @00.047921: ptvsd#50247 ERR   File \"/Users/vsts/agent/2.141.2/work/1/s/ptvsd/__main__.py\", line 258, in handle_args\r\n2018-11-08T20:58:19.0491370Z @00.048059: ptvsd#50247 ERR     debug_main(addr, name, kind, *extra, **kwargs)\r\n2018-11-08T20:58:19.0491430Z @00.048300: ptvsd#50247 ERR   File \"/Users/vsts/agent/2.141.2/work/1/s/ptvsd/_local.py\", line 43, in debug_main\r\n2018-11-08T20:58:19.0491510Z @00.048455: ptvsd#50247 ERR     run_module(address, name, *extra, **kwargs)\r\n2018-11-08T20:58:19.0491580Z @00.048664: ptvsd#50247 ERR   File \"/Users/vsts/agent/2.141.2/work/1/s/ptvsd/_local.py\", line 68, in run_module\r\n2018-11-08T20:58:19.0491650Z @00.048774: ptvsd#50247 ERR     run(argv, addr, **kwargs)\r\n2018-11-08T20:58:19.0491710Z @00.048982: ptvsd#50247 ERR   File \"/Users/vsts/agent/2.141.2/work/1/s/ptvsd/_local.py\", line 140, in _run\r\n2018-11-08T20:58:19.0491780Z @00.049074: ptvsd#50247 ERR     _pydevd.main()\r\n2018-11-08T20:58:19.0491850Z @00.049303: ptvsd#50247 ERR   File \"/Users/vsts/agent/2.141.2/work/1/s/ptvsd/_vendored/pydevd/pydevd.py\", line 1925, in main\r\n2018-11-08T20:58:19.0491920Z @00.049419: ptvsd#50247 ERR     debugger.connect(host, port)\r\n2018-11-08T20:58:19.0492420Z @00.049556: ptvsd#50247 ERR TypeError: 'NoneType' object is not callable\r\n```"}}
{"actor":{"display_login":"karthiknadig"}}