Closed davidystephenson closed 4 years ago
You have two checkers configured for typescript
: eslint
and tsuquyomi
. On open both eslint
and tsuquyomi
return no error:
syntastic: 3.530516: typescript/eslint raw: [{'lnum': 0, 'bufnr': 0, 'col': 0, 'valid': 0, 'vcol': 0, 'nr': -1, 'module': '', 'type': '', 'pattern': '', 'text': ''}]
syntastic: 3.600261: typescript/tsuquyomi raw: []
On the later run eslint
still returns no error, but tsuquyomi
finds a problem:
syntastic: 67.664235: typescript/eslint raw: [{'lnum': 0, 'bufnr': 0, 'col': 0, 'valid': 0, 'vcol': 0, 'nr': -1, 'module': '', 'type': '', 'pattern': '', 'text': ''}]
syntastic: 67.720950: typescript/tsuquyomi raw: [{'lnum': 1, 'valid': 1, 'col': 7, 'availableCodeFix': 1, 'filename': '/home/david/Sync/phaser3-typescript-project-template/src/x.ts', 'bufnr': 1, 'code': 2322, 't
ype': 'E', 'text': '2322[QF available]: Type ''"a"'' is not assignable to type ''number''.'}]
Now, please note that tsuquyomi
is a third party checker not part of syntastic. Why does tsuquyomi
returns different results on file open and on subsequent runs is a question for its maintainer(s). Sorry about that.
I am using syntastic for TypeScript in vim using eslint and tsuquyomi. I expect to see all errors when I open the file. Instead, I only eslint errors. I can only see tsuquyomi errors when saving or manually running the checker.
In my
.vimrc
, I configure syntastic to check with tsuquyomi on open:If I create a file with errors, for example
x.ts
:When I open the file, no errors are shown. The output from
:mes
shows that tsuquyomi found no errors:If I then manually check with
:SyntasticCheck
, the error does show, and it is listed in:mes
:How can I make Syntastic show typescript errors when opening while ensuring I always see them as fast as possible?