You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
The 'align' rule threw an error in '/path/to/my/project/src/server/test.ts':
TypeError: Cannot read property 'length' of undefined
at AlignWalker.checkAlignment (/path/to/my/project/node_modules/tslint/lib/rules/alignRule.js:149:19)
at cb (/path/to/my/project/node_modules/tslint/lib/rules/alignRule.js:118:35)
at visitNodes (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:26836:30)
at Object.forEachChild (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:26975:24)
at cb (/path/to/my/project/node_modules/tslint/lib/rules/alignRule.js:144:23)
at visitNode (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:26827:24)
at Object.forEachChild (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:26955:21)
at cb (/path/to/my/project/node_modules/tslint/lib/rules/alignRule.js:144:23)
at visitNodes (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:26836:30)
at Object.forEachChild (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:27074:24)
at cb (/path/to/my/project/node_modules/tslint/lib/rules/alignRule.js:144:23)
at AlignWalker.walk (/path/to/my/project/node_modules/tslint/lib/rules/alignRule.js:146:16)
at Rule.AbstractRule.applyWithWalker (/path/to/my/project/node_modules/tslint/lib/language/rule/abstractRule.js:31:16)
at Rule.apply (/path/to/my/project/node_modules/tslint/lib/rules/alignRule.js:34:21)
at Linter.applyRule (/path/to/my/project/node_modules/tslint/lib/linter.js:214:29)
at /path/to/my/project/node_modules/tslint/lib/linter.js:155:85
at Object.flatMap (/path/to/my/project/node_modules/tslint/lib/utils.js:160:29)
at Linter.getAllFailures (/path/to/my/project/node_modules/tslint/lib/linter.js:155:32)
at Linter.lint (/path/to/my/project/node_modules/tslint/lib/linter.js:110:33)
at TsLintRunner.doRun (/home/ocket8888/.vscode/extensions/ms-vscode.vscode-typescript-tslint-plugin-1.2.3/node_modules/typescript-tslint-plugin/out/runner/index.js:227:24)
at TsLintRunner.runTsLint (/home/ocket8888/.vscode/extensions/ms-vscode.vscode-typescript-tslint-plugin-1.2.3/node_modules/typescript-tslint-plugin/out/runner/index.js:80:21)
at TSLintPlugin.getSemanticDiagnostics (/home/ocket8888/.vscode/extensions/ms-vscode.vscode-typescript-tslint-plugin-1.2.3/node_modules/typescript-tslint-plugin/out/plugin.js:108:38)
at Proxy.intercept.getSemanticDiagnostics (/home/ocket8888/.vscode/extensions/ms-vscode.vscode-typescript-tslint-plugin-1.2.3/node_modules/typescript-tslint-plugin/out/plugin.js:73:25)
at IOSession.Session.semanticCheck (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:153659:52)
at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:153715:31
at MultistepOperation.executeAction (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:152692:25)
at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:152673:100
at IOSession.Session.executeWithRequestId (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:154944:28)
at Object.executeWithRequestId (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:153428:87)
at Immediate._onImmediate (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:152673:41)
at processImmediate (internal/timers.js:439:21)
Expected behavior
The rule should pass or fail, not throw.
The text was updated successfully, but these errors were encountered:
Bug Report
Reproduction using TSLint Playground
Wasn't able to reproduce error - different version in use? See for yourself
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Rule throws an error:
Expected behavior
The rule should pass or fail, not throw.
The text was updated successfully, but these errors were encountered: