Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:18
    huguesv milestoned #5679
  • 17:17
    huguesv assigned #5679
  • 16:51
    bschnurr unlabeled #5740
  • 16:51
    bschnurr closed #5740
  • 16:51
    bschnurr commented #5740
  • 16:27
    v-asdhin labeled #5740
  • 16:27
    v-asdhin opened #5740
  • 09:21
    xiaofeng0123 commented #5734
  • 09:20
    xiaofeng0123 commented #5734
  • 03:11
    int19h assigned #5738
  • 01:59
    scott-xu labeled #5739
  • 01:59
    scott-xu opened #5739
  • 01:55
    ay65535 starred microsoft/PTVS
  • Sep 17 23:54
    huguesv labeled #5738
  • Sep 17 23:54
    huguesv labeled #5738
  • Sep 17 23:54
    huguesv opened #5738
  • Sep 17 23:25
    huguesv commented #5737
  • Sep 17 23:18
    huguesv labeled #5737
  • Sep 17 23:18
    huguesv opened #5737
  • Sep 17 23:18
    huguesv labeled #5737
Thomas Thelen
@ThomasThelen
Regarding support for Mac,
Every instillation guide that I have seen says to install python support via the VS Installer. The mac installer however, does not support the option for this. Is this extension supported for Mac? I haven't any indication that is is.
Steve Dower
@zooba
@illera88 Currently only Python 3.6 IIRC, though I'm petitioning the ptvsd team to expand that. Feel free to post issues on https://github.com/Microsoft/ptvsd requesting it :)
@ThomasThelen It is not. VS for Mac is a totally different product and we would have to reimplement most of the Python support to make it work there. Currently we are focused on Visual Studio 2017 and VS Code - the latter works fine on Mac, so we suggest trying that out.
Benjamin
@BenjaVR
I was reading the issues about embedding Jupyter Notebooks in Visual Studio itself, although I don't understand why this will (probably?) not happen. How I would see this: when opening a .ipynb file, start a NB server at project root (with an interpreter of choice), and render the .ipynb file. What's the catch here?
I you guys would like to have that, I want to help here (will need some guidance though!)
Steve Dower
@zooba
@BenjaVR (Sorry for the slow reply.) The catch is that we don't work on a browser, and Notebooks basically need to run in a browser. The best option we have available in Visual Studio is basically IE9, and even that is going away (the recommendation is just to open the user's default browser). So about the only thing that needs implementing here is the command to start Jupyter running, and if you've installed Anaconda then you already have this command in your Start menu. You can also easily add it to VS under Tools, External Tools.
Tomer Chachamu
@r3m0t
Is the legacy debugger ever going away? Will the new debugger support mixed mode? & will PTVS use ILanguageClient for its features?
Hugues Valois
@huguesv
@r3m0t There are currently 3 debuggers: a) old ptvsd (legacy), b) new ptvsd - based on pydevd, and c) mixed-mode
old ptvsd will go away once new ptvsd has feature parity
mixed-mode debugger is completely different implementation, is unaffected and will stay
ILanguageClient: we're still focused on improving the server part for now
Tomer Chachamu
@r3m0t
Thanks!
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?