{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2620","repository_url":"https://api.github.com/repos/Microsoft/vscode-python","labels_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2620/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2620/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2620/events","html_url":"https://github.com/Microsoft/vscode-python/issues/2620","id":361510219,"node_id":"MDU6SXNzdWUzNjE1MTAyMTk=","number":2620,"title":"Erroneous notification \"Unable to open file filename.py : File not Found\" notification during python debugging.","user":{"login":"whubbla","id":22544794,"node_id":"MDQ6VXNlcjIyNTQ0Nzk0","avatar_url":"https://avatars2.githubusercontent.com/u/22544794?v=4","gravatar_id":"","url":"https://api.github.com/users/whubbla","html_url":"https://github.com/whubbla","followers_url":"https://api.github.com/users/whubbla/followers","following_url":"https://api.github.com/users/whubbla/following{/other_user}","gists_url":"https://api.github.com/users/whubbla/gists{/gist_id}","starred_url":"https://api.github.com/users/whubbla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whubbla/subscriptions","organizations_url":"https://api.github.com/users/whubbla/orgs","repos_url":"https://api.github.com/users/whubbla/repos","events_url":"https://api.github.com/users/whubbla/events{/privacy}","received_events_url":"https://api.github.com/users/whubbla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-18T22:38:46Z","updated_at":"2018-09-19T15:06:17Z","closed_at":null,"author_association":"NONE","body":"Tried opening this on vscode, was rejected b/c \"caused by extension\".  Hope this is the right place since this seems to be relevant extension.\r\n\r\nI open VS Code from an anaconda prompt, open a folder containing several .py files, and then open one of those files. I can run it via Ctrl-F5 without any problems. If I try to debug it with F5, I receive a notification like this:\r\n\r\n> Unable to open 'filename.py': File not found (file:///s:/path/word&morewords/etc etc/filename.py).\r\n\r\nThe actual path is to this file is:\r\n\r\n> s:/path/word&morewords/etc etc/filename.py\r\n\r\nIt's the same, except that the ampersand is a normal ampersand.\r\n\r\nThe filename.py to which the notification refers is the same file I have open in VS Code and am debugging. I can proceed through the file line-by-line with F10 and use breakpoints, but at each stopping point (i.e., any breakpoint or after each line step), the notification re-opens.\r\n\r\nI have tried re-pasting the path in the \"program\" field in launch.json, but it does not help. I am not sure whether the ampersand or spaces in the folder path are causing the problem.\r\n\r\nAlso, the line that is being executed is not highlighted when I am running the debugger. So, I have no idea where I am unless I keep track. Perhaps these issues are related, but I am not sure.\r\n\r\nVS Code version: Code 1.27.2 (f46c4c4, 2018-09-12T16:17:45.060Z)\r\nOS version: Windows_NT x64 10.0.17134"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/comments/422839205","html_url":"https://github.com/Microsoft/vscode-python/issues/2620#issuecomment-422839205","issue_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2620","id":422839205,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjgzOTIwNQ==","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-19T15:06:17Z","updated_at":"2018-09-19T15:06:17Z","author_association":"NONE","body":"I can reproduce this.\r\n\r\nSetup a project like so:\r\n\r\n```\r\nworkspacedir/\r\n  |\r\n  words&morewords/\r\n    |\r\n    etc ect/\r\n      filename.py\r\n```\r\n\r\nwith contents of `filename.py`:\r\n\r\n```python\r\ndef show_me_the_bug(bug):\r\n    print(bug)\r\n\r\n\r\nshow_me_the_bug('this one')\r\n```\r\n\r\nOpen the workspacedir with VSCode, and click on the `filename.py` file.\r\n\r\nRun the file by pressing `Ctrl+F5` or right-clicking on the file in the editor and choosing `Run Python File in Terminal`. Observe that the file is run and output is as expected.\r\n\r\nDebug the file by pressing `F5`. Observe that a popup appears:\r\n\r\n![image](https://user-images.githubusercontent.com/11466735/45761947-25718600-bbe2-11e8-96d9-9c5519c15c84.png)\r\n\r\nAnd that the terminal output is:\r\n```pwsh\r\nPS E:\\dev\\github\\d3r3kk\\test\\2620_ampersand_in_path> cd 'e:\\dev\\github\\d3r3kk\\test\\2620_ampersand_in_path'; ${env:PYTHONIOENCODING}='UTF-8'; ${env:PYTHONUNBUFFERED}='1'; ${env:PYTHONPATH}='c:\\Users\\derek\\.vscode-insiders\\extensions\\ms-python.python-2018.8.0\\pythonFiles\\experimental\\ptvsd';\r\n& 'python' '-m' 'ptvsd' '--host' 'localhost' '--port' '55995' 'e:\\dev\\github\\d3r3kk\\test\\2620_ampersand_in_path\\words&morewords\\etc etc\\filename.py'\r\n```\r\n\r\n<details>\r\n  <summary>And the developer console output is: (Click to expand)</summary>\r\n\r\n```log\r\nnotificationsAlerts.ts:41 Unable to open 'filename.py': File not found (file:///e:/dev/github/d3r3kk/test/2620_ampersand_in_path/words&amp;morewords/etc etc/filename.py).\r\nt.onDidNotificationChange @ notificationsAlerts.ts:41\r\n(anonymous) @ notificationsAlerts.ts:27\r\ne.fire @ event.ts:140\r\nt.notify @ notifications.ts:115\r\nt.notify @ notificationService.ts:54\r\nt.doHandleOpenEditorError @ editorGroupView.ts:811\r\n(anonymous) @ editorGroupView.ts:789\r\nm @ winjs.base.js:1230\r\nenter @ winjs.base.js:916\r\n_run @ winjs.base.js:1089\r\n_chainedError @ winjs.base.js:1052\r\nn @ winjs.base.js:751\r\nthen @ winjs.base.js:1457\r\nenter @ winjs.base.js:762\r\n_run @ winjs.base.js:1089\r\n_setCompleteValue @ winjs.base.js:1073\r\nm @ winjs.base.js:1230\r\nenter @ winjs.base.js:916\r\n_run @ winjs.base.js:1089\r\n_chainedError @ winjs.base.js:1052\r\nn @ winjs.base.js:751\r\nthen @ winjs.base.js:1457\r\nenter @ winjs.base.js:762\r\n_run @ winjs.base.js:1089\r\n_setCompleteValue @ winjs.base.js:1073\r\nm @ winjs.base.js:1230\r\nenter @ winjs.base.js:916\r\n_run @ winjs.base.js:1089\r\n_chainedError @ winjs.base.js:1052\r\nn @ winjs.base.js:751\r\nthen @ winjs.base.js:1457\r\nenter @ winjs.base.js:762\r\n_run @ winjs.base.js:1089\r\n_setCompleteValue @ winjs.base.js:1073\r\nm @ winjs.base.js:1230\r\nenter @ winjs.base.js:916\r\n_run @ winjs.base.js:1089\r\n_chainedError @ winjs.base.js:1052\r\nn @ winjs.base.js:751\r\nthen @ winjs.base.js:1457\r\nenter @ winjs.base.js:762\r\n_run @ winjs.base.js:1089\r\n_setCompleteValue @ winjs.base.js:1073\r\nm @ winjs.base.js:1230\r\nenter @ winjs.base.js:916\r\n_run @ winjs.base.js:1089\r\n_chainedError @ winjs.base.js:1052\r\nn @ winjs.base.js:751\r\nthen @ winjs.base.js:1457\r\nenter @ winjs.base.js:762\r\n_run @ winjs.base.js:1089\r\n_setCompleteValue @ winjs.base.js:1073\r\nm @ winjs.base.js:1230\r\nenter @ winjs.base.js:916\r\n_run @ winjs.base.js:1089\r\n_chainedError @ winjs.base.js:1052\r\nn @ winjs.base.js:751\r\nthen @ winjs.base.js:1457\r\nenter @ winjs.base.js:762\r\n_run @ winjs.base.js:1089\r\n_setCompleteValue @ winjs.base.js:1073\r\nm @ winjs.base.js:1230\r\nenter @ winjs.base.js:916\r\n_run @ winjs.base.js:1089\r\n_chainedError @ winjs.base.js:1052\r\nn @ winjs.base.js:751\r\nthen @ winjs.base.js:1457\r\nenter @ winjs.base.js:762\r\n_run @ winjs.base.js:1089\r\n_setCompleteValue @ winjs.base.js:1073\r\nm @ winjs.base.js:1230\r\nenter @ winjs.base.js:916\r\n_run @ winjs.base.js:1089\r\n_error @ winjs.base.js:1062\r\nl @ winjs.base.js:1846\r\n(anonymous) @ winjs.base.js:1860\r\nm @ winjs.base.js:1230\r\nenter @ winjs.base.js:916\r\n_run @ winjs.base.js:1089\r\n_chainedError @ winjs.base.js:1052\r\nn @ winjs.base.js:751\r\nthen @ winjs.base.js:1457\r\nenter @ winjs.base.js:762\r\n_run @ winjs.base.js:1089\r\n_setCompleteValue @ winjs.base.js:1073\r\nm @ winjs.base.js:1230\r\nenter @ winjs.base.js:916\r\n_run @ winjs.base.js:1089\r\n_error @ winjs.base.js:1062\r\n(anonymous) @ async.ts:687\r\n(anonymous) @ extfs.ts:59\r\n(anonymous) @ c:\\Users\\derek\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\resources\\app\\node_modules.asar\\graceful-fs\\polyfills.js:284\r\n(anonymous) @ original-fs.js:152\r\n```\r\n</details>"}}
{"actor":{"display_login":"d3r3kk"}}