Skip to content

Extension not working #18

Open
Open
@tobiasheldring

Description

@tobiasheldring

This extension has been broken for a while now for me both in .vue and .ts files.
Linting with webpack using ForkTsCheckerWebpackPlugin works fine as well as the vscode-tslint-extension for linting .ts files, both of course with the same tsconfig.json, tslint.json and versions of installed libraries

Output

[Info  - 2:20:10 PM] Linter is running.
[Info  - 2:20:11 PM] TSLint library loaded from: /Users/me/project/node_modules/tslint/lib/index.js
The 'no-internal-module' rule threw an error in '/Users/me/project/src/components/pages/MyPage/MyComponent.vue':
TypeError: Cannot read property 'kind' of undefined
    at NoInternalModuleWalker.checkModuleDeclaration (/Users/me/project/node_modules/tslint/lib/rules/noInternalModuleRule.js:66:23)
    at NoInternalModuleWalker.checkStatements (/Users/me/project/node_modules/tslint/lib/rules/noInternalModuleRule.js:60:22)
    at NoInternalModuleWalker.walk (/Users/me/project/node_modules/tslint/lib/rules/noInternalModuleRule.js:54:21)
    at Rule.AbstractRule.applyWithWalker (/Users/me/project/node_modules/tslint/lib/language/rule/abstractRule.js:31:16)
    at Rule.apply (/Users/me/project/node_modules/tslint/lib/rules/noInternalModuleRule.js:29:21)
    at Linter.applyRule (/Users/me/project/node_modules/tslint/lib/linter.js:197:29)
    at /Users/me/project/node_modules/tslint/lib/linter.js:139:85
    at Object.flatMap (/Users/me/project/node_modules/tslint/lib/utils.js:151:29)
    at Linter.getAllFailures (/Users/me/project/node_modules/tslint/lib/linter.js:139:32)
    at Linter.lint (/Users/me/project/node_modules/tslint/lib/linter.js:99:33)

UPDATE
After further trial and error the TypeError: Cannot read property 'kind' of undefined error happened for the no-internal-module & no-namespace rules. Disabling those in tslint.json made the error disappear. So now the tslint output is free from errors, although extension is still not working, tslint error highlighting is nowhere to be seen.

Output

[Info  - 2:50:07 PM] Linter is running.
[Info  - 2:50:08 PM] TSLint library loaded from: /Users/me/project/node_modules/tslint/lib/index.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions