profile
viewpoint
Don Jayamanne DonJayamanne Software engineer with a soft spot for .NET and Node.js. Loves tinkering with Arduino and Raspberry Pi. Lives in a cave.

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha f5decbf5baa6e4b00b7681d462da4473ea36d2ca

Remove wip

view details

push time in 6 hours

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha 2517901d4e3de25deaaee447d57ddf5c72355ff2

Increased font size

view details

push time in 6 hours

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha 6fa70b9eddc951c17ab164d832ec5bdda9f73982

DS tests

view details

Don Jayamanne

commit sha a8fc8f2380d204e6d976bfcc5448352220c99e59

Merge

view details

push time in 6 hours

push eventDonJayamanne/vscode-python-uitests

Don Jayamanne

commit sha e4ca3c95a0105b2e2b947c24a154446fcbfd32c6

Oops

view details

push time in 6 hours

push eventDonJayamanne/vscode-python-uitests

Don Jayamanne

commit sha c771bad455aade5695f2d987c21e290a223a86b9

Create file

view details

Don Jayamanne

commit sha 1b171e7603d46c07c4e69a8f892ec417e71786d4

Oops

view details

push time in 6 hours

issue commentconda/conda

How to activate conda environments in command prompt from within VS Code

Our PowerShell ingeration is now better than our cmd.exe

The expectation in VSC for PowerShell is simple. User needs to have configured PowerShell for conda, and we just send the commands conda activate ...., that's as we send.

Hope this is an acceptable solution?

DonJayamanne

comment created time in 7 hours

issue openedconda/conda

Conda initialization scripts in `~/.bash_profile` are not idempotent

<!-- Hi! Read this; it's important.

This is an issue tracker for conda -- the package manager. File feature requests for conda here, as well as bug reports about something conda has messed up.

If your issue is a bug report for:

  • a specific conda package from Anaconda ('defaults' channel): ==> file at https://github.com/ContinuumIO/anaconda-issues
  • a specific conda package from conda-forge: ==> file at the corresponding feedstock under https://github.com/conda-forge
  • repo.anaconda.com access and service: ==> file at https://github.com/ContinuumIO/anaconda-issues
  • anaconda.org access and service: ==> file at https://anaconda.org/contact/report
  • commands under 'conda build': ==> file at https://github.com/conda/conda-build
  • commands under 'conda env': ==> please file it here!
  • all other conda commands that start with 'conda': ==> please file it here!

If you continue on,

please include all requested information below.

If a maintainer determines the information is required to understand your issue, and if it is not provided, your issue may be closed automatically.

-->

Current Behavior

<!-- What actually happens? If you want to include console output, please use "Steps to Reproduce" below. --> The conda inialization scripts in ~/.bash_profile are not idempotent.

Steps to Reproduce

<!-- If the current behavior is a bug, please provide specific, minimal steps to independently reproduce. Include the exact conda commands that reproduce the issue and their output between the ticks below. -->


  • Install pipenv or similar to ensure Python is installed and in the current path.
    • Ensure we have PATH variable updated in ~/.bash_profile file to ensure the above python environment is in front.
  • Setup conda on a Mac
  • Ensure the initialization scripts are setup in ~/.bash_profile
  • Open a new terminal
    • At this point the conda initialization code will run and Conda will be in the path.
    • Type which python and this will point to a python environment from conda.
  • Open VS Code
    • Open a terminal inside vs code
    • Type which python and this will point to a non-conda python environment.

Note:

  • This happens because when VSCode launches, it launches within an environment with the ~/.bash_profile having been sourced. Now, when the terminal within VSC is opened, it sources the ~/.bash_profile file again. I.e. the code in ~/.bash_profile is sourced twice, as a result of this the path is updated. However the conda initialization scripts don't update the path when executed again.

Expected Behavior

<!-- What do you think should happen? -->

  • The conda inialization scripts in ~/.bash_profile need to be idempotent.
  • Sourcing the ~/.bash_profile file multiple times should produce the same results.

Environment Information

<details open><summary><code>conda info</code></summary><p> <!-- between the ticks below, paste the output of 'conda info' -->

n/a

</p></details>

<details open><summary><code>conda config --show-sources</code></summary><p> <!-- between the ticks below, paste the output of 'conda config --show-sources' -->

n/a

</p></details>

<details><summary><code>conda list --show-channel-urls</code></summary><p> <!-- between the ticks below, paste the output of 'conda list --show-channel-urls' -->

n/a

</p></details>

@msarahan /cc

created time in 8 hours

issue openedconda/conda

How to activate conda environments in command prompt from within VS Code

<!-- Hi! Read this; it's important.

This is an issue tracker for conda -- the package manager. File feature requests for conda here, as well as bug reports about something conda has messed up.

If your issue is a bug report for:

  • a specific conda package from Anaconda ('defaults' channel): ==> file at https://github.com/ContinuumIO/anaconda-issues
  • a specific conda package from conda-forge: ==> file at the corresponding feedstock under https://github.com/conda-forge
  • repo.anaconda.com access and service: ==> file at https://github.com/ContinuumIO/anaconda-issues
  • anaconda.org access and service: ==> file at https://anaconda.org/contact/report
  • commands under 'conda build': ==> file at https://github.com/conda/conda-build
  • commands under 'conda env': ==> please file it here!
  • all other conda commands that start with 'conda': ==> please file it here!

If you continue on,

please include all requested information below.

If a maintainer determines the information is required to understand your issue, and if it is not provided, your issue may be closed automatically.

--> I'm going to remove the template as this isn't a bug, but a question specific to Visual Studio Code (VSCode + Activation of Conda environments in Command prompt).

  • Today our support for Conda Environments in the Python Extension for VS Code is fairly choppy, and we'd like to rectify this.
  • We'd like to ensure we have great support for Conda 4.6 onwards.

Our current solution is:

  • Identify the base conda environment and activate that using any *.bat files found in that directory
  • Next, run the command conda activate <....>
    • At this point we're assuming conda is in the path, and necessary variables have been setup.

Problems:

  • Slow - we're activating the base environment, then activating the correct user environment (two steps)
  • Feels like a hack

Question

  • Is there a *.bat file that we can run in the Command Prompt or similar to activate a conda environment instead of resorting to such hacks.

@msarahan /cc (creating issue as discussed at PyCon)

created time in 8 hours

issue commentmicrosoft/vscode-python

How do I get visual studio code to load the modules of the pyd file

Are you using the language server or Jedi. When you open the Python output panel do you see the work Starting Jedi or Starting Microsoft Language Server?

SheepDomination

comment created time in 8 hours

issue closedmicrosoft/vscode-python

Python's virtual environment can't view pip list

Issue Type: <b>Feature Request</b>

(hospital_venv) C:\Users\zhangxiaorui\Desktop\items_set\hospital_venv\Scripts>pip list Fatal error in launcher: #python 的虚拟环境不能查看pip list

Extension version: 2019.4.12954 VS Code version: Code 1.33.1 (51b0b28134d51361cf996d2f0a1c698247aeabd8, 2019-04-11T08:27:14.102Z) OS version: Windows_NT x64 10.0.17763

<!-- generated by issue reporter -->

closed time in 9 hours

sanda1017

issue commentmicrosoft/vscode-python

Python's virtual environment can't view pip list

Closing this issue as pip list is a python specific command and not something the extension controls.

sanda1017

comment created time in 9 hours

issue closedmicrosoft/vscode-python

Make it ignore pyd files

Is it possible to make it ignore *.pyd files so I don't get error: [Errno 13] Permission denied: and have to restart vscode every time I change a file?

closed time in 9 hours

crackcomm

issue commentmicrosoft/vscode-python

Make it ignore pyd files

I'm closing this issue for now as we do not have the required information to resolve the issue. Once you have provided the screenshots and completed the issue template with missing information (please create a new issue to see the information requested), then we'll be happy to reopen this issue to assist you.

crackcomm

comment created time in 9 hours

issue commentmicrosoft/vscode-python

incorrect warning for import

Please could you go into the Python output panel and scroll to the top and let us know which of the following messages you see:

  • Starting Microsoft Python language server.
  • Starting Jedi Python language engine.
flukas

comment created time in 9 hours

issue commentmicrosoft/vscode-python

python self defined environmental variables are not insertable

@mmoosstt Out of curiosity, how are you using these exact same .env files outside of VS Code? Or are you using these .env files only inside VS Code and no where else? Basically I'm interesting in identifying the tools/platforms you are using that support the nested variables in the .env files.

mmoosstt

comment created time in 9 hours

issue commentmicrosoft/vscode-python

Python Environment file with more than a few recursive entries breaks debugging

