Skip to content

Commit e4057f8

Browse files
committed
updated to versino 0.3.14
1 parent 11e6cf5 commit e4057f8

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ Your feedback is crucial in prioritizing the items and in determining whether we
9999

100100
## Change Log
101101

102+
### Version 0.3.14
103+
* Modifications to handle errors in linters when the linter isn't installed.
104+
102105
### Version 0.3.13
103106
* Fixed error message being displayed by linters and formatters
104107

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "python",
33
"displayName": "Python",
44
"description": "Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, snippets, and more.",
5-
"version": "0.3.13",
5+
"version": "0.3.14",
66
"publisher": "donjayamanne",
77
"author": {
88
"name": "Don Jayamanne",

src/client/formatters/baseFormatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export abstract class BaseFormatter {
5050
let stuffAfterFileName = fileName.substring(fileName.toUpperCase().lastIndexOf(expectedFileName) + expectedFileName.length);
5151

5252
// Ok if we have a space after the file name, this means we have some arguments defined and this isn't supported
53-
if (stuffAfterFileName.trim().indexOf(" ")) {
53+
if (stuffAfterFileName.trim().indexOf(" ") > 0) {
5454
customError = `Formatting failed, custom arguments in the 'python.formatting.${this.Id}Path' is not supported.\n` +
5555
`Custom arguments to the formatter can be defined in 'python.formatter.${this.Id}Args' setting of settings.json.\n` +
5656
"For further details, please see https://github.com/DonJayamanne/pythonVSCode/wiki/Troubleshooting-Linting#2-linting-with-xxx-failed-";

src/client/linters/baseLinter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export abstract class BaseLinter {
123123
let stuffAfterFileName = fileName.substring(fileName.toUpperCase().lastIndexOf(expectedFileName) + expectedFileName.length);
124124

125125
// Ok if we have a space after the file name, this means we have some arguments defined and this isn't supported
126-
if (stuffAfterFileName.trim().indexOf(" ")) {
126+
if (stuffAfterFileName.trim().indexOf(" ") > 0) {
127127
customError = `Linting failed, custom arguments in the 'python.linting.${this.Id}Path' is not supported.\n` +
128128
`Custom arguments to the linters can be defined in 'python.linting.${this.Id}Args' setting of settings.json.\n` +
129129
"For further details, please see https://github.com/DonJayamanne/pythonVSCode/wiki/Troubleshooting-Linting#2-linting-with-xxx-failed-";

0 commit comments

Comments
 (0)