microsoft / vscode-typescript-tslint-plugin

VS Code extension that provides TSLint support using the typescript-tslint-plugin
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin
MIT License
188 stars 34 forks source link

"Problems loading reference '.../ms-vscode.vscode-typescript-tslint-plugin-0.0.4/schemas/tsconfig.schema.json': ... #22

Closed DanTup closed 5 years ago

DanTup commented 5 years ago

I've just started seeing this in my problems list:

screen shot 2018-11-14 at 5 50 36 pm

For some reason I can't right-click to copy, but the tooltip shows the full text:

screen shot 2018-11-14 at 5 51 29 pm

When I click on it, it opens my tsconfig.json file which looks like this:

{
    "compilerOptions": {
        "module": "commonjs",
        "target": "es6",
        "outDir": "out",
        "lib": [
            "es6"
        ],
        "sourceMap": true,
        "rootDir": ".",
        "noImplicitAny": true,
        "noImplicitThis": true,
        "alwaysStrict": true,
        "strictFunctionTypes": true,
        "strictPropertyInitialization": false,
        "strictNullChecks": false
    },
    "exclude": [
        "node_modules",
        ".vscode-test"
    ]
}

The file shows a green squiggle at offset 0 (note: the offset in the error message is way past the end of this file):

screen shot 2018-11-14 at 5 52 44 pm

If I open the file mentioned in the message there are no obvious issues - here's what 679 characters selected from the start look like:

screen shot 2018-11-14 at 5 54 28 pm
DanTup commented 5 years ago

(oh, BTW the warning seems to disappear from the errors list if I close by tsconfig.json file)

DanTup commented 5 years ago

(no, that's wrong - they came back when I started closing other files - now I have 0 open files but that warning still shows)

mjbvz commented 5 years ago

Trailing comma. Doesn't break the functionality but causes this warning to be reported

mjbvz commented 5 years ago

Fixed in 0.0.5 by https://github.com/Microsoft/vscode-typescript-tslint-plugin/commit/3dac840acbfc05933d12c5f588cee00a80e7832a