@mmoosstt @adriangoneill Out of curiosity, how are you using these exact same .env files outside of VS Code? Or are you using these .env files only inside VS Code and no where else? Basically I'm interesting in identifying the tools/platforms you are using that support the nested variables in the .env files.

adriangoneill

comment created time in 9 hours

issue commentmicrosoft/vscode-python

Go to definition sometimes finds the correct definition twice on case-insensitive filesystems

Apologies for the delay. Please could you let us know whether you have the following setting in your user or workspace settings.json file:

"python.jediEnabled": true/false

Note: Please check both your user and workspace settings file.

Trolldemorted

comment created time in 9 hours

issue commentmicrosoft/vscode-python

can't autocomplete for selenium.webdriver

I've tested this at my end and it works. Please could you try the following:

  • Open your user settings.json file
  • Add the following setting:
hughxia

comment created time in 9 hours

issue closedmicrosoft/vscode-python

No parameter intelligence for classes

<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python.

==: This is supposedly a bug.

Unable to install a linter or formatter? 'No installers available'?

==: No Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/

Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

Otherwise please fill in the requested details below. "XXX" markers should not be present in the final bug report.

If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

Environment data

  • VS Code version: 1.33.1
  • Extension version (available under the Extensions sidebar): 2019.3.6558
  • OS and version: macOS 10.14.4
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
  • Relevant/affected Python packages and their versions: TensorFlow=2.0.0a0

Expected behaviour

ezgif com-video-to-gif

Actual behaviour

ezgif com-video-to-gif-2

closed time in 9 hours

SimantoR

issue openedmicrosoft/python-language-server

No parameter intelligence for classes

@SimantoR commented on Sun Apr 21 2019

<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python.

==: This is supposedly a bug.

Unable to install a linter or formatter? 'No installers available'?

==: No Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/

Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

Otherwise please fill in the requested details below. "XXX" markers should not be present in the final bug report.

If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

Environment data

  • VS Code version: 1.33.1
  • Extension version (available under the Extensions sidebar): 2019.3.6558
  • OS and version: macOS 10.14.4
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
  • Relevant/affected Python packages and their versions: TensorFlow=2.0.0a0

Expected behaviour

ezgif com-video-to-gif

Actual behaviour

ezgif com-video-to-gif-2


@ericsnowcurrently commented on Mon Apr 22 2019

Hi @SimantoR, thanks for letting us know about this problem. First off, I'm guessing that you have the "Expected" and "Actual" switch above. :) As to the problem, are you using Jedi or the new language server (see #3977)?


@SimantoR commented on Mon Apr 22 2019

Its the language server in use right now. Jedi does show the parameters. Well more like what ever fits in the box width-wise, rest is underput by the description. But with the language server (that analyzes for a bit), no parameters. I noticed this while using the classes under keras.layers

created time in 9 hours

issue commentmicrosoft/vscode-python

Test framework "undefined" is not installed

@luabud Are you still experiencing this issue?

luabud

comment created time in 9 hours

issue closedmicrosoft/vscode-python

wrong with auto-complete

<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python.

Unable to install a linter or formatter? 'No installers available'? Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/

Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

Otherwise please fill in the requested details below. "XXX" markers should not be present in the final bug report.

If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

Environment data

  • VS Code version: 1.32.3
  • Extension version (available under the Extensions sidebar): 2019.3.6352 (2 April 2019)
  • OS and version: 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): anaconda
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: tensorflow-1.12.0 There maybe some bug about auto-complete of tensorflow,when I type 'tf.' there are no useful selection appearing,but the last version is ok. moreover, the time analysing code is much longer than the last version.

Expected behaviour

The auto-complete run well when I use tensorflow

Actual behaviour

2019-04-06 23-21-59 的屏幕截图 XXX

Steps to reproduce:

import tensorflow as tf tf.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

XXX

closed time in 9 hours

benbenji

issue commentmicrosoft/vscode-python

wrong with auto-complete

Its been a month since the information was requested. Closing due to inactivity. We'll be happy to reopen the issue once the requested information has been provided.

benbenji

comment created time in 9 hours

issue closedmicrosoft/vscode-python

Debugger doesn't stop at breakpoint with remote debug

Environment data

  • VS Code version: 1.31.1
  • Extension version (available under the Extensions sidebar): 2019.1.0
  • OS and version: Windows_NT x64 6.1.7601
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.2 64-bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: None

Expected behaviour

VSCode debugger stops at the breakpoint with access to the code

Actual behaviour

VSCode pauses, but nothing happens, no visual "stopping", not even tries to create cmd-tab with connection cmd-line

Steps to reproduce:

  1. trigger some method on a remote server (actually it is the same PC with linked py files from my sources)
  2. hit "Start debugging" button in the editor with prepared attach config
  3. "Remote" server starts waiting, but nothing happens in the editor

Logs

debug18628.log

200219

closed time in 9 hours

ruselcmplx

issue commentmicrosoft/vscode-python

Debugger doesn't stop at breakpoint with remote debug

Its been a month since the information was requested. Closing due to inactivity. We'll be happy to reopen the issue once the requested information has been provided.

ruselcmplx

comment created time in 9 hours

issue closedmicrosoft/vscode-python

Intellisense just doesn't work

Complete and utter python layman here, coming from a JS web dev background and just want to get Python up and running on my machine so I can dip my toes into some ML stuff.

Intellisense does not work after installing the extension and trying all of the obvious solutions: setting interpreter, installing ctags, building the symbols, rebooting my machine, this that the other.

Sorry I can't provide you with any debug information or whatnot - just the basic fact that out of the box this extension doesn't work on my machine. I have a hunch that its something on my Mac but I haven't the foggiest how to even begin debugging it: is it a $path or system environment variable issue? Perhaps but I wouldn't know what I'm looking for.

I've done development work with JS and Go in my VSCode setup and everything works fine, different case here and I don't have the OS knowledge to dive deeper. At a loss, what can I do?

EDIT: I just installed PyCharm, and then quickly made a test file just to see if the Intellisense worked out of the box - which it did. I then thought to myself, I wonder if Intellisense would now work in VSCode... it does. How weird and ridiculous!

EDIT 2: So Intellisense worked in VSCode after installing PyCharm, but that then broke the linter, so upon saving a .py file in VSCode, I was prompted with the 'pip linter is not installed' warning (even though it was previously installed)... Clicking install would then throw an error because an interpreter was not set... setting the interpreter then allowed the linter to be installed but broke Intellisense. Absolute madness this.

closed time in 9 hours

Jakkc

issue commentmicrosoft/vscode-python

Intellisense just doesn't work

Its been a month since the information was requested. Closing due to inactivity. We'll be happy to reopen the issue once the requested information has been provided.

Jakkc

comment created time in 9 hours

issue closedmicrosoft/vscode-python

Changes to analysisOptions.ts

See here https://github.com/microsoft/python-language-server/issues/1054#issuecomment-490157385

closed time in 12 hours

DonJayamanne

issue closedmicrosoft/vscode-python

Extension causes high cpu load due to synchronous FS Operations

  • Issue Type: Performance
  • Extension Name: python
  • Extension Version: 2019.2.5558
  • OS Version: Darwin x64 18.2.0
  • VSCode version: 1.32.3

ms-python.python-unresponsive.cpuprofile.txt

Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load

closed time in 12 hours

zachgarwood

issue closedmicrosoft/vscode-python

Version number not updated in the change log

The version number in the published VSIX doesn't contain the correct version number.

Screen Shot 2019-04-30 at 09 33 44

closed time in 12 hours

DonJayamanne

issue closedmicrosoft/vscode-python

Pipenv can't install black because black is only a pre-release

<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python.

Unable to install a linter or formatter? 'No installers available'? Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/

Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

Otherwise please fill in the requested details below. "XXX" markers should not be present in the final bug report.

If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

Environment data

  • VS Code version: Version 1.34.0-insider
  • Extension version (available under the Extensions sidebar): 2019.3.6558
  • OS and version: macOS 10.14
  • Python version (& distribution if applicable, e.g. Anaconda): project is using 3.7.2, pyenv with global python set to 3.7.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv
  • Relevant/affected Python packages and their versions: black 19.3b0

Expected behaviour

Black installs ok

Actual behaviour

Black fails to install because there are only beta releases and pipenv doesn't look for those by default

Steps to reproduce:

  1. When the popup asks to select a linter, choose black and install it.
  2. Pipenv will fire up and try and install black as a dev package.
  3. Pipenv will fail to install since --pre isn't provided

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Formatting with black failed.
You could either install the 'black' formatter, turn it off or use another formatter.
Error: Module 'black' not installed.

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

Not Applicable

Output from terminal:

pipenv install black --dev      Mon Apr  8 21:53:53 2019
Installing black…
Adding black to Pipfile's [dev-packages]…
✔ Installation Succeeded 
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
✘ Locking Failed! 
[pipenv.exceptions.ResolutionFailure]:   File "/Users/erin/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pipenv/resolver.py", line 70, in resolve
[pipenv.exceptions.ResolutionFailure]:       req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]:   File "/Users/erin/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pipenv/utils.py", line 746, in resolve_deps
[pipenv.exceptions.ResolutionFailure]:       req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]:   File "/Users/erin/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pipenv/utils.py", line 500, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]:       resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]:   File "/Users/erin/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pipenv/utils.py", line 415, in resolve
[pipenv.exceptions.ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]:       pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches black
[pipenv.exceptions.ResolutionFailure]:       Skipped pre-versions: 18.3a0, 18.3a0, 18.3a1, 18.3a1, 18.3a2, 18.3a2, 18.3a3, 18.3a3, 18.3a4, 18.3a4, 18.4a0, 18.4a0, 18.4a1, 18.4a1, 18.4a2, 18.4a2, 18.4a3, 18.4a3, 18.4a4, 18.4a4, 18.5b0, 18.5b0, 18.5b1, 18.5b1, 18.6b0, 18.6b0, 18.6b1, 18.6b1, 18.6b2, 18.6b2, 18.6b3, 18.6b3, 18.6b4, 18.6b4, 18.9b0, 18.9b0, 19.3b0, 19.3b0
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches black
Skipped pre-versions: 18.3a0, 18.3a0, 18.3a1, 18.3a1, 18.3a2, 18.3a2, 18.3a3, 18.3a3, 18.3a4, 18.3a4, 18.4a0, 18.4a0, 18.4a1, 18.4a1, 18.4a2, 18.4a2, 18.4a3, 18.4a3, 18.4a4, 18.4a4, 18.5b0, 18.5b0, 18.5b1, 18.5b1, 18.6b0, 18.6b0, 18.6b1, 18.6b1, 18.6b2, 18.6b2, 18.6b3, 18.6b3, 18.6b4, 18.6b4, 18.9b0, 18.9b0, 19.3b0, 19.3b0
There are incompatible versions in the resolved dependencies.
[pipenv.exceptions.ResolutionFailure]:       req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]:   File "/Users/erin/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pipenv/utils.py", line 746, in resolve_deps
[pipenv.exceptions.ResolutionFailure]:       req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]:   File "/Users/erin/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pipenv/utils.py", line 500, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]:       resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]:   File "/Users/erin/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pipenv/utils.py", line 415, in resolve
[pipenv.exceptions.ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]:       pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches black
[pipenv.exceptions.ResolutionFailure]:       Skipped pre-versions: 18.3a0, 18.3a0, 18.3a1, 18.3a1, 18.3a2, 18.3a2, 18.3a3, 18.3a3, 18.3a4, 18.3a4, 18.4a0, 18.4a0, 18.4a1, 18.4a1, 18.4a2, 18.4a2, 18.4a3, 18.4a3, 18.4a4, 18.4a4, 18.5b0, 18.5b0, 18.5b1, 18.5b1, 18.6b0, 18.6b0, 18.6b1, 18.6b1, 18.6b2, 18.6b2, 18.6b3, 18.6b3, 18.6b4, 18.6b4, 18.9b0, 18.9b0, 19.3b0, 19.3b0
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches black
Skipped pre-versions: 18.3a0, 18.3a0, 18.3a1, 18.3a1, 18.3a2, 18.3a2, 18.3a3, 18.3a3, 18.3a4, 18.3a4, 18.4a0, 18.4a0, 18.4a1, 18.4a1, 18.4a2, 18.4a2, 18.4a3, 18.4a3, 18.4a4, 18.4a4, 18.5b0, 18.5b0, 18.5b1, 18.5b1, 18.6b0, 18.6b0, 18.6b1, 18.6b1, 18.6b2, 18.6b2, 18.6b3, 18.6b3, 18.6b4, 18.6b4, 18.9b0, 18.9b0, 19.3b0, 19.3b0
There are incompatible versions in the resolved dependencies.

Proposed solution:

  1. Add the --pre flag to the pipenv command when black is chosen and installed.

closed time in 12 hours

erinxocon

issue commentmicrosoft/vscode-python

More pythonic snippets

Please could you provide some more information on the issue.

fedario

comment created time in 12 hours

issue closedmicrosoft/vscode-python

Runtime Error: Already started in multiprocess

<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python.

Unable to install a linter or formatter? 'No installers available'? Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/

Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

Otherwise please fill in the requested details below. "XXX" markers should not be present in the final bug report.

If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

Environment data

  • VS Code version: 1.34.0
  • Extension version (available under the Extensions sidebar): 2019.4.12954
  • OS and version: macOS 10.14.4
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.5
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: N/A

Actual behaviour

When I try to use the "multiprocessing" module to start a new processing like p = multiprocessing.Process(target=func) p.start() And it will raise an exception like

E00000.247: Exception escaped from start_client
            
            Traceback (most recent call last):
              File "/Users/mac/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/log.py", line 110, in g
                return f(*args, **kwargs)
              File "/Users/mac/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/pydevd_hooks.py", line 74, in start_client
                sock, start_session = daemon.start_client((host, port))
              File "/Users/mac/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/daemon.py", line 214, in start_client
                with self.started():
              File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line 81, in __enter__
                return next(self.gen)
              File "/Users/mac/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/daemon.py", line 110, in started
                self.start()
              File "/Users/mac/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/daemon.py", line 145, in start
                raise RuntimeError('already started')
            RuntimeError: already started

But When I try to execute it in terminal instead, I will get the right output

closed time in 12 hours

xtyDoge

issue openedmicrosoft/ptvsd

Runtime Error: Already started in multiprocess

@xtyDoge commented on Sat May 18 2019

<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python.

Unable to install a linter or formatter? 'No installers available'? Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/

Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

Otherwise please fill in the requested details below. "XXX" markers should not be present in the final bug report.

If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

Environment data

  • VS Code version: 1.34.0
  • Extension version (available under the Extensions sidebar): 2019.4.12954
  • OS and version: macOS 10.14.4
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.5
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: N/A

Actual behaviour

When I try to use the "multiprocessing" module to start a new processing like p = multiprocessing.Process(target=func) p.start() And it will raise an exception like

E00000.247: Exception escaped from start_client
            
            Traceback (most recent call last):
              File "/Users/mac/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/log.py", line 110, in g
                return f(*args, **kwargs)
              File "/Users/mac/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/pydevd_hooks.py", line 74, in start_client
                sock, start_session = daemon.start_client((host, port))
              File "/Users/mac/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/daemon.py", line 214, in start_client
                with self.started():
              File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line 81, in __enter__
                return next(self.gen)
              File "/Users/mac/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/daemon.py", line 110, in started
                self.start()
              File "/Users/mac/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/daemon.py", line 145, in start
                raise RuntimeError('already started')
            RuntimeError: already started

But When I try to execute it in terminal instead, I will get the right output

created time in 12 hours

issue closedmicrosoft/vscode-python

Debug is adding extra white space/carriage returns

Issue Type: Bug

I can't figure out why I'm getting extra white space between my output. If I code for a space with " ", I get a line break. No idea how to find a solution.

VS Code version: Code 1.33.1 (51b0b28, 2019-04-11T08:22:55.268Z) OS version: Darwin x64 18.5.0

Here's what it looks like on my screen: Screen Shot 2019-05-16 at 1 24 17 PM

Extension Author (truncated) Version
anaconda-extension-pack ms- 1.0.1
python ms- 2019.4.12954
vscode-yaml red 0.4.0

closed time in 12 hours

walkingbytrees

issue openedmicrosoft/ptvsd

Debug is adding extra white space/carriage returns

@walkingbytrees commented on Sat May 18 2019

Issue Type: Bug

I can't figure out why I'm getting extra white space between my output. If I code for a space with " ", I get a line break. No idea how to find a solution.

VS Code version: Code 1.33.1 (51b0b28, 2019-04-11T08:22:55.268Z) OS version: Darwin x64 18.5.0

Here's what it looks like on my screen: Screen Shot 2019-05-16 at 1 24 17 PM

Extension Author (truncated) Version
anaconda-extension-pack ms- 1.0.1
python ms- 2019.4.12954
vscode-yaml red 0.4.0

created time in 12 hours

issue closedmicrosoft/vscode-python

subProcess launch configuration option does not work for multiprocessing.

<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python.

Unable to install a linter or formatter? 'No installers available'? Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/

Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

Otherwise please fill in the requested details below. "XXX" markers should not be present in the final bug report.

If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

Environment data

  • VS Code version: 1.34.0
  • Extension version (available under the Extensions sidebar): 2019.4.12954
  • OS and version: Ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv

Expected behaviour

multiprocessing should work with "subProcess" set to true.

Actual behaviour

Debugger crashes when calling start() on a process object created with multiprocessing.Process().

Steps to reproduce:

  1. Given the python source:
import multiprocessing
import time

def sub_proc():
    print('Starting: ' + multiprocessing.current_process().name)
    time.sleep(2)
    print('Exiting : ' + multiprocessing.current_process().name)

if __name__ == '__main__':
    p = multiprocessing.Process(name='sub_proc', target=sub_proc)

    p.start()
    time.sleep(1)

    p.join()

And launch configuration

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "subProcess": true,
            "program": "${file}",
            "console": "integratedTerminal"
        }
    ]
}
  1. Run above with given configuration.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

E00000.015: Exception escaped from start_client
            
            Traceback (most recent call last):
              File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/log.py", line 110, in g
                return f(*args, **kwargs)
              File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/pydevd_hooks.py", line 74, in start_client
                sock, start_session = daemon.start_client((host, port))
              File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/daemon.py", line 217, in start_client
                connect(client, addr)
              File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/socket.py", line 197, in connect
                sock.connect(addr)
            ConnectionRefusedError: [Errno 111] Connection refused
            

Traceback (most recent call last):
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/ptvsd_launcher.py", line 43, in <module>
    main(ptvsdArgs)
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/__main__.py", line 410, in main
    run()
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/__main__.py", line 275, in run_file
    setup_connection()
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/__main__.py", line 266, in setup_connection
    daemon = ptvsd._remote.attach(addr)
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/_remote.py", line 120, in attach
    patch_multiprocessing=ptvsd.options.multiprocess)
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/_vendored/pydevd/pydevd.py", line 1844, in settrace
    stop_at_frame,
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/_vendored/pydevd/pydevd.py", line 1894, in _locked_settrace
    debugger.connect(host, port)  # Note: connect can raise error.
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/_vendored/pydevd/pydevd.py", line 855, in connect
    s = start_client(host, port)
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/pydevd_hooks.py", line 132, in <lambda>
    _start_client = (lambda h, p: start_client(daemon, h, p))
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/log.py", line 110, in g
    return f(*args, **kwargs)
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/pydevd_hooks.py", line 74, in start_client
    sock, start_session = daemon.start_client((host, port))
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/daemon.py", line 217, in start_client
    connect(client, addr)
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/socket.py", line 197, in connect
    sock.connect(addr)
ConnectionRefusedError: [Errno 111] Connection refused

closed time in 12 hours

derekgorcz

issue openedmicrosoft/ptvsd

subProcess launch configuration option does not work for multiprocessing.

@derekgorcz commented on Sun May 19 2019

<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python.

Unable to install a linter or formatter? 'No installers available'? Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/

Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

Otherwise please fill in the requested details below. "XXX" markers should not be present in the final bug report.

If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

Environment data

  • VS Code version: 1.34.0
  • Extension version (available under the Extensions sidebar): 2019.4.12954
  • OS and version: Ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv

Expected behaviour

multiprocessing should work with "subProcess" set to true.

Actual behaviour

Debugger crashes when calling start() on a process object created with multiprocessing.Process().

Steps to reproduce:

  1. Given the python source:
import multiprocessing
import time

def sub_proc():
    print('Starting: ' + multiprocessing.current_process().name)
    time.sleep(2)
    print('Exiting : ' + multiprocessing.current_process().name)

if __name__ == '__main__':
    p = multiprocessing.Process(name='sub_proc', target=sub_proc)

    p.start()
    time.sleep(1)

    p.join()

And launch configuration

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "subProcess": true,
            "program": "${file}",
            "console": "integratedTerminal"
        }
    ]
}
  1. Run above with given configuration.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

E00000.015: Exception escaped from start_client
            
            Traceback (most recent call last):
              File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/log.py", line 110, in g
                return f(*args, **kwargs)
              File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/pydevd_hooks.py", line 74, in start_client
                sock, start_session = daemon.start_client((host, port))
              File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/daemon.py", line 217, in start_client
                connect(client, addr)
              File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/socket.py", line 197, in connect
                sock.connect(addr)
            ConnectionRefusedError: [Errno 111] Connection refused
            

Traceback (most recent call last):
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/ptvsd_launcher.py", line 43, in <module>
    main(ptvsdArgs)
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/__main__.py", line 410, in main
    run()
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/__main__.py", line 275, in run_file
    setup_connection()
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/__main__.py", line 266, in setup_connection
    daemon = ptvsd._remote.attach(addr)
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/_remote.py", line 120, in attach
    patch_multiprocessing=ptvsd.options.multiprocess)
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/_vendored/pydevd/pydevd.py", line 1844, in settrace
    stop_at_frame,
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/_vendored/pydevd/pydevd.py", line 1894, in _locked_settrace
    debugger.connect(host, port)  # Note: connect can raise error.
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/_vendored/pydevd/pydevd.py", line 855, in connect
    s = start_client(host, port)
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/pydevd_hooks.py", line 132, in <lambda>
    _start_client = (lambda h, p: start_client(daemon, h, p))
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/log.py", line 110, in g
    return f(*args, **kwargs)
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/pydevd_hooks.py", line 74, in start_client
    sock, start_session = daemon.start_client((host, port))
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/daemon.py", line 217, in start_client
    connect(client, addr)
  File "/home/derek/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/lib/python/ptvsd/socket.py", line 197, in connect
    sock.connect(addr)
ConnectionRefusedError: [Errno 111] Connection refused

created time in 12 hours

issue closedmicrosoft/vscode-python

"Run Current File" (terminal/interactive) doesn't respect .env PYTHONPATH

Environment data

  • VS Code version: 1.34.0
  • Extension version: 2019.5.0-dev
  • OS: OS X 10.12.6
  • Python version: Python 3.7 (conda)
  • Type of virtual environment used: conda 4.6

Expected behaviour

  • PYTHONPATH is set to an absolute path in .env file and both of these commands respect it:
    • Run Python File in Terminal
    • Run Current File in Python Interactive Window
  • PYTHONPATH is set to a relative path (relative to the workspace folder) in .env file and both commands above respect it

Actual behaviour

- absolute relative
run in terminal :stop_sign: :stop_sign:
run interactive :white_check_mark: :stop_sign:

Steps to reproduce

Can use this minimal script to check the paths:

import sys
print(sys.path)

For absolute path, any absolute path works; for relative path, try e.g. something like this in .env:

PYTHONPATH=../foo/bar

closed time in 12 hours

aldanor

issue openedmicrosoft/ptvsd

Venv, debugging, pythonpath broken

@ST33LDI9ITAL commented on Sun May 19 2019

<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python.

Unable to install a linter or formatter? 'No installers available'? Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/

Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

Otherwise please fill in the requested details below. "XXX" markers should not be present in the final bug report.

If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

Environment data

  • VS Code version: 1.35.0-insider
  • Extension version (available under the Extensions sidebar): 2019.4.12954
  • OS and version: Win 10x64 10.0.17763
  • Python version (& distribution if applicable, e.g. Anaconda): CPython 3.7.3 and WinPy 3.7.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: XXX

Expected behaviour

Venv to be detected and activated Debugging to work with venv

Actual behaviour

Doesn't detect or activate venv Debugging doesn't work with venv, no breakpoints trip

Steps to reproduce:

  1. Set python path to "python.pythonPath": "${workspaceFolder}\Scripts\python.exe", Open python venv project folder, open any file, set breakpoints, run debug

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Starting Microsoft Python language server.
##########Linting Output - pylint##########

--------------------------------------------------------------------

Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)



[Info  - 8:03:49 PM] GetCurrentSearchPaths c:\Dev\Python\examples\Scripts\python.exe 
[Info  - 8:03:49 PM] Python search paths:
[Info  - 8:03:49 PM]     c:\python\winpy\python-3.7.2.amd64\dlls
[Info  - 8:03:49 PM]     c:\python\winpy\python-3.7.2.amd64\lib
[Info  - 8:03:49 PM]     c:\python\winpy\python-3.7.2.amd64
[Info  - 8:03:49 PM]     c:\dev\python\examples
[Info  - 8:03:49 PM]     c:\dev\python\examples\lib\site-packages
[Info  - 8:03:49 PM] Configuration search paths:
[Info  - 8:03:53 PM] Microsoft Python Language Server version 0.2.82.0
[Info  - 8:03:53 PM] Initializing for c:\Dev\Python\examples\Scripts\python.exe


---

@webji commented on [Sun May 19 2019](https://github.com/microsoft/vscode-python/issues/5690#issuecomment-493829939)

Same issue:

Version: 1.35.0-insider (system setup)
Commit: 6ac87465f297a9068bf767f45d6f372fc5697de9
Date: 2019-05-17T17:48:07.036Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17763



---

@DonJayamanne commented on [Mon May 20 2019](https://github.com/microsoft/vscode-python/issues/5690#issuecomment-494077472)

Issue moved to [microsoft/ptvsd #1439](https://github.com/microsoft/ptvsd/issues/1439) via [**ZenHub**](https://www.zenhub.com/)


created time in 12 hours

issue commentmicrosoft/vscode-python

Venv, debugging, pythonpath broken

Issue moved to microsoft/ptvsd #1439 via ZenHub

ST33LDI9ITAL

comment created time in 12 hours

issue closedmicrosoft/vscode-python

Venv, debugging, pythonpath broken

<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python.

Unable to install a linter or formatter? 'No installers available'? Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/

Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

Otherwise please fill in the requested details below. "XXX" markers should not be present in the final bug report.

If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

Environment data

  • VS Code version: 1.35.0-insider
  • Extension version (available under the Extensions sidebar): 2019.4.12954
  • OS and version: Win 10x64 10.0.17763
  • Python version (& distribution if applicable, e.g. Anaconda): CPython 3.7.3 and WinPy 3.7.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: XXX

Expected behaviour

Venv to be detected and activated Debugging to work with venv

Actual behaviour

Doesn't detect or activate venv Debugging doesn't work with venv, no breakpoints trip

Steps to reproduce:

  1. Set python path to "python.pythonPath": "${workspaceFolder}\Scripts\python.exe", Open python venv project folder, open any file, set breakpoints, run debug

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Starting Microsoft Python language server.
##########Linting Output - pylint##########

--------------------------------------------------------------------

Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)



[Info  - 8:03:49 PM] GetCurrentSearchPaths c:\Dev\Python\examples\Scripts\python.exe 
[Info  - 8:03:49 PM] Python search paths:
[Info  - 8:03:49 PM]     c:\python\winpy\python-3.7.2.amd64\dlls
[Info  - 8:03:49 PM]     c:\python\winpy\python-3.7.2.amd64\lib
[Info  - 8:03:49 PM]     c:\python\winpy\python-3.7.2.amd64
[Info  - 8:03:49 PM]     c:\dev\python\examples
[Info  - 8:03:49 PM]     c:\dev\python\examples\lib\site-packages
[Info  - 8:03:49 PM] Configuration search paths:
[Info  - 8:03:53 PM] Microsoft Python Language Server version 0.2.82.0
[Info  - 8:03:53 PM] Initializing for c:\Dev\Python\examples\Scripts\python.exe

closed time in 12 hours

ST33LDI9ITAL

issue openedmicrosoft/ptvsd

Venv, debugging, pythonpath broken

@ST33LDI9ITAL commented on Sun May 19 2019

<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python.

Unable to install a linter or formatter? 'No installers available'? Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/

Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

Otherwise please fill in the requested details below. "XXX" markers should not be present in the final bug report.

If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

Environment data

  • VS Code version: 1.35.0-insider
  • Extension version (available under the Extensions sidebar): 2019.4.12954
  • OS and version: Win 10x64 10.0.17763
  • Python version (& distribution if applicable, e.g. Anaconda): CPython 3.7.3 and WinPy 3.7.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: XXX

Expected behaviour

Venv to be detected and activated Debugging to work with venv

Actual behaviour

Doesn't detect or activate venv Debugging doesn't work with venv, no breakpoints trip

Steps to reproduce:

  1. Set python path to "python.pythonPath": "${workspaceFolder}\Scripts\python.exe", Open python venv project folder, open any file, set breakpoints, run debug

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Starting Microsoft Python language server.
##########Linting Output - pylint##########

--------------------------------------------------------------------

Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)



[Info  - 8:03:49 PM] GetCurrentSearchPaths c:\Dev\Python\examples\Scripts\python.exe 
[Info  - 8:03:49 PM] Python search paths:
[Info  - 8:03:49 PM]     c:\python\winpy\python-3.7.2.amd64\dlls
[Info  - 8:03:49 PM]     c:\python\winpy\python-3.7.2.amd64\lib
[Info  - 8:03:49 PM]     c:\python\winpy\python-3.7.2.amd64
[Info  - 8:03:49 PM]     c:\dev\python\examples
[Info  - 8:03:49 PM]     c:\dev\python\examples\lib\site-packages
[Info  - 8:03:49 PM] Configuration search paths:
[Info  - 8:03:53 PM] Microsoft Python Language Server version 0.2.82.0
[Info  - 8:03:53 PM] Initializing for c:\Dev\Python\examples\Scripts\python.exe


---

@webji commented on [Sun May 19 2019](https://github.com/microsoft/vscode-python/issues/5690#issuecomment-493829939)

Same issue:

Version: 1.35.0-insider (system setup)
Commit: 6ac87465f297a9068bf767f45d6f372fc5697de9
Date: 2019-05-17T17:48:07.036Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17763



created time in 12 hours

issue commentmicrosoft/vscode-python

Matplotlib SIGSEV error

Issue moved to microsoft/ptvsd #1437 via ZenHub

narekmargaryan

comment created time in 13 hours

issue closedmicrosoft/vscode-python

Matplotlib SIGSEV error

Running on Ubuntu 19.04.

All works fine when I launch the terminal (externally, not within the VS Code) and run the .py from there. As soon as I try to debug inside Code or even run the file from the embedded terminal, I receive

"fish: “env PYTHONIOENCODING=UTF-8 PYTH…” terminated by signal SIGSEGV (Address boundary error)"

on the line where I call 'plt' for the first time (i.e. plt.plot([1,2,3]) for example).

When I launch in the external terminal (again, from within Code), I receive:

bash: line 1: 6635 Segmentation fault (core dumped) ''/usr/bin/python3 /home/user/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/ptvsd_launcher.py --default --client --host localhost --port 44817 /home/user/Documents/Projects/test.py

closed time in 13 hours

narekmargaryan

issue openedmicrosoft/ptvsd

Matplotlib SIGSEV error

@narekmargaryan commented on Sun May 19 2019

Running on Ubuntu 19.04.

All works fine when I launch the terminal (externally, not within the VS Code) and run the .py from there. As soon as I try to debug inside Code or even run the file from the embedded terminal, I receive

"fish: “env PYTHONIOENCODING=UTF-8 PYTH…” terminated by signal SIGSEGV (Address boundary error)"

on the line where I call 'plt' for the first time (i.e. plt.plot([1,2,3]) for example).

When I launch in the external terminal (again, from within Code), I receive:

bash: line 1: 6635 Segmentation fault (core dumped) ''/usr/bin/python3 /home/user/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/ptvsd_launcher.py --default --client --host localhost --port 44817 /home/user/Documents/Projects/test.py

created time in 13 hours

Pull request review commentmicrosoft/vscode-python

WIP - Added support for A/B testing and staged rollouts of new functionality

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++'use strict';++import { inject, injectable, named } from 'inversify';+import { Uri } from 'vscode';+import { IHttpClient } from '../activation/types';+import { sendTelemetryEvent } from '../telemetry';+import { EventName } from '../telemetry/constants';+import { IApplicationEnvironment, IWorkspaceService } from './application/types';+import { STANDARD_OUTPUT_CHANNEL } from './constants';+import { traceDecorators, traceError } from './logger';+import { ICryptoUtils, IExperimentsManager, IOutputChannel, IPersistentState, IPersistentStateFactory, Resource } from './types';+import { Experiments } from './utils/localize';++const EXPIRY_DURATION_MS = 30 * 60 * 1000;+const experimentStorageKey = 'EXPERIMENT_STORAGE_KEY';+const configUri = 'https://raw.githubusercontent.com/karrtikr/check/master/environments.json';++type AB_Experiments = { name: string; salt: string; min: number; max: number }[];+@injectable()+export class ExperimentsManager implements IExperimentsManager {+    private experimentStorage: IPersistentState<AB_Experiments | undefined>;+    private activatedWorkspaces = new Map<string, boolean>();+    private resource: Resource;+    constructor(+        @inject(IPersistentStateFactory) private readonly persistentStateFactory: IPersistentStateFactory,+        @inject(IWorkspaceService) private readonly workspaceService: IWorkspaceService,+        @inject(IHttpClient) private readonly httpClient: IHttpClient,+        @inject(ICryptoUtils) private readonly crypto: ICryptoUtils,+        @inject(IApplicationEnvironment) private readonly appEnvironment: IApplicationEnvironment,+        @inject(IOutputChannel) @named(STANDARD_OUTPUT_CHANNEL) private readonly output: IOutputChannel+    ) {+        this.experimentStorage = this.persistentStateFactory.createGlobalPersistentState<AB_Experiments | undefined>(experimentStorageKey, undefined, EXPIRY_DURATION_MS);+    }++    public async activate(resource: Uri): Promise<void> {+        if (this.activatedWorkspaces.has(this.getWorkspacePathKey(resource))) {+            return;+        }+        this.activatedWorkspaces.set(this.getWorkspacePathKey(resource), true);+        this.resource = resource;+        this.initializeInBackground().ignoreErrors();+    }++    @traceDecorators.error('Failed to initialize experiments')+    public async initializeInBackground() {+        if (this.isTelemetryDisabled() || this.experimentStorage.value) {+            return;+        }+        const downloadedExperiments = await this.httpClient.getJSONC<AB_Experiments>(configUri);+        await this.experimentStorage.updateValue(downloadedExperiments);+    }++    public inExperiment(experimentName: string): boolean {+        try {+            const experiments = this.experimentStorage.value ? this.experimentStorage.value : [];+            const experiment = experiments.find(exp => exp.name === experimentName);+            if (!experiment) {+                return false;+            }+            const inExp = this.isUserInRange(experiment.min, experiment.max, experiment.salt);+            if (inExp) {+                sendTelemetryEvent(EventName.PYTHON_EXPERIMENTS, undefined, { expName: experimentName });+                // tslint:disable-next-line:messages-must-be-localized+                this.output.appendLine(Experiments.inGroup().format(experimentName));+                return true;+            }+        } catch (ex) {+            traceError('Failed to check if user is in experiment', ex);
            traceError(`Failed to check if user is in experiment '{experimentName}'`, ex);
karrtikr

comment created time in 13 hours

Pull request review commentmicrosoft/vscode-python

WIP - Added support for A/B testing and staged rollouts of new functionality

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++'use strict';++import { inject, injectable, named } from 'inversify';+import { Uri } from 'vscode';+import { IHttpClient } from '../activation/types';+import { sendTelemetryEvent } from '../telemetry';+import { EventName } from '../telemetry/constants';+import { IApplicationEnvironment, IWorkspaceService } from './application/types';+import { STANDARD_OUTPUT_CHANNEL } from './constants';+import { traceDecorators, traceError } from './logger';+import { ICryptoUtils, IExperimentsManager, IOutputChannel, IPersistentState, IPersistentStateFactory, Resource } from './types';+import { Experiments } from './utils/localize';++const EXPIRY_DURATION_MS = 30 * 60 * 1000;+const experimentStorageKey = 'EXPERIMENT_STORAGE_KEY';+const configUri = 'https://raw.githubusercontent.com/karrtikr/check/master/environments.json';++type AB_Experiments = { name: string; salt: string; min: number; max: number }[];+@injectable()+export class ExperimentsManager implements IExperimentsManager {+    private experimentStorage: IPersistentState<AB_Experiments | undefined>;+    private activatedWorkspaces = new Map<string, boolean>();+    private resource: Resource;+    constructor(+        @inject(IPersistentStateFactory) private readonly persistentStateFactory: IPersistentStateFactory,+        @inject(IWorkspaceService) private readonly workspaceService: IWorkspaceService,+        @inject(IHttpClient) private readonly httpClient: IHttpClient,+        @inject(ICryptoUtils) private readonly crypto: ICryptoUtils,+        @inject(IApplicationEnvironment) private readonly appEnvironment: IApplicationEnvironment,+        @inject(IOutputChannel) @named(STANDARD_OUTPUT_CHANNEL) private readonly output: IOutputChannel+    ) {+        this.experimentStorage = this.persistentStateFactory.createGlobalPersistentState<AB_Experiments | undefined>(experimentStorageKey, undefined, EXPIRY_DURATION_MS);
        this.experimentStorage = this.persistentStateFactory.createGlobalPersistentState<ABExperiments | undefined>(experimentStorageKey, undefined, EXPIRY_DURATION_MS);
karrtikr

comment created time in 13 hours

Pull request review commentmicrosoft/vscode-python

WIP - Added support for A/B testing and staged rollouts of new functionality

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++'use strict';++import { inject, injectable, named } from 'inversify';+import { Uri } from 'vscode';+import { IHttpClient } from '../activation/types';+import { sendTelemetryEvent } from '../telemetry';+import { EventName } from '../telemetry/constants';+import { IApplicationEnvironment, IWorkspaceService } from './application/types';+import { STANDARD_OUTPUT_CHANNEL } from './constants';+import { traceDecorators, traceError } from './logger';+import { ICryptoUtils, IExperimentsManager, IOutputChannel, IPersistentState, IPersistentStateFactory, Resource } from './types';+import { Experiments } from './utils/localize';++const EXPIRY_DURATION_MS = 30 * 60 * 1000;+const experimentStorageKey = 'EXPERIMENT_STORAGE_KEY';+const configUri = 'https://raw.githubusercontent.com/karrtikr/check/master/environments.json';++type AB_Experiments = { name: string; salt: string; min: number; max: number }[];+@injectable()+export class ExperimentsManager implements IExperimentsManager {+    private experimentStorage: IPersistentState<AB_Experiments | undefined>;
    private experimentStorage: IPersistentState<ABExperiments | undefined>;
karrtikr

comment created time in 13 hours

Pull request review commentmicrosoft/vscode-python

WIP - Added support for A/B testing and staged rollouts of new functionality

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++'use strict';++import { inject, injectable, named } from 'inversify';+import { Uri } from 'vscode';+import { IHttpClient } from '../activation/types';+import { sendTelemetryEvent } from '../telemetry';+import { EventName } from '../telemetry/constants';+import { IApplicationEnvironment, IWorkspaceService } from './application/types';+import { STANDARD_OUTPUT_CHANNEL } from './constants';+import { traceDecorators, traceError } from './logger';+import { ICryptoUtils, IExperimentsManager, IOutputChannel, IPersistentState, IPersistentStateFactory, Resource } from './types';+import { Experiments } from './utils/localize';++const EXPIRY_DURATION_MS = 30 * 60 * 1000;+const experimentStorageKey = 'EXPERIMENT_STORAGE_KEY';+const configUri = 'https://raw.githubusercontent.com/karrtikr/check/master/environments.json';++type AB_Experiments = { name: string; salt: string; min: number; max: number }[];+@injectable()+export class ExperimentsManager implements IExperimentsManager {+    private experimentStorage: IPersistentState<AB_Experiments | undefined>;+    private activatedWorkspaces = new Map<string, boolean>();+    private resource: Resource;+    constructor(+        @inject(IPersistentStateFactory) private readonly persistentStateFactory: IPersistentStateFactory,+        @inject(IWorkspaceService) private readonly workspaceService: IWorkspaceService,+        @inject(IHttpClient) private readonly httpClient: IHttpClient,+        @inject(ICryptoUtils) private readonly crypto: ICryptoUtils,+        @inject(IApplicationEnvironment) private readonly appEnvironment: IApplicationEnvironment,+        @inject(IOutputChannel) @named(STANDARD_OUTPUT_CHANNEL) private readonly output: IOutputChannel+    ) {+        this.experimentStorage = this.persistentStateFactory.createGlobalPersistentState<AB_Experiments | undefined>(experimentStorageKey, undefined, EXPIRY_DURATION_MS);+    }++    public async activate(resource: Uri): Promise<void> {+        if (this.activatedWorkspaces.has(this.getWorkspacePathKey(resource))) {+            return;+        }+        this.activatedWorkspaces.set(this.getWorkspacePathKey(resource), true);+        this.resource = resource;+        this.initializeInBackground().ignoreErrors();+    }++    @traceDecorators.error('Failed to initialize experiments')+    public async initializeInBackground() {+        if (this.isTelemetryDisabled() || this.experimentStorage.value) {+            return;+        }+        const downloadedExperiments = await this.httpClient.getJSONC<AB_Experiments>(configUri);

Remove _ from typenames (TypeScript doesn't use _ in typenames)

        const downloadedExperiments = await this.httpClient.getJSONC<ABExperiments>(configUri);
karrtikr

comment created time in 13 hours

Pull request review commentmicrosoft/vscode-python

WIP - Added support for A/B testing and staged rollouts of new functionality

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++'use strict';++import { inject, injectable, named } from 'inversify';+import { Uri } from 'vscode';+import { IHttpClient } from '../activation/types';+import { sendTelemetryEvent } from '../telemetry';+import { EventName } from '../telemetry/constants';+import { IApplicationEnvironment, IWorkspaceService } from './application/types';+import { STANDARD_OUTPUT_CHANNEL } from './constants';+import { traceDecorators, traceError } from './logger';+import { ICryptoUtils, IExperimentsManager, IOutputChannel, IPersistentState, IPersistentStateFactory, Resource } from './types';+import { Experiments } from './utils/localize';++const EXPIRY_DURATION_MS = 30 * 60 * 1000;+const experimentStorageKey = 'EXPERIMENT_STORAGE_KEY';+const configUri = 'https://raw.githubusercontent.com/karrtikr/check/master/environments.json';++type AB_Experiments = { name: string; salt: string; min: number; max: number }[];

Please remove the _, TypeScript doesn't use _ in type names.

type ABExperiments = { name: string; salt: string; min: number; max: number }[];
karrtikr

comment created time in 13 hours

push eventmicrosoft/vscode-python

David Lechner

commit sha 928110bbd51564c545e2283cc65f63993e827d1f

fix incorrect argument in pipenv error message (#5254) This adds some additional checks when detecting the python interpreter specified by pipenv. The checks allow us to give more useful error messages to the user. The first check runs pipenv --version just to see if the pipenv command can be found on the system. If not, the user is notified and a suggestion on how to fix the problem is made. The second check tests to see if the virtual environment used by pipenv has been setup yet. If not, it is suggested to the user to set it up manually. The old error message that showed the full output of the failed pipenv command has been removed (it is still loged though).

view details

push time in 13 hours

PR merged microsoft/vscode-python

fix incorrect argument in pipenv error message external contributor

In PipEnvService.invokePipenv(), the argument passed to pipenv is variable. However, the error message always assumed that the argument was --venv. Use the arg parameter in the error message so that it prints exactly the command that was attempted.

For #4866

<!-- 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!)
  • [x] ~Has sufficient logging.~
  • [x] ~Has telemetry for enhancements.~
  • [x] Unit tests & system/integration tests are added/updated
  • [x] ~Test plan is updated as appropriate~
  • [x] ~package-lock.json has been regenerated by running npm install (if dependencies have changed)~
  • [x] ~The wiki is updated with any design decisions/details.~
+29 -16

3 comments

3 changed files

dlech

pr closed time in 13 hours

push eventmicrosoft/vscode-python

Don Jayamanne

commit sha ec41c73028934f2da6633204d9d1566b06b90924

Added test to ensure path, module name and args of formatters are used (#5483) * Added tests * Update src/test/format/formatter.unit.test.ts

view details

push time in 13 hours

PR merged microsoft/vscode-python

Added test to ensure path, module name and args of formatters are used skip news

For #1621

<!-- 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
  • [n/a] Has a news entry file (remember to thank yourself!)
  • [n/a] Appropriate comments and documentation strings in the code
  • [n/a] Has sufficient logging.
  • [n/a] Has telemetry for enhancements.
  • [x] Unit tests & system/integration tests are added/updated
  • [n/a] Test plan is updated as appropriate
  • [n/a] package-lock.json has been regenerated by running npm install (if dependencies have changed)
  • [n/a] The wiki is updated with any design decisions/details.
+169 -11

0 comment

3 changed files

DonJayamanne

pr closed time in 13 hours

pull request commentmicrosoft/vscode-python

snippet changes

@fedario Thanks a lot for the PR. We've been busy with PyCon and Build, hence the delay in getting back. As a rule we accept PRs for issues that have been filed in the GitHub issues register. Please could you file an issue for this.

fedario

comment created time in 13 hours

push eventablakey/vscode-python

Don Jayamanne

commit sha 60c986e741fbc36271ac50f42ae70cf84ae76190

Updated readme

view details

push time in 13 hours

issue commentmicrosoft/vscode-python

Can't switch Python installation with "Remote Development"

remotely: Python 2019.4.12954 (locally disabled)

Curious why? Can you try enabling this and letting me know what errors you get?

colesbury

comment created time in 14 hours

issue commentmicrosoft/vscode-python

Python Interactive does not work in Remote - Containers

@isvoboda Hmm, please could you open Developer: Toggle Developer Tools and check if there are any errors in the console window in there

isvoboda

comment created time in a day

issue commentmicrosoft/vscode-python

Tests not Reporting Status if One of the Test Folder are Outside of Workspace Folder

Please could you provide a sample repo so we can replicate this issue.

AngellusMortis

comment created time in a day

issue commentmicrosoft/vscode-python

Python Interactive does not work in Remote - Containers

@isvoboda @tai

  • Please could you select the command Developer: Open Webview Developer Tools
  • Go into the console tab
  • Check if there are any errors in there, if any please paste them here.

Looks like the UI isn't getting rendered for some reason.

Please ensure you select Developer: Open Webview Developer Tools and not Developer: Toggle Developer Tools, they are completely different.

isvoboda

comment created time in a day

issue closedmicrosoft/vscode-python

interpreters won't update

Steps

  1. open vscode
  2. open one *.py file to activate python extension
  3. create a new python virtualenv by pipenv
  4. click select interpreter and unable to see the new interpreter

Actual behaviour

CacheableLocatorService cached interpreters and never update.

Expected behaviour

Do not need to restart vscode to discovery new python interpreter which create by pipenv (or others).

Maybe add a command to update the cache?

closed time in a day

Cologler

issue commentmicrosoft/vscode-python

interpreters won't update

Dup of https://github.com/microsoft/vscode-python/issues/2640

Cologler

comment created time in a day

issue commentmicrosoft/vscode-python

Debugging test with subprocesses does not work

Hi, how's the issue and patch going? I'm debugging a multiprocessing program, and I've tried python3.5, python3.6 and python3.7.

Please could you create a separate issue m this issue is used to track subprocess debugging in tests.

karthiknadig

comment created time in 2 days

issue closedmicrosoft/vscode-python

when debugging python, VSC download C# plugin

<!-- Do you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python.

Unable to install a linter or formatter? 'No installers available'? Windows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows Linux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/

Python configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

Otherwise please fill in the requested details below. "XXX" markers should not be present in the final bug report.

If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

Environment data

  • VS Code version: XXX
  • Extension version (available under the Extensions sidebar): XXX
  • OS and version: XXX
  • Python version (& distribution if applicable, e.g. Anaconda): XXX
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX
  • Relevant/affected Python packages and their versions: XXX

Expected behaviour

XXX

Actual behaviour

XXX

Steps to reproduce:

  1. XXX

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

XXX

版本 1.34.0 提交 a622c65b2c713c890fcf4fbf07cf34049d5fe758 日期 2019-05-15T21:55:35.507Z Shell 3.1.8 渲染器 66.0.3359.181 Node 10.2.0 架构 6.6.346.32

When I'm debugging a multi-processing python program, it failed to stop at a break point. Instead, it crashed.

Then, in this opened VSCode windows, I went to menu->file->open new windows, and opened my another python project.

In this new-opened window, when I'm trying to create a debug configuration for my python code, the output region just notices me that it is downloading C# plugin. What the heck it this??

closed time in 2 days

zchrissirhcz

issue commentmicrosoft/vscode-python

when debugging python, VSC download C# plugin

ust notices me that it is downloading C# plugin. What the heck it this

The problem is with the C# extension not python. You have installed the C# extension. Or report the issue on their repo.

zchrissirhcz

comment created time in 2 days

startedghisguth/vscode-monkey-c

started time in 2 days

issue commentmicrosoft/vscode-python

Loading Module into Code ?

python.autoComplete.extraPaths, then using ctrl+space there is no prompt with suggestions with the corresponding documentation of the module ?

Please could you provide a sample github repo with screenshots of the error so we can better understand the problem. Right now you are proofing a solution, that's fine, however if you provided the actual problem with samples we can help you better.

SheepDomination

comment created time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha e35daabbec1bc6dc7ab53ac0a78e16896a3676bf

Fix settings

view details

push time in 3 days

PR closed microsoft/vscode-python

WIP

For #

<!-- 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~ -->

  • [ ] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • [ ] Title summarizes what is changing
  • [ ] Has a news entry file (remember to thank yourself!)
  • [ ] Appropriate comments and documentation strings in the code
  • [ ] Has sufficient logging.
  • [ ] Has telemetry for enhancements.
  • [ ] Unit tests & system/integration tests are added/updated
  • [ ] Test plan is updated as appropriate
  • [ ] package-lock.json has been regenerated by running npm install (if dependencies have changed)
  • [ ] The wiki is updated with any design decisions/details.
+6569 -667

0 comment

103 changed files

DonJayamanne

pr closed time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha 29367f46ec3a2f5f2df0d2632875157795fb3aa9

Updated tests

view details

push time in 3 days

push eventDonJayamanne/vscode-python-uitests

Don Jayamanne

commit sha a6e296d13fbd435dbe94e1e203c2f716e1dec008

Updated tests

view details

push time in 3 days

push eventDonJayamanne/vscode-python-uitests

Don Jayamanne

commit sha fc087b7124d0d5e04080bbe7a26506dc5f7cfb1a

Update text printed

view details

push time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha fc68364d4394c00b4835d0edabe6283c014559e2

Lets try a bigger font size

view details

push time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha 8b2387f88694650c13634ffb982d2c3f69971718

Error handler

view details

push time in 3 days

issue openedmicrosoft/vscode-python

Write utility scripts in ES6 instead of TypeScript

JS code used in build pipeline is written in TS and transpiled into JS. Now that our code runs against Node 10, we should be able to use ES6.

Problems:

  • We have TS and JS code side by side (confusing)
  • When making changes to TS, the JS MUST be generated and checked into source

Writing plain simple ES6 JS will fix things.

  • We can still get type checks, etc in JS code (typescript does this well)

created time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha eafde6a8632b9c46c50fbb3f08b2bfc3073cdd5a

Update todo

view details

push time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha 5a441eb6fd6837826b6f23fc91847bc023641c56

Oops

view details

push time in 3 days

issue closedmicrosoft/vscode-python

Debug console: `\n` not shown as new line (NumPy ndarray)

Copied from microsoft/vscode#73845

Environment data

  • VS Code version: 1.34.0
  • Extension version (available under the Extensions sidebar): 2019.4.12954
  • OS and version: Windows 10 build18898
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.1
  • Relevant/affected Python packages and their versions: NumPy

Expected behaviour

When evaluating a NumPy ndarray in the debug console, the \n should become a new line.

>>> import numpy as np
>>> a = np.arange(15).reshape(3, 5)
>>> a
array([[ 0,  1,  2,  3,  4],
       [ 5,  6,  7,  8,  9],
       [10, 11, 12, 13, 14]])

Actual behaviour

image

Steps to reproduce:

  1. Start a debug session
  2. Type import numpy as np
  3. Type np.random.rand(5, 5)

closed time in 3 days

yzhang-gh

issue openedmicrosoft/ptvsd

Debug console: `\n` not shown as new line (NumPy ndarray)

@yzhang-gh commented on Fri May 17 2019

Copied from microsoft/vscode#73845

Environment data

  • VS Code version: 1.34.0
  • Extension version (available under the Extensions sidebar): 2019.4.12954
  • OS and version: Windows 10 build18898
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.1
  • Relevant/affected Python packages and their versions: NumPy

Expected behaviour

When evaluating a NumPy ndarray in the debug console, the \n should become a new line.

>>> import numpy as np
>>> a = np.arange(15).reshape(3, 5)
>>> a
array([[ 0,  1,  2,  3,  4],
       [ 5,  6,  7,  8,  9],
       [10, 11, 12, 13, 14]])

Actual behaviour

image

Steps to reproduce:

  1. Start a debug session
  2. Type import numpy as np
  3. Type np.random.rand(5, 5)

created time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha ee914ca77e19ccec7dff36af8d3ca1ca0da7dda9

Added comments

view details

Don Jayamanne

commit sha 1d6d589a3c805d57f16386a856c77e76da7ec77e

Take screenshots

view details

push time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha 4674a7f53b926982c92c9d93db6f9cc53b7b21a5

Change name of log file

view details

Don Jayamanne

commit sha 7f60f8742853116a43f272b99f2e9dc57c8acd30

Ignore conda

view details

Don Jayamanne

commit sha cb90b8464a053cd66b4732c2db6c335d64855a2b

Add data science tests

view details

push time in 3 days

push eventDonJayamanne/vscode-python-uitests

Don Jayamanne

commit sha 88f3d67998ce8542faadbbbd8b71b8b315699797

Misc

view details

push time in 3 days

PR opened microsoft/vscode-python

WIP

For #

<!-- 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~ -->

  • [ ] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • [ ] Title summarizes what is changing
  • [ ] Has a news entry file (remember to thank yourself!)
  • [ ] Appropriate comments and documentation strings in the code
  • [ ] Has sufficient logging.
  • [ ] Has telemetry for enhancements.
  • [ ] Unit tests & system/integration tests are added/updated
  • [ ] Test plan is updated as appropriate
  • [ ] package-lock.json has been regenerated by running npm install (if dependencies have changed)
  • [ ] The wiki is updated with any design decisions/details.
+6408 -684

0 comment

94 changed files

pr created time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha 3d962dc4a8c41c0a535cedce48dcf80e643c9df7

Changes

view details

push time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha 627aeb7c3bd0e12722aef647f4378128fc946d57

Oops

view details

push time in 3 days

push eventDonJayamanne/pythonVSCode

Kartik Raj

commit sha e8a53f2b8822a09a52a287017e74ef8856d41651

Pass parent debug session to child debug sessions using new DA API (#5581) * Implemented functionality * Updated tests * News entry * Correctly pass parent session * Code review

view details

Kartik Raj

commit sha cc4364bbe70f65c88e626e37de09287097495db4

GetRemoteLauncherCommand should wrap path to ptvsd_launcher.py in quotes (#5585) * Corrected bug and added tests * News entry * Updated tests * Code review

view details

Kartik Raj

commit sha b1eef223b8ba8c9a5f18de36202c597f443c459a

Fix extension causes high cpu load due to synchronous FS Operations (#5570) * Fix Extension causes high cpu load due to synchronous FS Operations * Code review

view details

Kartik Raj

commit sha df3ed6df19bd142a6c31f50657b80bfcd913ae9b

Corrected analysisOptions.ts bug (#5598) * Changes to analysisOptions.ts * News entry

view details

Rich Chiodo

commit sha f1deef6f3cf083e5608b91fc791d90a1edc1439a

Make sure language is used when picking kernel specs (#5628)

view details

Rich Chiodo

commit sha 2312c3e88d0331cbff1ab32e3540841ad27daa77

First steps in autocomplete (#5601) * Testing codemirror's autocomplete * Remember monacoEditor pieces * New idea for using the language client * Farther along the completion provider idea. * New idea mapped together * Closer. no more errors * Working completion * Sorting * Reverse sort kind * Getting monaco to show context menu and completion * Fix margin width * Add comment about language service * Start of completion provider * Update to use monaco types instead * New IHistoryListener idea * Fix document position * Theme support * Colorization mostly working * Move editor to standalone panel at the bottom * Fix startup of the language server * Input history working again * Fix problem with convertToOffset * Write own react monaco editor to handle update problems * Add unit test for the completion provider * Fix editing for intellisense * Adding hover support * Fix hover to work even when expanding collapsing cells. * Add suggest.css and base64 encoding of icons * Fix completion item kind * Undo less work. Not necessary * Put watermark back * Fix hover css * Fix scrolling after resizing * Add actual table to test state. * Split between jedi and language server * Fix jedi for completion * Fix remove cell and remove all to work * Fix hover to work correctly with big hack * Don't ever remove items from the document as the cells that ran are still there Only remove on restart * Make package createable * Add babel transpile for monaco-editor so tests can run * Input test in history functional working * Get test to not hang on exit * Get all history functional tests to pass * Get tests somewhat working for intellisense * Actual working intellisense test * Fix linter warnings * Fix hover mtk1 css color * Add news entry * Remove react-codemirror * Fix hygiene * Add variable to check remote * Fix default rules to support comment/string beginnings * Fix unnecessary isNull check * Make sure to cleanup after waiting for the suggestion to show up * Fix out of memory error. * Separate out the babel steps as not required for single workspace * Fix color test * Review feedback * Update incorrect block comment

view details

Eric Snow

commit sha 498279fcd421bd05892d7797a2562ac1a8a954b0

Split up pytest.py. (#5638) (for #5458) pythonFiles/testing_tools/adapter/pytest.py has gotten too big, with too many different things implemented there. This change addresses that by adding a "pytest" subpackage and splitting the code from pytest.py up into several modules under that subpackage. Note that this change is almost exclusively moving code around, adding missing docstrings, and removing superfluous comments.

view details

Rich Chiodo

commit sha c9d5c92116e5a0332805b402a6e258c9b847033e

Add support for signature help and fix some issues (#5640) * First steps in signature help * Fix signature help to actually show up by setting trigger chars * Fix CTRL+F and context menu from showing up * Fix colllapsed cells to still be a part of the intellisense * Update unit tests to match new document behavior * Add news entries * Fix functional tests

view details

Don Jayamanne

commit sha be04d16246bdc2fa674bd81f57429483b2c08fb3

Send logging output into a text file (#5639) * Initial commit * Code review fixes

view details

push time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha ed77d4def3a0c40e81d4859c3127e130c5dec3f4

Fixes

view details

push time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha 580a23145c5046a7b58a40c23cc660975f489a79

Fix merge issues

view details

push time in 3 days

push eventDonJayamanne/pythonVSCode

Don Jayamanne

commit sha f1e1e92b802f892376ae0e9a91192a07fa902cb0

Pysmoketests2 (#1501) (#1502)

view details

push time in 3 days

PR opened DonJayamanne/pythonVSCode

Pysmoketests2 (#1501)
+6569 -667

0 comment

103 changed files

pr created time in 3 days

create barnchDonJayamanne/pythonVSCode

branch : pys

created branch time in 3 days

more