pytype icon indicating copy to clipboard operation
pytype copied to clipboard

Any plans for Visual Studio Code extension?

Open smeznaric opened this issue 3 years ago • 3 comments

I'm currently using PyLance in Visual Studio Code but love how pytype gives much fewer false positives. I am wondering if you might consider creating a Visual Studio Code extension sometime down the line.

smeznaric avatar Apr 16 '21 15:04 smeznaric

it's unfortunately not feasible due to the way pytype works - it relies on the compiled bytecode, so it cannot infer types from incomplete or syntactically incorrect files, and it does not have the sort of fast incremental mode you would want for interactive IDE usage.

martindemello avatar Apr 16 '21 18:04 martindemello

though if vscode has a compiler function (i.e. hit "compile", run the compiler and get back a list of errors with source locations that can be used by the editor) we could probably work out a pytype front end that would take the correct arguments and give back error messages that vscode would accept. it would still be slow the first time it was called, because we would need to process imports recursively, but that analysis would be cached in the filesystem and not rerun the second time.

martindemello avatar Apr 16 '21 18:04 martindemello

@martindemello Hi, any updates for the VS code extension development? Do you have another repo for that yet?

Ao-senXiong avatar Oct 23 '23 14:10 Ao-senXiong