profile
viewpoint
Luciana Abud luabud @microsoft Vancouver, BC Program Manager @microsoft working on vscode-python

luabud/vscode-python 9

Python extension for Visual Studio Code

luabud/vscode-docs 3

Public documentation for Visual Studio Code

luabud/wave 1

Simple Flask webapp that displays a sec(x) wave

luabud/azure-python-labs 0

Labs demonstrating how to use Python with Azure, Visual Studio Code, GitHub, Windows Subsystem for Linux, and more!

luabud/hello-vscodespaces 0

Configuration to start a simple Hello World script with Python in VS Codespaces

luabud/python-sample-tweeterapp 0

Sample Django+React+Postgres application for use in Visual Studio Code and Azure

luabud/TheCatSaidNo 0

A simple Flask app

issue commentmicrosoft/vscode-python

In a notebook (.ipynb file) paste double pastes.

I'm also reproducing it 100% of the time and I'm on Windows

image

image

ddouglas87

comment created time in 31 minutes

issue closedmicrosoft/vscode-python

Remove ** from activation rule in package.json for workspaces with mspythonconfig.json

<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. --> It's likely the cause of the performance issues with activation since the May release. We can just look for this file in the root of the workspace instead

closed time in 2 hours

luabud

issue commentmicrosoft/vscode-python

Remove ** from activation rule in package.json for workspaces with mspythonconfig.json

@jahan01 it's actually used by Pyright. We just added a rule to auto activate the Python extension for pyright users.

luabud

comment created time in 2 hours

issue commentmicrosoft/vscode-python

Don't guess and opt people out of insiders

yes agreed. related: https://github.com/microsoft/vscode-python/issues/9543, https://github.com/microsoft/vscode-python/issues/9622, https://github.com/microsoft/vscode-python/issues/9609

karthiknadig

comment created time in 2 hours

issue commentmicrosoft/vscode-python

Remove toml tag from market

great point, thanks for bringing this up, @cncolder!

cncolder

comment created time in 3 hours

issue commentmicrosoft/vscode-python

In a notebook (.ipynb file) paste double pastes.

I can also repro it:

  • VS Code version: 1.47.0-insider
  • Extension version: 2020.6.91350
  • Environment: Python 3.8.3 (64 bit) -- a venv is selected in the workspace but the kernel started from the global environment
  • Jupyter version:
jupyter core     : 4.6.3
jupyter-notebook : 6.0.3
qtconsole        : 4.7.4
ipython          : 7.15.0
ipykernel        : 5.3.0
jupyter client   : 6.1.3
jupyter lab      : not installed
nbconvert        : 5.6.1
ipywidgets       : 7.5.1
nbformat         : 5.0.7
traitlets        : 4.3.3

Developer tools: logjuly2020.txt

Output channel:

User belongs to experiment group 'RunByLine - experiment'
User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control'
User belongs to experiment group 'LocalZMQKernel - experiment'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
User belongs to experiment group 'EnableIPyWidgets - experiment'
User belongs to experiment group 'CustomEditorSupport - control'
> conda --version
> pyenv root
> python3.7 c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3.6 c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3 c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python2 c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3.7 c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3.6 c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3 c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -2 c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> ~\OneDrive - Microsoft\feedback\venv38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> conda info --json
Python interpreter path: ~\OneDrive - Microsoft\feedback\venv38\Scripts\python.exe
Starting Pylance language server.
> ~\OneDrive - Microsoft\feedback\venv38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> conda --version
> ~\OneDrive - Microsoft\feedback\venv38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> ~\OneDrive - Microsoft\feedback\venv38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> c:\Users\luabud\Apps\hello\env38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> c:\Users\luabud\Apps\hello\env38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> c:\Users\luabud\Apps\hello\env38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py jupyter kernelspec --version
> ~\OneDrive - Microsoft\feedback\venv38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> ~\OneDrive - Microsoft\feedback\venv38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> c:\Users\luabud\Apps\feedback - Copy\venv38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> ~\OneDrive - Microsoft\feedback\venv38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> c:\Users\luabud\Apps\hello\env38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> c:\Users\luabud\Apps\hello\env38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> c:\Users\luabud\Apps\hello\env38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~\OneDrive - Microsoft\feedback\venv38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> c:\Users\luabud\Apps\feedback - Copy\venv38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> ~\OneDrive - Microsoft\feedback\venv38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> c:\Users\luabud\Apps\feedback - Copy\venv38\Scripts\python.exe c:\Users\luabud\.vscode-insiders\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py pip --version
Python interpreter path: .\venv38\Scripts\python.exe

ddouglas87

comment created time in a day

issue commentmicrosoft/vscode-python

Include PyRight

FWIW Pyright is included in Pylance, that was just released: https://devblogs.microsoft.com/python/announcing-pylance-fast-feature-rich-language-support-for-python-in-visual-studio-code/

dimansf

comment created time in 7 days

issue commentmicrosoft/vscode-python

Tweak settings to prevent accidental execution of code from within a workspace

@kynan we already have an API that allows for extensions to retrieve the value of the selected environment, but we're making some final updates on it: https://github.com/microsoft/vscode-python/issues/12596

brettcannon

comment created time in 8 days

PR closed microsoft/python-sample-tweeterapp

Upgrading packages and fixing vulnerability changes
  • Fixes "no module read_dotenv" error (requirements.txt contains python-dotenv but read_dotenv comes from django-dotenv)
  • Adds psycopg2-binary v2.7.5 by default, comments out line for installing v2.7.4
  • Hides line for disabling whitenoise (that for some reason started causing errors for me)
  • Updates several packages for fixing vulnerabilities (through npm audit fix and by updating serialize-javascript to 2.1.1 - to stop warning from GH)
+113 -95

1 comment

4 changed files

luabud

pr closed time in 8 days

pull request commentmicrosoft/python-sample-tweeterapp

Upgrading packages and fixing vulnerability changes

Closing this PR since I fixed this issue and others here: https://github.com/microsoft/python-sample-tweeterapp/pull/13

luabud

comment created time in 8 days

issue commentmicrosoft/vscode-python

Extension is returning "r.stat is not a function" when starting a Jupyter notebook

Sorry that it took me forever to reply to this!

You're right Ian, I could not start a Jupyter server from that environment. FWIW the path that was set into the HOME key on the pyvenv.cfg was this one: C:\Users\luabud\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe And it seems that pip isn't available in this environment, so I guess something funky happened when I created it.

I'm using a new virtual environment so things are working well now 😊

luabud

comment created time in 8 days

push eventmicrosoft/vscode-python

Luciana Abud

commit sha 096c601ecbfd39816cff06896cdd8a22aec8896d

