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
Extension version (available under the Extensions sidebar): Python (Microsoft) 2018.4.0 (2 May 2018)
OS and version: Windows 10 1803
Python version (& distribution if applicable, e.g. Anaconda): 3.6.4
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Relevant/affected Python packages and their versions: N/A
Actual behavior
Incorrect indentation beneath if statement.
`mystery_int = "catcatcatcatcat"
count = 0
for i in range(1, len(mystery_int)):
if mystery_string[i-1:i+2] == 'bob':
count += 1
print(count)`
Expected behavior
When I jot down the same code in some other env like pycharm or say python scripter it works fine
`mystery_int = "catcatcatcatcat"
count = 0
for i in range(1,len(mystery_int)):
if mystery_int[i-1:i+2] == 'cat':
count += 1
print(count)
`
Steps to reproduce:
Logs
Extension - output log 2:
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1963,0,error,E0001:unexpected EOF while parsing (<string>, line 1963)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1961,0,error,E0001:unexpected EOF while parsing (<string>, line 1961)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1962,0,error,E0001:unexpected EOF while parsing (<string>, line 1962)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1962,0,error,E0001:invalid syntax (<string>, line 1962)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1962,0,error,E0001:invalid syntax (<string>, line 1962)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1962,0,error,E0001:invalid syntax (<string>, line 1962)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1962,0,error,E0001:invalid syntax (<string>, line 1962)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1962,0,error,E0001:invalid syntax (<string>, line 1962)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1964,0,error,E0001:unexpected EOF while parsing (<string>, line 1964)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1967,0,error,E0001:unexpected EOF while parsing (<string>, line 1967)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1967,0,error,E0001:unexpected EOF while parsing (<string>, line 1967)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1967,0,error,E0001:unexpected EOF while parsing (<string>, line 1967)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1967,0,error,E0001:unexpected EOF while parsing (<string>, line 1967)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1962,0,error,E0001:invalid syntax (<string>, line 1962)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1967,0,error,E0001:unexpected EOF while parsing (<string>, line 1967)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1968,0,error,E0001:unexpected EOF while parsing (<string>, line 1968)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1969,0,error,E0001:unexpected EOF while parsing (<string>, line 1969)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1964,0,error,E0001:expected an indented block (<string>, line 1964)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1964,0,error,E0001:expected an indented block (<string>, line 1964)
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module test
1964,0,error,E0001:expected an indented block (<string>, line 1964)
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
E0001:expected an indented block (<string>, line 1964)
Environment data
Actual behavior
Incorrect indentation beneath if statement.
`mystery_int = "catcatcatcatcat"
count = 0
for i in range(1, len(mystery_int)):
print(count)`
Expected behavior
When I jot down the same code in some other env like pycharm or say python scripter it works fine
`mystery_int = "catcatcatcatcat"
count = 0
for i in range(1,len(mystery_int)):
print(count)
`
Steps to reproduce:
Logs
Extension - output log 2:
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)VScodeindentation.zip
The text was updated successfully, but these errors were encountered: