You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
file object is not writing to disk using the write #153
The above code should both write to the file. also during debugging
Steps to reproduce:
Excute above
If the script is executed from the console, both methods works
Also the code works nomally in Visual Studio, and also Visual Studio Code for Mac.
Only win 8.1 seems to have a problem.
Logs
Output from Python output panel
Nothing
Output from ```Console window``` (Help->Developer Tools menu)
Nothing
Copied from original issue: DonJayamanne/pythonVSCode#1125
Activity
brettcannon commentedon Nov 14, 2017
Closing as invalid because the issue is you forgot to call
close()in your code sample.brettcannon commentedon Nov 14, 2017
BTW if you run with warnings turned on you will see a warning about the unclosed file.