Remove ** from activation rule in package.json for workspaces with mspythonconfig.json (#12636) * Removing ** from activation rule on presence of mspythoncofing.json file * Add news entry

view details

push time in 8 days

PR merged microsoft/vscode-python

Reviewers
Remove ** from activation rule in package.json for workspaces with mspythonconfig.json

For https://github.com/microsoft/vscode-python/issues/12614

<!-- If an item below does not apply to you, then go ahead and check it off as "done" and strikethrough the text, e.g.: - [x] ~Has unit tests & system/integration tests~ -->

  • [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • [x] Title summarizes what is changing.
  • [x] Has a news entry file (remember to thank yourself!).
+2 -1

1 comment

2 changed files

luabud

pr closed time in 8 days

PR opened microsoft/vscode-python

Remove ** from activation rule in package.json for workspaces with mspythonconfig.json

For https://github.com/microsoft/vscode-python/issues/12614

<!-- If an item below does not apply to you, then go ahead and check it off as "done" and strikethrough the text, e.g.: - [x] ~Has unit tests & system/integration tests~ -->

  • [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • [x] Title summarizes what is changing.
  • [x] Has a news entry file (remember to thank yourself!).
+2 -1

0 comment

2 changed files

pr created time in 8 days

push eventluabud/vscode-python

luabud

commit sha 91a99dc8b928ecba0677c9b7496728fa6d689a80

Add news entry

view details

push time in 8 days

create barnchluabud/vscode-python

branch : changeactivation

created branch time in 8 days

issue openedmicrosoft/vscode-python

Remove ** from activation rule in package.json for workspaces with msconfigpython.json

<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. --> It's likely the cause of the performance issues with activation since the May release. We can just look for this file in the root of the workspace instead

created time in 11 days

push eventluabud/azure-python-labs

luabud

commit sha 7f682e1224d70400acaa2af432b7e5cd484cbdc9

Update step to run file in terminal

view details

push time in 11 days

PR opened Azure-Samples/azure-python-labs

Remove suggestion to run the file with the play button in codespaces

Purpose

<!-- Describe the intention of the changes being proposed. What problem does it solve or functionality does it add? --> Since there's a bug in codespaces that makes the play button not appear sometimes (https://github.com/MicrosoftDocs/vsonline/issues/505), I'm replacing the step to run the file in the terminal.

Does this introduce a breaking change?

<!-- Mark one with an "x". -->

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

<!-- Please check the one that applies to this PR using "x". -->

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Get the code
+1 -1

0 comment

1 changed file

pr created time in 11 days

issue commentMicrosoftDocs/vsonline

Run Python File button isn't displayed in VS Codespaces

hey folks! any updates on this by any chance? 😊

luabud

comment created time in 11 days

create barnchluabud/azure-python-labs

branch : fixplaybutton

created branch time in 11 days

fork luabud/azure-python-labs

Labs demonstrating how to use Python with Azure, Visual Studio Code, GitHub, Windows Subsystem for Linux, and more!

https://aka.ms/python-virtual-labs

fork in 11 days

delete branch luabud/vscode-python

delete branch : newbranch

delete time in 12 days

PR merged microsoft/vscode-python

Turn pythonPath experiment for 20% of users. skip news

<!-- If an item below does not apply to you, then go ahead and check it off as "done" and strikethrough the text, e.g.: - [x] ~Has unit tests & system/integration tests~ -->

  • [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • [x] Title summarizes what is changing.
+2 -2

1 comment

1 changed file

luabud

pr closed time in 12 days

push eventmicrosoft/vscode-python

Luciana Abud

commit sha 0b590caff690b96a74ed281255c3b0d64d512e82

Turn pythonPath experiment for 20% of users. (#12549)

view details

push time in 12 days

PR opened microsoft/vscode-python

Turn pythonPath experiment for 20% of users. skip news

<!-- If an item below does not apply to you, then go ahead and check it off as "done" and strikethrough the text, e.g.: - [x] ~Has unit tests & system/integration tests~ -->

  • [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • [x] Title summarizes what is changing.
+2 -2

0 comment

1 changed file

pr created time in 13 days

create barnchluabud/vscode-python

branch : newbranch

created branch time in 13 days

issue commentmicrosoft/vscode-python

Run last executed test

It'd be nice to add a "Run last executed test" command that would allow for that. If no tests have run, then it'd do nothing.

dufferzafar

comment created time in 13 days

issue closedmicrosoft/vscode-python

Improvements for block comment

There should be no spaces by default inside the """.
Example: """Comments on a single line."""

If there's a text selection on multiple lines, the """ should be placed on separated lines above and below the selected lines.
Example:

"""
Comments on
multiple lines.
"""

I think that should be the default but it would be even better if you provide a setting to choose whether the starting quotes must be on a line by itself or not.
Example:

"""Comments on
multiple lines.
"""

And the "toggle block comment" should be improved to uncomment the whole block when we executed the command with the cursor anywhere inside the comment or having a selection inside the comment.

See PEP-257.
Practical examples (Django): single line and multiline.

closed time in 13 days

ppo

issue commentmicrosoft/vscode-python

Improvements for block comment

Thanks for the suggestion! We talked about it with the team and we have unfortunately decided we will not be moving forward with this idea. We think there isn't an enough widespread need for this to warrant the maintenance cost for the feature.

ppo

comment created time in 13 days

issue commentmicrosoft/vscode-python

[Feature request] Multi-root: Allow disabling tests (discovery/prompts/...) for a root

@bersbersbers did you add this to your User settings (View > Command Palete... and run "Preferences: Open Settings (JSON))?

If so, please do open a separate issue.

bersbersbers

comment created time in 13 days

issue commentmicrosoft/vscode-python

`requirements.txt` PyPI package info tooltips

Thanks for the suggestion! We talked about it with the team and we have unfortunately decided we will not be moving forward with this idea. We think there isn't an enough widespread need for this to warrant the maintenance cost for the feature.

Twixes

comment created time in 13 days

issue closedmicrosoft/vscode-python

`requirements.txt` PyPI package info tooltips

Hi! VS Code offers package info hover tooltips out of the box for npm's package.json, but even with this extension there's no similar feature for pip's requirements.txt. I've made an extension which patches that and adds such tooltips, but could we get that into ms-python.python? I could implement that and make a pull request if that'd sit right with you.

Here's my execution of the idea:

Tooltip example

closed time in 13 days

Twixes

Pull request review commentmicrosoft/vscode-python

Prompt users that we have deleted pythonPath from their workspace settings when in DeprecatePythonPath experiment

     "DataScience.liveShareServiceFailure": "Failure starting '{0}' service during live share connection.",     "DataScience.documentMismatch": "Cannot run cells, duplicate documents for {0} found.",     "DataScience.pythonInteractiveCreateFailed": "Failure to create a 'Python Interactive' window. Try reinstalling the Python extension.",-    "diagnostics.removePythonPathSettingsJson": "The setting \"python.pythonPath\" defined in your settings.json is now deprecated. Do you want us to delete it from your settings.json only? [Learn more](https://aka.ms/AA7jfor).",-    "diagnostics.removePythonPathCodeWorkspace": "The setting \"python.pythonPath\" defined in your workspace settings is now deprecated. Do you want us to delete it from your .code-workspace file only? [Learn more](https://aka.ms/AA7jfor).",-    "diagnostics.removePythonPathCodeWorkspaceAndSettingsJson": "The setting \"python.pythonPath\" defined in your workspace settings is now deprecated. Do you want us to delete it from your .code-workspace file and settings.json? [Learn more](https://aka.ms/AA7jfor).",+    "diagnostics.removedPythonPathFromSettings": "We removed the \"python.pythonPath\" setting from your settings.json file as the setting is now deprecated. You can get the path of your selected interpreter in the Python output panel. [Learn more](https://aka.ms/AA7jfor).",

I don't see deprecated as wrong, but I like the wording for "no longer used by the Python extension" 😊

karrtikr

comment created time in 13 days

issue commentmicrosoft/vscode

Explore improving the single file debug experience

Lots of great discussions here! One thing to notice is that for Python our green play button calls our "Run Python in Terminal" command, which calls the path to the selected Python interpreter and appends the file path to it:

image

That means that we have a different concept for "Run", "Run without debugging" and "Debug".

The feedback we hear from our users is that they'd love to customize the play button (https://github.com/microsoft/vscode-python/issues/10130, https://github.com/microsoft/vscode-python/issues/11036, https://github.com/microsoft/vscode-python/issues/11473, https://github.com/microsoft/vscode-python/issues/12509). So we thought of binding the icon to "Run without debugging" with the default configuration for Python files (bonus points if we could follow what is done for NodeJS has auto configure it - for Django and Flask apps for example 😁).

I like the idea of having different icons and being able to toggle between them. Another thing I thought of would be if VS Code provided just one icon ($(play)) and made it configurable so that users (and maybe extensions) could change what behaviour it's bind to.

weinand

comment created time in 13 days

issue commentmicrosoft/vscode-python

If I have Python-related files in my workspace, automatically activate the extension

@ericsnowcurrently Let's start with pyproject.toml first to be conservative, then we can add setup.py as if we don't receive complaints.

DonJayamanne

comment created time in 14 days

issue commentmicrosoft/vscode-python

Surface "variablePresentation" in settings.json

@int19h I like it! An alternative would be to have python.debuggerVariablePresentation, but I prefer your suggestion because it goes with our other settings (python.testing, python.linting, etc.). I don't foresee us having many settings for debugging in the settings.json file, but I think it's good to follow our standard format.

int19h

comment created time in 14 days

push eventluabud/hello-vscodespaces

Luciana Abud

commit sha c5d25eafc4f1241716931aaf4ec64712626f922e

Fix app creation

view details

Luciana Abud

commit sha 3bf298d20a7a34cbc6c80e7cf58729b8139d342d

Merge pull request #3 from luabud/fixAppCall Fix app creation

view details

push time in 15 days

PR opened luabud/hello-vscodespaces

Fix app creation
+1 -1

0 comment

1 changed file

pr created time in 15 days

create barnchluabud/hello-vscodespaces

branch : fixAppCall

created branch time in 15 days

issue commentmicrosoft/python-sample-tweeterapp

Error when clicking on reopen in container in vscode 1.43.0 remote-containers 0.106.0

Thanks for reporting this! The requirements.txt file was updated in https://github.com/microsoft/python-sample-tweeterapp/pull/13, so that should fix it 😊 let me know if it didn't though!

scorbin

comment created time in 15 days

issue commentmicrosoft/python-sample-tweeterapp

Out-of-date requirements file

Thanks @mishagin-tim for bringing it up! I updated the packages, it's working for me but it'd be great if others could confirm 😊

mishagin-tim

comment created time in 15 days

push eventmicrosoft/python-sample-tweeterapp

Luciana Abud

commit sha 341916c77347cd3e11c9f90cad863b46ed8a2627

Update packages

view details

Luciana Abud

commit sha 626ab2ae81af616f8858e9895c69e9913d6bc009

Updating npm packages

view details

Luciana Abud

commit sha fd5911b1c319cc7a30900be2fb154b007dd2598f

Merge pull request #13 from luabud/requirementsupdate Update requirements.txt and npm packages

view details

push time in 15 days

PR merged microsoft/python-sample-tweeterapp

Update requirements.txt and npm packages

For https://github.com/microsoft/python-sample-tweeterapp/issues/12

+1101 -627

0 comment

3 changed files

luabud

pr closed time in 15 days

PR opened microsoft/python-sample-tweeterapp

Update requirements.txt and npm packages

For https://github.com/microsoft/python-sample-tweeterapp/issues/12

+1101 -627

0 comment

3 changed files

pr created time in 15 days

create barnchluabud/python-sample-tweeterapp

branch : requirementsupdate

created branch time in 15 days

Pull request review commentmicrosoft/vscode-python

Fix #11678: Add "argsExpansion" debug property to launch.json schema

                                     "type": "string"                                 }                             },+                            "argsExpansion": {+                                "enum": [+                                    "none",+                                    "shell"+                                ],+                                "description": "Whether to perform shell expansion on \"args\", or pass all values as is.",

The description seemed like a "true"/"false" value to me, but hopefully having "shell" as an option clarifies that the 'pass all values as is' refers to "none". In short, LGTM 😁.

int19h

comment created time in 15 days

issue commentmicrosoft/vscode-docker

Python debug fails with "Unable to find the debugger in the Python extension"

The issue is in the Python extension, it's the same root cause of https://github.com/microsoft/vscode-python/issues/12481. It's fixed in our Insiders build, and we'll release the fix as soon as we can.
The workaround out of the Insiders build is here.

bwateratmsft

comment created time in 15 days

issue commentmicrosoft/vscode-python

debugpy reverse connectivity support

@int19h I think we will want to change our default Remote attach configuration to use it (and perhaps create an issue to remove "host" and "port" from the top-level in the launch.json schema if that wasn't part of the updates?). But I believe these can be tracked as separate items if you think that would make sense 😊

int19h

comment created time in 20 days

issue commentmicrosoft/vscode-python

Add "variablePresentation" to launch.json schema

I agree with you @int19h, it makes sense to have it as a User setting (I don't see how someone would like to disable this per project?).

@DonJayamanne about this:

else we end up with more settings in settings.json that are probably not going to be used by a majority of the users.

I feel that this is already the case for VS Code all up, isn't it? Perhaps I'm biased because I love the power of customization in VS Code, so I'd love to have this in the extension too.

int19h

comment created time in 20 days

issue commentmicrosoft/vscode-python

Vs Code Python doesn't detect venv environments

Thanks for bringing this up, folks! I opened https://github.com/microsoft/vscode-docs/issues/3789 so we can update our docs to reflect that 😊

@yuvadm our plan is to deprecate the pythonPath setting, so you'll still be able to select interpreters per workspace but that info won't be stored in the settings.json file. We have this change on as an experiment, you can learn more about it here: https://github.com/microsoft/vscode-python/wiki/AB-Experiments#experiment---deprecatepythonpath

PooyaJln

comment created time in 20 days

issue openedmicrosoft/vscode-docs

[Python] Document that pipenv is only discovered after "select interpreter" is triggered

This was raised here: https://github.com/microsoft/vscode-python/issues/12164#issuecomment-642975508.

We just need to update this section: https://code.visualstudio.com/docs/python/environments#_where-the-extension-looks-for-environments

😊

created time in 20 days

issue commentMicrosoftDocs/intellicode

Intellicode don't show Openpyxl sugestions

Hi @Blotuxs, this seems to be an issue in the Python extension so I opened an issue on the other repo 😊.

Blotuxs

comment created time in 20 days

issue openedmicrosoft/vscode-python

No auto complete options show for Openpyxl

From https://github.com/MicrosoftDocs/intellicode/issues/199

Hi

About a month ago Intellicode showed me recommendations for the Openpyxl library in Python. And since a few days ago it does not show all the recommendations (As seen in the image it does not show the Cell recommendation or others).

Try reinstalling Visual Studio Code, Openpyxl, Python and Intellicode but it doesn't work.

Try to delete the Extensions folder and download it again.

Settings: "python.jediEnabled": false "python.languageServer": "Microsoft"

I would appreciate any recommendation. Thank, in advance. Screenshot (3)

created time in 20 days

delete branch luabud/vscode-python

delete branch : sessionid

delete time in 20 days

delete branch luabud/vscode-python

delete branch : enablepythonpath

delete time in 20 days

delete branch luabud/vscode-python

delete branch : renameptvsd

delete time in 20 days

delete branch luabud/vscode-python

delete branch : surveynumber

delete time in 20 days

delete branch luabud/vscode-python

delete branch : livereloadexperiment

delete time in 20 days

delete branch luabud/vscode-python

delete branch : rchiodo/fix_input_bugs

delete time in 20 days

delete branch luabud/vscode-python

delete branch : rchiodo/fix_functional_linux

delete time in 20 days

delete branch luabud/vscode-python

delete branch : release

delete time in 20 days

delete branch luabud/vscode-python

delete branch : updateLSVersion

delete time in 20 days

delete branch luabud/vscode-python

delete branch : newexpnbs

delete time in 20 days

issue commentmicrosoft/vscode-python

Queries about moving workspace pythonPath setting into VSCode storage

Thank you all for providing such a detailed feedback. Let me try to explain a few points:

It imposes a single definition on what is non-transferable on everybody, thereby punishing users who did share those settings in order to satisfy those who didn't (or vice versa).

Our intention is not to punish anyone. We're becoming a very popular extension so we need to be more careful with our settings and solutions. Sharing path settings could be a potential security concern so we decided to go for a route where users can still define default settings (in User scope) and then have that to be added by everyone in the team. We're also working on being better at detecting environments, so ideally users won't have to keep setting paths - they'll just be listed in the interpreter list once Select Interpreter is run. And then it's a one click solution per workspace.

It makes it impossible to selectively backup or even look up those settings because there's no defined place where they are readably stored.

The path to the selected interpreter is printed out in the output, so you can always look it up and save that information in your user settings.

It impedes project skeleton generators to cookie-cut a complete project including vscode settings.

In general this doesn't work super well anyway, since paths are OS specific. That this only really works for environments that are located in your workspace (and that is more common for virtual environments), but then it doesn't work between Windows and macOS/Linux.

The proposed solution is not general. There are other settings that a user may want to configure isolated to a single work-space that they do not want shared. In such instances, the proposed changes do not help at all.

For choosing what you'd like to share or not, the cleanest solution would have to be provided by VS Code generally.

In the event that an appropriate solution is enabled directly by VS Code proper, there will likely be significant inertia to reverting to the current approach.

We are not going to revert to the python.pythonpath setting as is. Our plan is to deprecate the path settings in the workspace level - but we want to make sure we found a good solution before we implement it.

Environment variables are tricky too since they raise even higher security concerns, so we just can't go that route.

karrtikr

comment created time in 20 days

issue closedmicrosoft/vscode-python

Scale down number of users being prompted for feedback

<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

closed time in 21 days

luabud

issue commentmicrosoft/vscode-python

Properly support file path casing

https://github.com/microsoft/vscode-python/issues/2976 https://github.com/microsoft/vscode-python/issues/2976

luabud

comment created time in 21 days

issue openedmicrosoft/vscode-python

Extension is returning "r.stat is not a function" when starting a Jupyter notebook

Bug: Notebook Editor, Interactive Window, Editor cells

<!----------------------------------------------------------------------------------------------- PLEASE READ If this issue doesn't relate to Jupyter Notebooks, Python Interactive Window features or other notebook or "cell"-based features of the Python extension, please use the main Python bug template instead of this one. Thank you! ------------------------------------------------------------------------------------------------->

Steps to cause the bug to occur

This is all I've done:

  1. Opted in run by line experiment and the Insiders build
  2. Selected a Python 3.8 venv with jupyter installed
  3. Opened a blank notebook

Actual behavior

image

<!----------------------------------------------------------------------------------------------- Animated GIFs can be effective means to describe a bug. Consider using a tool like https://github.com/phw/peek or https://www.screentogif.com/ to create one. ------------------------------------------------------------------------------------------------->

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local
  • Extension version: 2020.7.86945-dev
  • VS Code version: 1.46.0
  • Python and/or Anaconda version: 3.8
  • OS: Windows
  • Virtual environment: venv
  • jupyter --version

:

jupyter core     : 4.6.3
jupyter-notebook : 6.0.3
qtconsole        : 4.7.4
ipython          : 7.15.0
ipykernel        : 5.3.0
jupyter client   : 6.1.3
jupyter lab      : not installed
nbconvert        : 5.6.1
ipywidgets       : 7.5.1
nbformat         : 5.0.7
traitlets        : 4.3.3

Developer Tools Console Output

<!----------------------------------------------------------------------------------------------- Copy/paste the output in the "Console" tab in the "Developer Tools" panel (Help > Toggle Developer Tools). For better details, run the "Enable source map support for extension debugging" command in VS Code at least once beforehand. ------------------------------------------------------------------------------------------------->

Output window

User belongs to experiment group 'RunByLine - experiment'
User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control'
User belongs to experiment group 'LocalZMQKernel - control'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
User belongs to experiment group 'EnableIPyWidgets - experiment'
User belongs to experiment group 'CustomEditorSupport - control'
> conda --version
> pyenv root
> python3.7 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3.6 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python2 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3.7 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3.6 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -2 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> conda info --json
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Python interpreter path: .\env38\Scripts\python.exe
Starting Jedi Python language engine.
> conda --version
> ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> c:\Users\luabud\Apps\sample-notebook\env38\Scripts\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v

Developer Tools

rstaterror.txt

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

created time in 22 days

issue commentmicrosoft/vscode-python

Separate window for Python docstrings

@allefeld only today I realized this could actually be a request for the data science features in the extension, sorry about that! This was brought up to me: https://github.com/microsoft/vscode-python/issues/7850. Would that be the same request? 😊

allefeld

comment created time in 25 days

issue commentmicrosoft/vscode

Rename "Jump to Cursor" to "Set Next Statement"

That's awesome, thank you so much! 🎉

luabud

comment created time in 25 days

issue commentmicrosoft/vscode-python

Queries about removal of pythonPath setting

@thernstig You can still have everyone in your team define the same default Python environment by setting "python.defaultInterpreterPath" in the User settings. And to be clear, you can still set environments will per workspace, it's just not stored in the workspace settings.json file. That means that if everyone has the same environment in the machine, they can select the interpreter just once for the workspace - this information will be recorded by the extension. Would that not work for your team's workflow?

And for all others, just echoing what Kartik said above: if the experiment is a breaking change for you please let us know so we can fix the bugs before expanding this experiment to more users.

karrtikr

comment created time in 25 days

issue commentmicrosoft/vscode-python

Use new vsc API to activate terminal without running any commands in terminal

https://code.visualstudio.com/updates/v1_46#_environment-variable-collection

DonJayamanne

comment created time in 25 days

issue openedmicrosoft/vscode-python

Properly support file path casing

From VS Code's 1.46 update:

https://code.visualstudio.com/updates/v1_46#_file-path-casing

File path casing

[...] the behavior of the openTextDocument function has changed. The function can now return a document with a URI with different casing than the URI that was passed in. This means extensions should use TextDocument#uri as the source of truth, not the URI that they request it with.

created time in 25 days

issue closedmicrosoft/debugpy

Properly support file path casing

From VS Code's 1.46 update:

https://code.visualstudio.com/updates/v1_46#_file-path-casing

File path casing

[...] the behavior of the openTextDocument function has changed. The function can now return a document with a URI with different casing than the URI that was passed in. This means extensions should use TextDocument#uri as the source of truth, not the URI that they request it with.

closed time in 25 days

luabud

issue commentmicrosoft/debugpy

Properly support file path casing

Meant to create it on vscode-python repo, not here 🤦🏾‍♀️

luabud

comment created time in 25 days

issue openedmicrosoft/debugpy

Properly support file path casing

From VS Code's 1.46 update:

https://code.visualstudio.com/updates/v1_46#_file-path-casing

File path casing

[...] the behavior of the openTextDocument function has changed. The function can now return a document with a URI with different casing than the URI that was passed in. This means extensions should use TextDocument#uri as the source of truth, not the URI that they request it with.

created time in 25 days

issue openedmicrosoft/debugpy

Support "step into targets" in VS Code

From VS Code's 1.46 update: https://code.visualstudio.com/updates/v1_46#_step-into-targets

Step Into Targets

Debugging into a statement with many nested function calls can be painful because you might have to step through functions you are not really interested in. To improve this scenario, the Debug Adapter Protocol has supported the "Step Into Target" feature that displays UI for directly stepping into the function you are interested in.

In this milestone, VS Code has started to use this feature. When debugging has stopped on a statement, the context menu shows a new action Step Into Targets. This action presents a list of all targets (typically functions) that are available at the current stack frame. Selecting one of them will step into that target.

Note that every stack frame can have its own set of targets. So the result of the Step Into Targets actions depends on the currently selected frame in the CALL STACK view.

Is that something we can add support to? 😊

created time in 25 days

issue openedmicrosoft/vscode-python

Auto configure the debugger when Django and Flask projects are detected

<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

From VS Code 1.46 update:

https://code.visualstudio.com/updates/v1_46#_automatic-debug-configurations-improvements

Automatic debug configurations improvements

Last milestone, we introduced a feature so that extension authors can analyze the current project and offer debug configurations automatically. These debug configurations are dynamically created and so they do not show up in the launch.json configuration file. This is nice as long as they work out of the box, but sometimes you may need to modify the configuration, for instance to add an additional argument. There is now an option to save an automatic debug configuration into a launch.json, in order to open it up for editing.

We should do it for Django and Flask projects to start 😊

created time in 25 days

issue openedmicrosoft/vscode-python

Make sure we provide `icon` and `contextualTitle` properties for the test explorer

<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. --> From VS Code's update 1.46:

https://code.visualstudio.com/updates/v1_46#_flexible-layout

_### For extension authors contributing views or view containers

When views are moved around the workbench, they sometimes need to be presented differently, either with an icon or extra context if they aren't in their default location. When contributing a view, authors may now provide an icon property and a contextualTitle. If not provided, these will default to the icon and title of the view container to which they are contributed._

We should check if we do it for test explorer, if not we should do it :)

created time in 25 days

issue openedmicrosoft/vscode

Provide error message when clicking on "clone repository" and git isn't found

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ --> <!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ --> <!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. --> I got a new laptop and forgot to install git as part of the setup 🤦🏾‍♀️ so when I clicked on "clone repository" in VS Code, nothing happened.

image

When I looked at the developer console, I saw that it was because git wasn't installed.

image

Perhaps the "clone repo" button could be grayed out if git isn't found, or an error banner could be shown with an error message?

created time in 25 days

issue commentmicrosoft/vscode-python

When a unittest subTest fails, it says that no tests ran

It seems that the issue could be that we don't support subTest() for test discovery. PRs to address this would be very welcome! 😊

dyc3

comment created time in a month

issue commentAzure/azure-functions-core-tools

Local Debug for Azure Functions failing due to missing libraries

This doesn't seem to be an issue in the Python extension, this can also be reproduced with other extensions such as CMake Tools and Docker. We're tracking the issue upstream in the VS Code repo here: microsoft/vscode#99699.

FWIW I can still reproduce the same issue when manually installing previous versions of the Python extension, so I'm not sure what is going on.

JADawson

comment created time in a month

issue commentAzure/azure-functions-python-worker

cannot import 'run' (aio_compat.py) (only fails in my local environment using VSCode)

This doesn't seem to be an issue in the Python extension, this can also be reproduced with other extensions such as CMake Tools and Docker. We're tracking the issue upstream to VS Code here: https://github.com/microsoft/vscode/issues/99699.

FWIW I can still reproduce the same issue when manually installing previous versions of the Python extension, so I'm not sure what is going on.

saulcruz

comment created time in a month

issue commentmicrosoft/vscode

"Server returned 404" when trying to install different versions of extensions in VS Code

Which version are you trying to install?

I don't get to select a version, just by clicking on "Install version..." it throws that error.

image

I tried it with previous versions of the Python extension just in case, but that didn't change. And again, that can be reproduced with other extensions e.g. Docker and CMake Tools as said here. It's not happening to all extensions for me, it's working with the C/C++ extension.

luabud

comment created time in a month

issue commentmicrosoft/vscode-python

Support for non-standard shells

Hey @kfardanesh! If we were to do it, I believe we'd address https://github.com/microsoft/vscode-python/issues/11812 so that it's possible to configure the shell for running Python files. So I'm closing in favour of that 😊

kfardanesh

comment created time in a month

issue closedmicrosoft/vscode-python

Support for non-standard shells

<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. --> Running code using the "Run Python File in Terminal" icon should support shells outside of pwsh, cmd, etc. If using Powershell, the command is prefixed with &. If using CMD, the command is not prefixed. If using another shell (such as nushell), the command is still prefixed as if it was powershell. This causes the command to fail. image

I have been using the setting "terminal.integrated.shell.windows" for setting the shell to utilize.

closed time in a month

kfardanesh

issue closedmicrosoft/vscode-python

Indexing for repos

  • I love this ext. Everything redundant is omitted. Everything necessary is close enough to touch, except for the function pre-indexing which is inferior to PyCharm.
  • Pre-indexing: Create indexing for all repos, so that autocompletion works faster.
  • Actully this function is essential! Not just for speeding!
  • Here is the problem: When I finish typing a function name and start to typing parameters, the completion hint is still about the function(param) (It is supposed to be about local variables). Then if you give a 'Tab' or 'Enter'...

Although it may cost a little longer time to launch.

closed time in a month

l544301590

issue commentmicrosoft/vscode-python

Indexing for repos

Hey @l544301590, have you tried it with the Microsoft Python Language Server ("python.languageServer":"Microsoft" in your settings.json file)? I believe that last bullet isn't an issue with it. As for when using Jedi, this will be solved once we address https://github.com/Microsoft/vscode-python/issues/11995, so I'm closing in favour of that.

l544301590

comment created time in a month

issue closedmicrosoft/vscode-python

How to support pylint 2.5.0 configuration files

Currently only pylintrc and .pylintrc files are searched to override minimalchecker. With pylint 2.5, users can also use pyproject.toml and setup.cfg files.

The current method to alleviate this issue is to explicitly set pylintUseMinimalCheckers to false.

Three options of support I see (from simple to hard):

  1. Add note about file options in linting documentation.
  2. Make pylintUseMinimalCheckers have to be explicitly set to false by user. This is a breaking change for pylintrc file users.
  3. Add checks for pylint config in these two files to keep implicit. This requires a complicated checker that parses through both setup.cfg and pyproject.toml.

closed time in a month

nathanrpage97

issue commentmicrosoft/vscode-python

How to support pylint 2.5.0 configuration files

Once we address issue #11995, we will make pylintUseMinimalCheckers disabled by default (instead of enabled like we currently do). So I'm closing in favour of that 😊

nathanrpage97

comment created time in a month

delete branch luabud/vscode-python

delete branch : defaultls

delete time in a month

issue closedmicrosoft/vscode-python

Failing Run without Debugging tests - old debug adapter

  1) Run without Debugging
       Should run program to the end:
     Error: no event 'initialized' received after 20000 ms
      at Timeout._onTimeout (node_modules/vscode-debugadapter-testsupport/src/debugClient.ts:298:13)
      at listOnTimeout (internal/timers.js:531:17)
      at processTimers (internal/timers.js:475:7)


  2) Run without Debugging
       test stderr output for Python:
     Error: no event 'initialized' received after 20000 ms
      at Timeout._onTimeout (node_modules/vscode-debugadapter-testsupport/src/debugClient.ts:298:13)
      at listOnTimeout (internal/timers.js:531:17)
      at processTimers (internal/timers.js:475:7)


  3) Run without Debugging
       Test stdout output:
     Error: no event 'initialized' received after 20000 ms
      at Timeout._onTimeout (node_modules/vscode-debugadapter-testsupport/src/debugClient.ts:298:13)
      at listOnTimeout (internal/timers.js:531:17)
      at processTimers (internal/timers.js:475:7)

https://dev.azure.com/ms/vscode-python/_build/results?buildId=78342&view=logs&j=ed05db11-6cc7-5269-d9eb-d5e3bb031583&t=1be60850-28b8-524f-a703-e7af128cfb09&l=1010

We're getting rid of the old debug adapter so we need not fix these.

closed time in a month

karrtikr

issue closedmicrosoft/vscode-python

Disable debugger smoke test

src\test\smoke\debugger.smoke.test.ts

It's failing with the old TS debug adapter.

closed time in a month

karrtikr

issue closedmicrosoft/vscode-python

Remove obsolete debug adapter code (when ready)

For #6017

  • [x] Delete everything under src/client/debugger/debugAdapter : see #11755
  • [x] Delete installOldPtvsd gulp task and refactor the installPythonRequirements gulp task (it won't be a series of tasks anymore)
  • [x] Delete CI steps & gulp task installing ptvsd
  • [x] Remove packaging, pyparsing and six from requirements.txt
  • [x] Remove DebugAdapterNewPtvsd and DebugAdapterDescriptorFactory experiments - [ ] Remove pythonFiles/debug_adapter and clean up pythonFiles/tests/__main__.py Edit: The tests under pythonFiles/debug_adapter test the wheels installer for debugpy. We should keep it.
  • [x] Remove packaging from test-requirements.txt
  • [x] Remove legacy code in buildApi() : see #11757 - [ ] Remove pin of the Node version in the GitHub Action CI workflow (https://github.com/microsoft/vscode-python/pull/10410#discussion_r387172386) - [ ] Remove pin of the Node version in the AzDO workflows (NodeVersion in globals.yml and all the places using it) Edit: We have decided to pin node version for consistency across all platforms.
  • [x] Remove all uses of ChildProcessLaunchData, isChildProcessLaunchData, and ChildProcessLaunched

closed time in a month

kimadeline

issue closedmicrosoft/vscode-python

Switch to the new experiment framework

We implemented a experiments framework for the python extension. Now there is a general implementation available for all extensions. We should switch to that framework.

address following issues as well: #10008

closed time in a month

karthiknadig

issue commentmicrosoft/vscode-python

"Python not installed" incorrect diagnostic

We released a fix for this, but if people are still having issues please do let us know.

basharatusman

comment created time in a month

issue closedmicrosoft/vscode-python

pytest JUnit XML deprecation warning (before pytest 6.0)

Initially reported in #10658:

Running tests with pytests shows the PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest 6.0. Add 'junit_family=xunit1' to your pytest.ini file to keep the current format in future versions of pytest and silence this warning.

We add the --junitxml=<path/to/a/temp/xml/file> argument to our pytest command, so we should handle this warning instead of the users.

closed time in a month

kimadeline
more