We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
VS Code version: Code 1.20.0 (c63189deaa8e620f650cc28792b8f5f3363f2c5b, 2018-02-07T17:09:39.780Z) Python Extension version: python|ms-|2018.1.0 Python Version: 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] OS and version: Windows_NT x64 10.0.16299
class pc(object): def __init__(self, pcname, model): self.pcname = pcname self.model = model def print_name(self): print('Workstation name is', self.pcname, 'model is', self.model)
>>> def print_name(self): File "<stdin>", line 1 def print_name(self): ^ IndentationError: unexpected indent
If I remove blank line or set space, code run without error
Output from Python output panel
Python
>>> class pc(object): ... def __init__(self, pcname, model): ... self.pcname = pcname ... self.model = model ... >>> def print_name(self): File "<stdin>", line 1 def print_name(self): ^ IndentationError: unexpected indent >>> print('Workstation name is', self.pcname, 'model is', self.model) File "<stdin>", line 1 print('Workstation name is', self.pcname, 'model is', self.model) ^ IndentationError: unexpected indent
Output from Console window (Help->Developer Tools menu)
Console window
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] Python Extension: Failed to get conda info from conda null t.log @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 console.ts:123 [Extension Host] (node:17332) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. t.log @ console.ts:123 t._logExtensionHostMessage @ extensionHost.ts:394 (anonymous) @ extensionHost.ts:211 emitTwo @ events.js:106 emit @ events.js:194 process.nextTick @ internal/child_process.js:766 _combinedTickCallback @ internal/process/next_tick.js:73 _tickCallback @ internal/process/next_tick.js:104
The text was updated successfully, but these errors were encountered:
Duplicate of #259
Sorry, something went wrong.
No branches or pull requests
Environment data
VS Code version: Code 1.20.0 (c63189deaa8e620f650cc28792b8f5f3363f2c5b, 2018-02-07T17:09:39.780Z)
Python Extension version: python|ms-|2018.1.0
Python Version: 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)]
OS and version: Windows_NT x64 10.0.16299
Actual behavior
Expected behavior
If I remove blank line or set space, code run without error
Steps to reproduce:
Logs
Output from
Python
output panelOutput from
Console window
(Help->Developer Tools menu)The text was updated successfully, but these errors were encountered: