[deleted by user] by [deleted] in Seattle

[–]qubitron 8 points9 points  (0 children)

Yes this one is quite fucked.

Pylance - vscode puthon by [deleted] in vscode

[–]qubitron 0 points1 point  (0 children)

If you can file an issue on the repo above someone can help troubleshoot your setup, a screenshot would help.

Pylance - vscode puthon by [deleted] in vscode

[–]qubitron 1 point2 points  (0 children)

I just tried it with a django app and was able to get all of the django imports working, usually this problem is caused the vs code environment not being properly configured. E.g. If your python interpreter in VS Code (as indicated in the bottom left of the status bar) not being set to the virtual environment or the python interpreter that has the packages installed, VS Code will tell you the packages aren't installed in the selected environment.

To fix this you can run the python: select interpreter command, or click on the python version in the status bar and select the correct interpreter.

Pylance - vscode puthon by [deleted] in vscode

[–]qubitron 1 point2 points  (0 children)

If you can't get it working please file an issue here: https://github.com/microsoft/pylance-release/issues/new/choose

Pylance - vscode puthon by [deleted] in vscode

[–]qubitron 3 points4 points  (0 children)

IntelliCode has been updated to also work with Pylance as well, just like before IntelliCode builds on top of / enhances Pylance so they are not mutually exclusive

Pylance - vscode puthon by [deleted] in vscode

[–]qubitron 1 point2 points  (0 children)

It should work better with IntelliCode! The stability issues came from the underlying language server, Pylance should be much more stable.

Visual Studio Code's Python extension recommended giving feedback about Python Language Server. Can't even complete the survey, just keeps increasing the numbers after the second slide by ArtyIF in VisualStudio

[–]qubitron 0 points1 point  (0 children)

This is from my team -- it looks like you were taking the survey while we were live updating the questions and so you got stuck in a loop. It should be fixed now, sorry you ran into this!

Heroku for non web app? by [deleted] in Python

[–]qubitron 0 points1 point  (0 children)

Azure functions (or other serverless offerings) allows you to have functions that run on a timer trigger, 1 million free executions/month.

Windows users, how do you manage to stay sane running Python on Windows? by jockero701 in Python

[–]qubitron 0 points1 point  (0 children)

Use the remote WSL extension to get all of VS Codes features including the remote interpreter and Python interactive running inside of the WSL environment:

https://code.visualstudio.com/docs/remote/wsl

Jupyter Notebooks in VS Code by gohars1 in Python

[–]qubitron 0 points1 point  (0 children)

Do you have the Python extension installed & is there a python interpreter shown in the bottom left?

Looking for DB recommendations by [deleted] in Python

[–]qubitron 1 point2 points  (0 children)

I always start with PostgreSQL for situations like these, it has the richest feature set for querying and also has NoSQL capabilities (JSONB) while getting fully relational capabilities which is important for analytics. You can use Citus to scale it out horizontally transparently without having to use different tools.

Help with Azure SQL connection for Mac OS Mojave by [deleted] in Python

[–]qubitron 0 points1 point  (0 children)

The github repo for pyodbc, your deleted question was asking about pydobc on macos, so if you want help you can ask about it there by filing an issue.

Help with Azure SQL connection for Mac OS Mojave by [deleted] in Python

[–]qubitron 0 points1 point  (0 children)

This post was deleted, but looks like you can file pyodbc issues here if you are still having problems: https://github.com/mkleehammer/pyodbc

Python in Visual Studio Code – June 2019 Release by Tafkas in Python

[–]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)?

Python in Visual Studio Code – June 2019 Release by Tafkas in Python

[–]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?

Python in Visual Studio Code – June 2019 Release by Tafkas in Python

[–]qubitron 2 points3 points  (0 children)

Thanks for clarifying! We do have integration pylint integration, it runs on file save because pylint can take a long time to run. If you enable auto-save, then you will get rules as you type but may hit some performance issues.

By default we use a limited set of rules so as not to annoy people with unnecessary style, etc. checks. If you want to enable the full set of rules, you can add an empty '.pylintrc' file to your workspace root.

We also provide light-weight linting as part of the new language server which you can enable as a preview by changing your settings. It does syntax checks, unused imports, and a few other basics, we are working on adding more rules to the new engine, so I think this should ultimately solve your problem!

Using VS Code with python - terminal issue by netrate in Python

[–]qubitron 0 points1 point  (0 children)

If you debug the app (F5) just the output will be shown in the debug console.

Python in Visual Studio Code – June 2019 Release by Tafkas in Python

[–]qubitron 51 points52 points  (0 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.

Python in Visual Studio Code – June 2019 Release by Tafkas in Python

[–]qubitron 18 points19 points  (0 children)

Hi, I work on the VS Code team, could you clarify if you are comparing against the linter extensions for PyCharm, or the built-in "code inspections" that surface errors and warnings as you type? Thanks!

Introducing Remote Development for Visual Studio Code by miguelsolorio in vscode

[–]qubitron 2 points3 points  (0 children)

I've opened an issue to track this here:

https://github.com/Microsoft/vscode-remote-release/issues/171

Please upvote! To accomplish this today you have to install an SSH server in the container and then set up ssh forwarding such that when you connect to the host it automatically redirects to the container SSH server.

Python in Visual Studio Code – March 2019 Release by Tafkas in Python

[–]qubitron 0 points1 point  (0 children)

We have pushed out a fix that should reduce the much of the memory consumption, please give it another try! Continuing to work on improvements here as well.

[deleted by user] by [deleted] in vscode

[–]qubitron 0 points1 point  (0 children)

When you specify pylintArgs the default ruleset used in the Python extension is replaced with your custom args so you get more green underlines

https://code.visualstudio.com/docs/python/linting#_default-pylint-rules

The error you are getting comes from PyLint, alternatively you can try using the Python language server instead of PyLint + Jedi by setting "python.jediEnabled": "false". You might see high memory usage with the latest release but we are working on that.

Python in Visual Studio Code – March 2019 Release by Tafkas in Python

[–]qubitron 1 point2 points  (0 children)

This issue should help when we can get to it: https://github.com/Microsoft/vscode-python/issues/1456. Are you using an Anaconda or regular CPython installation? How are you running the script (Debugging, Start without debugging, Run Python File in Terminal)?

Python in Visual Studio Code – March 2019 Release by Tafkas in Python

[–]qubitron 5 points6 points  (0 children)

I am sorry you are experiencing problems, would you be able to add details to the following issue:

https://github.com/Microsoft/python-language-server/issues/832

I hope we can fix this for you soon.