{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2930","repository_url":"https://api.github.com/repos/Microsoft/vscode-python","labels_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2930/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2930/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2930/events","html_url":"https://github.com/Microsoft/vscode-python/issues/2930","id":371278163,"node_id":"MDU6SXNzdWUzNzEyNzgxNjM=","number":2930,"title":"Run Selection/Line in Python Terminal gives unexpected indent","user":{"login":"WayOfKings","id":19615330,"node_id":"MDQ6VXNlcjE5NjE1MzMw","avatar_url":"https://avatars1.githubusercontent.com/u/19615330?v=4","gravatar_id":"","url":"https://api.github.com/users/WayOfKings","html_url":"https://github.com/WayOfKings","followers_url":"https://api.github.com/users/WayOfKings/followers","following_url":"https://api.github.com/users/WayOfKings/following{/other_user}","gists_url":"https://api.github.com/users/WayOfKings/gists{/gist_id}","starred_url":"https://api.github.com/users/WayOfKings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WayOfKings/subscriptions","organizations_url":"https://api.github.com/users/WayOfKings/orgs","repos_url":"https://api.github.com/users/WayOfKings/repos","events_url":"https://api.github.com/users/WayOfKings/events{/privacy}","received_events_url":"https://api.github.com/users/WayOfKings/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-17T21:40:25Z","updated_at":"2018-10-19T16:44:06Z","closed_at":"2018-10-18T00:14:36Z","author_association":"NONE","body":"## Environment data\r\n\r\n- VS Code version: 1.28.1 (user setup)\r\n- Extension version (available under the Extensions sidebar): 2018.9.0\r\n- OS and version: Windows 7 Professional\r\n- Python version (& distribution if applicable, e.g. Anaconda): Anaconda 3-5.3.0\r\n\r\n\r\n## Actual behavior\r\n\r\n![1](https://user-images.githubusercontent.com/19615330/47117043-ec502400-d228-11e8-9094-066e1ef234d0.JPG)\r\n![2](https://user-images.githubusercontent.com/19615330/47117048-efe3ab00-d228-11e8-9fa1-69c899ad5702.JPG)\r\n\r\n\r\n## Expected  behavior\r\n\r\nThe selection runs and outputs:\r\n2\r\n4\r\n\r\nHad a colleague try it in Jupyter Notebook and IDLE and it works.\r\nAlso, works fine if in VSCode I run Debug (F5), which runs the whole .py file.\r\n![3](https://user-images.githubusercontent.com/19615330/47117671-a2683d80-d22a-11e8-8000-47b6e82b3536.JPG)\r\n\r\n## Steps to reproduce:\r\nMake a new .py file, enter in lines 11 through 15 in the first picture above. \r\n\r\n- select the list assignment and (shift + enter) to run the selection in python terminal\r\n- then select the 3 lines of the loop and (shift + enter)\r\n\r\nI have tried various indentations and adding new lines between various lines but still have this issue.\r\n\r\n##Logs\r\nFrom terminal...\r\n\r\n![4](https://user-images.githubusercontent.com/19615330/47118801-2839b800-d22e-11e8-80c8-91535d2dda9b.JPG)\r\n\r\n\r\nFeels similar to issue 259, but if resolved, why is this still happening?"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/comments/431425439","html_url":"https://github.com/Microsoft/vscode-python/issues/2930#issuecomment-431425439","issue_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2930","id":431425439,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTQyNTQzOQ==","user":{"login":"jsarneja","id":42511082,"node_id":"MDQ6VXNlcjQyNTExMDgy","avatar_url":"https://avatars2.githubusercontent.com/u/42511082?v=4","gravatar_id":"","url":"https://api.github.com/users/jsarneja","html_url":"https://github.com/jsarneja","followers_url":"https://api.github.com/users/jsarneja/followers","following_url":"https://api.github.com/users/jsarneja/following{/other_user}","gists_url":"https://api.github.com/users/jsarneja/gists{/gist_id}","starred_url":"https://api.github.com/users/jsarneja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsarneja/subscriptions","organizations_url":"https://api.github.com/users/jsarneja/orgs","repos_url":"https://api.github.com/users/jsarneja/repos","events_url":"https://api.github.com/users/jsarneja/events{/privacy}","received_events_url":"https://api.github.com/users/jsarneja/received_events","type":"User","site_admin":false},"created_at":"2018-10-19T16:44:06Z","updated_at":"2018-10-19T16:44:06Z","author_association":"NONE","body":"Hi @DonJayamanne - Thanks but I cannot see any suggestion to solve this problem in that thread. There was a talk of adding newline characters bu nothing after that"}}
{"actor":{"display_login":"jsarneja"}}