-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple print command not working #3272
Comments
From @vscodebot[bot] on November 8, 2018 9:43 (Experimental duplicate detection) |
How do you run the file from VS Code? What is the Python console you mention? |
From @roberti on November 8, 2018 15:32 It is really that simple as it sounds. But, lets go... How do you run the file from VS Code? (F5, configured to run in integrated terminal) |
From @roberti on November 8, 2018 15:34 Even other simple samples are not running on VS Code like this one.
The error: |
Any idea what to try? |
Mind sharing your settings.json? Also, did you config any environments on VSCode? How is it configured? Could you try typeof('hell') to see if it recognizes as NoneType? When you changed the run code key, did you also change the debug keys that use F5? (Continue/Start) EDIT: |
json file attached. no envs configured (new laptop installation, no work done here still now). just intalled some IDEs and run dummy samples to check the installation (standard procedure). used same package and files to test in all different tools typeof does not exist... but type('hell') works (actually it does not produce any output in a .py file inside vs code, but the line is executed with no exception raised). no keys changed. |
What's the path to the python executable? |
Same path as other IDEs... But... as you mentioned it now I made some new tests... Best regards! Waldemar |
After I installed 64bit anaconda recently and vs code from anaconda it works exactly like yours. I think it is a mistake from anaconda. |
I Agree. Probably this behaviour came from the anaconda installer. It is very time consuming - specially for people that uses python occasionaly. Is there a way to report it to anaconda? |
From @roberti on November 8, 2018 9:43
Issue Type: Bug
the code in file foo.py is:
The result is:
Exception has occurred: AttributeError
'NoneType' object has no attribute 'write'
File "C:\Projetos\Faculdade\POO\python\datas.py", line 4, in
print('hell')
It is working perfectly in python console. Does not work in Visual Studio Code.
VS Code version: Code 1.28.2 (7f3ce96ff4729c91352ae6def877e59c561f4850, 2018-10-17T00:23:51.859Z)
OS version: Windows_NT x64 10.0.17134
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (2)
Copied from original issue: microsoft/vscode#62771
The text was updated successfully, but these errors were encountered: