Skip to content

If formatter not installed we do not always offer installation #524

Closed

Description

Environment data

VS Code version: 1.19
Python Extension version: 0.9
Python Version: 3.6
OS and version: Windows 10

autopep8 is missing and I get

Formatting with autopep8 failed.
Error: C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python.exe: 
No module named autopep8

Actual error does contain No module named but in

const isModuleNoInstalledError = errorObj.code === 1 && error.message.indexOf('No module named') >= 0;

code is null

Also, output to the status bar is truncated and does not look like an error message

image

Also, it looks like in

            const isInstalled = await installer.isInstalled(this.product, resource);
            if (isInstalled) {

should be !isInstalled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

area-formattingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions