{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/43410","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/43410/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/43410/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/43410/events","html_url":"https://github.com/Microsoft/vscode/issues/43410","id":296164530,"number":43410,"title":"Debugging protractor test with patched function causes test to crash ","user":{"login":"gawicks","id":1481491,"avatar_url":"https://avatars0.githubusercontent.com/u/1481491?v=4","gravatar_id":"","url":"https://api.github.com/users/gawicks","html_url":"https://github.com/gawicks","followers_url":"https://api.github.com/users/gawicks/followers","following_url":"https://api.github.com/users/gawicks/following{/other_user}","gists_url":"https://api.github.com/users/gawicks/gists{/gist_id}","starred_url":"https://api.github.com/users/gawicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gawicks/subscriptions","organizations_url":"https://api.github.com/users/gawicks/orgs","repos_url":"https://api.github.com/users/gawicks/repos","events_url":"https://api.github.com/users/gawicks/events{/privacy}","received_events_url":"https://api.github.com/users/gawicks/received_events","type":"User","site_admin":false},"labels":[{"id":256129993,"url":"https://api.github.com/repos/Microsoft/vscode/labels/bug","name":"bug","color":"8D6673","default":true},{"id":291054922,"url":"https://api.github.com/repos/Microsoft/vscode/labels/debug","name":"debug","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":{"login":"roblourens","id":323878,"avatar_url":"https://avatars3.githubusercontent.com/u/323878?v=4","gravatar_id":"","url":"https://api.github.com/users/roblourens","html_url":"https://github.com/roblourens","followers_url":"https://api.github.com/users/roblourens/followers","following_url":"https://api.github.com/users/roblourens/following{/other_user}","gists_url":"https://api.github.com/users/roblourens/gists{/gist_id}","starred_url":"https://api.github.com/users/roblourens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblourens/subscriptions","organizations_url":"https://api.github.com/users/roblourens/orgs","repos_url":"https://api.github.com/users/roblourens/repos","events_url":"https://api.github.com/users/roblourens/events{/privacy}","received_events_url":"https://api.github.com/users/roblourens/received_events","type":"User","site_admin":false},"assignees":[{"login":"roblourens","id":323878,"avatar_url":"https://avatars3.githubusercontent.com/u/323878?v=4","gravatar_id":"","url":"https://api.github.com/users/roblourens","html_url":"https://github.com/roblourens","followers_url":"https://api.github.com/users/roblourens/followers","following_url":"https://api.github.com/users/roblourens/following{/other_user}","gists_url":"https://api.github.com/users/roblourens/gists{/gist_id}","starred_url":"https://api.github.com/users/roblourens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblourens/subscriptions","organizations_url":"https://api.github.com/users/roblourens/orgs","repos_url":"https://api.github.com/users/roblourens/repos","events_url":"https://api.github.com/users/roblourens/events{/privacy}","received_events_url":"https://api.github.com/users/roblourens/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-02-11T06:09:12Z","updated_at":"2018-02-11T17:41:47Z","closed_at":null,"author_association":"NONE","body":"- VSCode Version: 1.20.0\r\n- OS Version: Windows 10 1709\r\n- Works as intended in VSCode Version 1.19.3 \r\n- Extensions are disabled?: Yes\r\n- Node version: 8.9.4\r\n\r\n[bug.zip](https://github.com/Microsoft/vscode/files/1714080/bug.zip)\r\n\r\nThe attached zip contains a project that the issue reproduces in. It's a minimal protractor-tsnode project with a single patched method. ts-node fails to find the patched method, and crashes under the debugger. Note that simply running the project with npm test works fine.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Extract the attached zip file . \r\n2. Do an npm install\r\n3. Start debugging (F5)\r\n- Debugger crashes with protractor_1.browser.element(...).foo is not a function\r\ntrace: \r\n```\r\n      - Failed: protractor_1.browser.element(...).foo is not a function\r\n          at Object.<anonymous> (C:\\Users\\~\\Desktop\\bug\\index.ts:11:41)\r\n          at step (C:\\Users\\~\\Desktop\\bug\\index.ts:32:23)\r\n          at Object.next (C:\\Users\\~\\Desktop\\bug\\index.ts:13:53)\r\n          at C:\\Users\\~\\Desktop\\bug\\index.ts:7:71\r\n          at new Promise (<anonymous>)\r\n          at __awaiter (C:\\Users\\~\\Desktop\\bug\\index.ts:3:12)\r\n          at UserContext.<anonymous> (C:\\Users\\~\\Desktop\\bug\\index.ts:6:16)\r\n          at new Promise (<anonymous>)\r\n          at SimpleScheduler.promise (c:\\Users\\~\\Desktop\\bug\\node_modules\\selenium-webdriver\\lib\\promise.js:2242:12)\r\n      From asynchronous test: \r\n      Error\r\n          at Suite.<anonymous> (C:\\Users\\~\\Desktop\\bug\\index.ts:6:5)\r\n          at Object.<anonymous> (C:\\Users\\~\\Desktop\\bug\\index.ts:5:1)\r\n          at Module._compile (module.js:643:30)\r\n          at Module.m._compile (C:\\Users\\~\\Desktop\\bug\\node_modules\\ts-node\\src\\index.ts:422:23)\r\n          at Module._extensions..js (module.js:654:10)\r\n          at Object.require.extensions.(anonymous function) [as .ts] (C:\\Users\\~\\Desktop\\bug\\node_modules\\ts-node\\src\\index.ts:425:12)\r\n\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/364770917","html_url":"https://github.com/Microsoft/vscode/issues/43410#issuecomment-364770917","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/43410","id":364770917,"user":{"login":"gawicks","id":1481491,"avatar_url":"https://avatars0.githubusercontent.com/u/1481491?v=4","gravatar_id":"","url":"https://api.github.com/users/gawicks","html_url":"https://github.com/gawicks","followers_url":"https://api.github.com/users/gawicks/followers","following_url":"https://api.github.com/users/gawicks/following{/other_user}","gists_url":"https://api.github.com/users/gawicks/gists{/gist_id}","starred_url":"https://api.github.com/users/gawicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gawicks/subscriptions","organizations_url":"https://api.github.com/users/gawicks/orgs","repos_url":"https://api.github.com/users/gawicks/repos","events_url":"https://api.github.com/users/gawicks/events{/privacy}","received_events_url":"https://api.github.com/users/gawicks/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T17:41:47Z","updated_at":"2018-02-11T17:41:47Z","author_association":"NONE","body":"@weinand Thanks."}}
{"actor":{"display_login":"gawicks"}}