4 ms·
Make sure that your VSCode is set up correctly - I'm not experiencing any of the problems that you're describing.
by s1t5 6y ago
Make sure that your VSCode is set up correctly - I'm not experiencing any of the problems that you're describing.
- _bxg1 6y agoI'm using the official Python extension, made by Microsoft itself.
- Glavnokoman 6y agoThat's the thing. VSCode itself is quite good but all MS made extensions I tried are just garbage.
- _bxg1 6y agoThe TypeScript integration is incredible. It's as good as a paid IDE. Python is the only other first-party extension I've used, though.
- eddyg 6y agoDid you add Microsoft's Pyright[0] extension as well? It works hand-in-hand with the Python extension and makes VS Code a fantastic Python editor IMO. You may want to set pyright.disableLanguageServices in settings since there is some overlap in the Pyright and Python extensions that can result in duplicate results. (I'm not sure if you lose any Pyright features when you do this though...) [0] https://marketplace.visualstudio.com/items?itemName=ms-pyright.pyright https://marketplace.visualstudio.com/items?itemName=ms-pyrig...
- _bxg1 6y agoNo, I didn't know about that one; the base one has MyPy and Pylint integration so I assumed it was the best version of each that they planned on implementing. I wonder why they would break out the "good version" into a separate extension.
- eddyg 6y agoI've always found pylint to be pretty useless... see for example https://lukeplant.me.uk/blog/posts/pylint-false-positives/ https://lukeplant.me.uk/blog/posts/pylint-false-positives/ I always pip install flake8 in my venvs and the standard Python extension can also use that just fine: "python.linting.pylintEnabled": false, "python.linting.flake8Enabled": true,
- _bxg1 6y agoIt's what we use at my workplace; not my call to make
- _bxg1 6y agoJust tried Pyright and it's incredible. Wow; why in the world don't they include this functionality in the regular extension? Thanks so much!
- dragonwriter 6y agoI don't have the exact problems, but I find similar but different problem with both MPLS and Jedi in VSCode, plus VSCode recognizes virtualenvs and tries to use dev support tools like black or mypy from the project venv, but if it's not there it does a user install, which it then still fails to locate. Still, using VSCode for Python is better than using a different editor just for Python, but it's frustrating that so many basic things are almost, but not quite, fully functional.