by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 09 17:19
    huguesv closed #6166
  • Jul 09 17:18
    huguesv closed #6158
  • Jul 08 17:02
    huguesv commented #4955
  • Jul 08 06:28
    ete1729 commented #4955
  • Jul 08 03:59
    gauravssnl starred microsoft/PTVS
  • Jul 07 21:54
    huguesv closed #6170
  • Jul 07 21:02
    sonarcloud[bot] commented #6170
  • Jul 07 20:59
    huguesv edited #6170
  • Jul 07 20:58
    huguesv opened #6170
  • Jul 06 20:11
    huguesv labeled #6169
  • Jul 06 20:11
    huguesv closed #6169
  • Jul 06 20:10
    huguesv commented #6169
  • Jul 06 20:10
    huguesv labeled #6047
  • Jul 06 20:10
    huguesv labeled #6100
  • Jul 06 20:10
    huguesv closed #6100
  • Jul 06 20:10
    huguesv commented #6100
  • Jul 06 20:10
    huguesv closed #6047
  • Jul 06 20:10
    huguesv commented #6047
  • Jul 06 20:08
    huguesv labeled #6168
  • Jul 06 20:08
    huguesv closed #6168
kiddick
@kiddick
Hi here!
I've manually downloaded linux64 build from https://pvsc.blob.core.windows.net/python-language-server/Python-Language-Server-linux-x64.0.1.18204.3.nupkg and now there is Microsoft.Python.LanguageServer executable. How could I run this to verify that this is ok for my platform? Do I need any additional dependencies or specific building steps?
I've tried just ./Microsoft.Python.LanguageServer but there is no any output
Steve Dower
@zooba
@kiddick What you're doing is unsupported, so no, it's not okay for your platform :) Follow https://aka.ms/pythonblog to see when we announce that it's ready for use outside of VS Code
Shivraj1947
@Shivraj1947
Hi,
I have downloaded visual studio community version and trying use python on it. I tried both version of python 2.7 and 3.6 but there is problem refreshing db. It stuck on analyzing numpy.. and its intellescence stuck on numpy only. Please guide me.
Hugues Valois
@huguesv
@Shivraj1947 there are some known "stuck" issues with intellisense db in 15.8. Please enable "Use new style IntelliSense" in tools/options/python/experimental , which doesn't use a db. FYI the db-based IntelliSense has been removed in dev16.
Tomer Chachamu
@r3m0t
Will there be a 15.10 etc? I am worried by some issues already having dev16 as a milestone
Shivraj1947
@Shivraj1947
My issue has been resolved and thank you so much Hugues Volois
thank u so much for ur help
David Jackson
@davidwallacejackson
I'd like to write a PR for the language server, and I have some general questions about the architecture. Is this a good place to ask them?
David Jackson
@davidwallacejackson
Since it seems like the channel's maybe not super active, I'm just gonna ask and if anybody drops by and wants to answer me, cool ;-)
It seems like the analysis engine thinks in terms of nested scopes, and that a Python class is one type of scope. It also appears that methods are function scopes with the class as a parent. So my questions are:
  1. Is that basically right?
  2. If so, how do instances of those classes relate to the class scope, and how do they retrieve those instance methods to use, say, as completions?
David Jackson
@davidwallacejackson

for context, I'm trying to resolve the issue I submitted here: Microsoft/python-language-server#120

and if I don't happen to catch anybody: thanks for your great work! Really happy to have these tools in VSCode.

Hugues Valois
@huguesv
@r3m0t all development is now for dev16. Only top critical issues, approved by VS, will be fixed in dev15.
Hugues Valois
@huguesv
@davidwallacejackson I would recommend asking in the issue in the language server repo. As you noticed, we don't check this chat very often and with the split of language server to its own repo, the devs that can answer your questions will likely only check over there.
That is, for language server questions.
Rahul Verma
@rv404674
hi, @davidwallacejackson , i am a newcomer and i am trying to build PTVS in ubuntu. Can you tell me, is there a way to download visual studio 2017 preview for ubuntu.
Hugues Valois
@huguesv
@rv404674 VS 2017 is only available for Windows. For Ubuntu, there's Visual Studio Code (https://code.visualstudio.com/) which has its own Python extension (https://github.com/Microsoft/vscode-python)
Twiddly
@twiddli
Hello, ever since updating to VS 15.9, I now always get this window when hitting a BP.
billede.png
Using Python 3.6 virtualenv, I'm not using the legacy debugger if that says something.
Twiddly
@twiddli
I set EnableNativeCodeDebugging to True in the project file, added the symbol files for my python interpreter in Options and it now seems to work again.
Twiddly
@twiddli

