No linting errors displayed
See original GitHub issueThe plugin doesn’t seem to show any errors for me while the deprecated one is working just fine (https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin). Here’s the terse log:
Info 0 [15:32:33.57] Host information vscode
Info 1 [15:32:33.63] Search path: e:/Projects/Test/Client/common/src/services
Info 2 [15:32:33.65] Config file name: e:/Projects/Test/Client/tsconfig.json
Info 3 [15:32:33.937] Loading global plugin typescript-tslint-plugin
Info 4 [15:32:33.937] Enabling plugin typescript-tslint-plugin from candidate paths: e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js/../../..,C:\Users\Konstantin Vasilev\.vscode\extensions\ms-vscode.vscode-typescript-tslint-plugin-1.2.2
Info 5 [15:32:33.938] Loading typescript-tslint-plugin from e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js/../../.. (resolved to e:/Projects/Test/Client/node_modules/node_modules)
Info 6 [15:32:33.981] Failed to load module 'typescript-tslint-plugin': Error: Could not resolve JS module 'typescript-tslint-plugin' starting at 'e:/Projects/Test/Client/node_modules/node_modules'. Looked in: e:/Projects/Test/Client/node_modules/typescript-tslint-plugin/package.json, e:/Projects/Test/Client/node_modules/typescript-tslint-plugin.js, e:/Projects/Test/Client/node_modules/typescript-tslint-plugin.jsx, e:/Projects/Test/Client/node_modules/typescript-tslint-plugin/index.js, e:/Projects/Test/Client/node_modules/typescript-tslint-plugin/index.jsx, e:/Projects/Test/node_modules/typescript-tslint-plugin/package.json, e:/Projects/Test/node_modules/typescript-tslint-plugin.js, e:/Projects/Test/node_modules/typescript-tslint-plugin.jsx, e:/Projects/Test/node_modules/typescript-tslint-plugin/index.js, e:/Projects/Test/node_modules/typescript-tslint-plugin/index.jsx, e:/Projects/node_modules/typescript-tslint-plugin/package.json, e:/Projects/node_modules/typescript-tslint-plugin.js, e:/Projects/node_modules/typescript-tslint-plugin.jsx, e:/Projects/node_modules/typescript-tslint-plugin/index.js, e:/Projects/node_modules/typescript-tslint-plugin/index.jsx, e:/node_modules/typescript-tslint-plugin/package.json, e:/node_modules/typescript-tslint-plugin.js, e:/node_modules/typescript-tslint-plugin.jsx, e:/node_modules/typescript-tslint-plugin/index.js, e:/node_modules/typescript-tslint-plugin/index.jsx
at Object.resolveJavaScriptModule (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:5020:19)
at Object.sys.require (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:84178:45)
at Function.Project.resolveModule (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:78972:35)
at ConfiguredProject.enablePlugin (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:79632:50)
at _loop_10 (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:79615:32)
at ConfiguredProject.enablePlugins (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:79620:25)
at new ConfiguredProject (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:79583:23)
at ProjectService.createAndAddConfiguredProject (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:80560:31)
at ProjectService.openConfigFile (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:80602:36)
at ProjectService.openOrUpdateConfiguredProjectForFile (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:80372:35)
at ProjectService.openClientFileWithNormalizedPath (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:80881:32)
at IOSession.Session.openClientFile (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:82188:46)
at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:81419:31)
at e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:82799:88
at IOSession.Session.executeWithRequestId (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:82790:28)
at IOSession.Session.executeCommand (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:82799:33)
at IOSession.Session.onMessage (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:82819:35)
at Interface.<anonymous> (e:\Projects\Test\Client\node_modules\typescript\lib\tsserver.js:83945:27)
at Interface.emit (events.js:182:13)
at Interface._onLine (readline.js:290:10)
at Interface._normalWrite (readline.js:433:12)
at Socket.ondata (readline.js:149:10)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
Info 7 [15:32:33.981] Loading typescript-tslint-plugin from C:\Users\Konstantin Vasilev\.vscode\extensions\ms-vscode.vscode-typescript-tslint-plugin-1.2.2 (resolved to C:/Users/Konstantin Vasilev/.vscode/extensions/ms-vscode.vscode-typescript-tslint-plugin-1.2.2/node_modules)
Info 8 [15:32:34.79] [typescript-tslint-plugin] "Create"
Info 9 [15:32:34.79] [typescript-tslint-plugin] "ConfigurationManager: Found configured project: e:/Projects/Test/Client/tsconfig.json"
Info 10 [15:32:34.80] Plugin activation failed: TypeError: project.getCurrentDirectory is not a function
Info 11 [15:33:8.563] Add recursive watcher for: e:/Projects/Test/Client
Info 12 [15:33:8.777] Add type root watcher for: e:/Projects/Test/Client/node_modules/@types
Info 13 [15:33:8.782] Opened configuration file e:/Projects/Test/Client/tsconfig.json
Info 14 [15:33:8.952] Host configuration update for file e:/Projects/Test/Client/common/src/services/external-auth.service.ts
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Linting errors are not shown in VSCode, though simple errors do
Linting errors are not shown, while "simple" syntax errors are shown. In the GIF below, you can see that the undefined variable message1...
Read more >eslint is running but not showing any lint errors/warnings
So eslint appears to be loading and running. However, there is a .eslintrc file in my project root that has rules and vscode...
Read more >ESLint not working in VSCode? Help build a troubleshooting ...
Open the command palette by pressing Ctrl / Cmd + Shift + P and select 'ESLint: Show Output Channel'. If ESLint throws any...
Read more >Common React TypeScript ESLint / Lint Errors & Warning ...
Not specifying attributes in certain components can produce lint error messages. For example, a button needs the button type and lists in React...
Read more >Command Line Interface - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can we have some kind of warning about that on extension main page saying that if you are using typescript ❤️.0 switch to
TSLint (deprecated)
extension? Thanks.@ko-vasilev Ah got it, that makes sense 👌!