Re:Pyre: Fast Type Checking for Python
by phooji on Friday May 11, 2018 @12:39PM
(#17048758)
You can run Pyre without using watchman if your editor-of-choice supports LSP -- the two modes are basically complementary. You can also run `pyre check` in non-incremental mode, though that may be slower depending on the size of your codebase.
[ Parent
| on HN ]
So you're saying the LSP portion checks the file(s) you're currently editing, whereas the watchman (also incremental) check or the non-incremental check do the whole project?
Edit: for the active file / LSP part, I mean it shows errors mainly for the active file.
Re:Pyre: Fast Type Checking for Python
by sinancepel on Friday May 11, 2018 @12:46PM
(#17048822)
Exactly - the LSP portion of pyre works for files you have open in an editor, but might miss changes due to a rebase or files you edit on the terminal. The watchman integration is there to make sure that pyre's aware of changes outside your editor.
Edit: pyre will show type errors for all files in your repository, not just the ones you have open.