Okay so the fix above wasn't really a solution since it worsened the debugging perfomance by a lot. I've isolated the issue to this line of code:

gevent.monkey.patch_all(thread=False, socket=False)

using gevent==1.3.7

The legacy debugger doesn't have this issue by the way.
Dave Hirschfeld
@dhirschfeld
It seems ptvsd isn't available via conda?
Would anyone/microsoft have a problem with me putting the package up on conda-forge?
conda-forge packages just repackage the released pip package
Tomer Chachamu
@r3m0t
Hi I've set Experimental=true and the package id correctly, but VS2017 is still loading the pkgdef and some assemblies from built in PTVS, how to debug/fix?
Dave Hirschfeld
@dhirschfeld
staged-recipes PR is over @ conda-forge/staged-recipes#7112
Hugues Valois
@huguesv
Thanks Dave. I pointed @int19h and @karthiknadig to your PR.
Hugues Valois
@huguesv
@r3m0t It sounds like you're building PTVS from sources,? If that's the case, you should uninstall the Python workload.
pareekrahul
@pareekrahul
i am not able to download python extension for visual studio on mac
any one here to help me
Tomer Chachamu
@r3m0t
Thanks @huguesv
David McWhinnie
@dmcwhinnie
Any idea when the next PTVS version will be released? There are several committed fixed I am interested in getting with the next release.
Hugues Valois
@huguesv
@dmcwhinnie PTVS is part of VS, and we have a schedule for VS but it hasn't been announced publicly yet. We've been adding new stuff in the VS 2019 Preview (https://visualstudio.microsoft.com/vs/preview/) which can be installed side-by-side with VS 2017. VS 2019 Preview 1 released Dec 4, based on PTVS sources from end of October. Anything after that up till this week will be in Preview 2.
cszabo2
@cszabo2
I am interested in upgrading my PTVS for vs. 2017 from 15.6, but I want to do this without touching the VS installer. I have very strict requirements about what versions of the CRuntime I can use and if I start the installer, it will go ahead and start upgrading everything to the latest stuff, whether I want it or not. Is there a relatively easy way to do this? When I developed my own VS2017 extension, a *.vsix output was generated and I could click on that and got the extension installed wherever I wanted. Is there a similar solution for PTVS?
Hugues Valois
@huguesv
@cszabo2 technically, there are vsix, but they are only distributed via the installer. They are cached in C:\Users\All Users\Microsoft\VisualStudio\Packages
You could try to build from sources using the 15.9 branch in our repo. But there's no guarantee that it would work on top of 15.6, as sometimes assemblies that we depend on have changed APIs and broke compatibility even in minor releases.
cszabo2
@cszabo2
@huguesv Thanks, shall give it a try and see what happens.
Tomer Chachamu
@r3m0t
Hi when do language client improvements reach VS2017?2019? Master?
Tomer Chachamu
@r3m0t
Language server I mean
G. Richard Bellamy
@rbellamy
How are folks here getting timing and profiling line magic to work in their scripts?
Marius Räsener
@m.raesener_gitlab
hey everybody, I try to run tox tests from vscode UI ... so on console I can just call "tox" without arguments for the default run, but I can't find a way to have this working with launch.json - ideally of course with debugging support, but just running them would be nice too
also, test discovery fails
important, I'm inside a devcontainer
Hugues Valois
@huguesv
@m.raesener_gitlab I would recommend you file an issue over at https://github.com/Microsoft/vscode-python/issues for VS Code Python extension questions.
Tomer Chachamu
@r3m0t
Does the pylance announcement affect the PTVS roadmap?
Hugues Valois
@huguesv
We'll resume the language server integration work soon in PTVS, but this time, using Pylance instead of Microsoft Python Language Server. Some of the integration work that was done last year for MPLS is compatible with Pylance, but there will be new issues and differences to deal with.
Tomer Chachamu
@r3m0t
thanks @huguesv
Sakesun
@sakesun
Isn't pylance closed-source proprietary ?
Hugues Valois
@huguesv

Pylance will be added to Visual Studio, which is already a mix of open and closed source components.
PTVS will use Pylance as an external dependency, similar to how it already depends on the VS editor, profiler, debugger, etc.
The PTVS license will not change.

FYI: Pylance, vscode-python extension and PTVS are all owned by the same team.