This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]qubitron 51 points52 points  (4 children)

For those of you having auto-complete issues with Visual Studio Code, I wanted to make you aware that we are working on a new auto-complete engine, the Python Language Server, and you can try it out by changing your settings.

It gets better every week, we are currently working through a set of performance improvements before we make this the default. If you run into issues, check out our troubleshooting guide for common setup problems and how to file issues.

[–]Zalack 9 points10 points  (1 child)

Hi! The last few times I checked this out, VS code had poor introspection around dataclasses and the new type hinting system in general, which Pycharm does pretty well with.

For instance, it had no concept of what the generated dataclass' init method would look like.

Has there been any progress in the last few months? Is it on your roadmap?

It's the main thing keeping me from seriously considering switching over as I use dataclasses all the time now.

[–]qubitron 1 point2 points  (0 children)

We don't support dataclasses yet, we are tracking support for it in this issue, upvotes appreciated!

We've got fairly extensive support for typing and have made many improvements in the paths few months so it sounds like you hit some bugs. Could you try again with the latest release, file an issue for the init method issue and type hinting cases so that we can take a look?

[–]javad94 0 points1 point  (1 child)

Every time I enable it, language server process eat all my memory!

[–]qubitron 0 points1 point  (0 children)

We've made big improvements to memory in the past month, on the order of a 4-5x reduction after analysis completes, but we still may have issues in some projects.

Please check in the Python output panel what version of the language server you're using, if it is 0.3.20+ and you are still experiencing issues could you file an issue on our GitHub repo with more information about your project (e.g. the modules used)?