text:
Can't deploy to app on premium plan.

Every-time trying to deploy an app on premium plan(preview) getting this error. Can deploy to another app on consumption plan, the same code. I am using VSCode for deployment

Repro steps:

Action: azureFunctions.deploy
Error type: 503
Error Message: Service Unavailable
Version: 0.19.1
OS: darwin
Product: Visual Studio Code
Product Version: 1.39.2
Language: en

Call Stack
s.pipeline extension.bundle.js:323:393194
s extension.bundle.js:218:111766
s extension.bundle.js:164:25792
extension.bundle.js:164:27034
o extension.bundle.js:164:668851
extension.bundle.js:164:24705
$.t.headersOnly.t.streamedResponse.t.body.function.t.body.pipe.a [as _callback] extension.bundle.js:1:637004
$.t._callback.t.callback.t.callback extension.bundle.js:194:5590
$.emit events.js:182:13
$.<anonymous> extension.bundle.js:194:18450
$.emit events.js:187:15
IncomingMessage.<anonymous> extension.bundle.js:194:17282
Object.onceWrapper events.js:273:13
IncomingMessage.emit events.js:187:15
endReadableNT _stream_readable.js:1092:12
process._tickCallback next_tick.js:63:19

Almost the same here, but I'm trying to deploy a Python Function to Consumption Plan in West Europe.
Action: azureFunctions.deploy
Error type: BadRequest
Error Message: Encountered an error (InternalServerError) from host runtime.
Version: 0.19.1
OS: win32
Product: Visual Studio Code
Product Version: 1.39.2
Language: fr

Call Stack
a.pipeline extension.bundle.js:218:2797976
s extension.bundle.js:218:111766
s extension.bundle.js:164:25792
extension.bundle.js:164:27034extension.bundle.js:164:27034
o extension.bundle.js:164:668851
extension.bundle.js:164:24705extension.bundle.js:164:24705
$.t.headersOnly.t.streamedResponse.t.body.function.t.body.pipe.a [as _callback] extension.bundle.js:1:637004
$.t._callback.t.callback.t.callback extension.bundle.js:194:5590
$.emit events.js:182:13
$.<anonymous> extension.bundle.js:194:18450
$.emit events.js:187:15
IncomingMessage.<anonymous> extension.bundle.js:194:17282
Object.onceWrapper events.js:273:13
IncomingMessage.emit events.js:187:15
endReadableNT _stream_readable.js:1092:12
process._tickCallback next_tick.js:63:19

@anindya5 were you deploying a Linux or Windows plan? Also what language is your project?
@Guts you said you got a workaround for this issue? What exactly was the workaround? It's possible your old app got a weird configuration at some point

@Guts you said you got a workaround for this issue? What exactly was the workaround? It's possible your old app got a weird configuration at some point

I followed the other issues as I mentioned:

tried advanced deployment with OS as linux, language python. it worked.

Originally posted by @pranman11 in https://github.com/microsoft/vscode-azurefunctions/issues/1567#issuecomment-540192761

Closing as dupe of https://github.com/microsoft/vscode-azurefunctions/issues/1583

authors: EricJizbaMSFT Guts anindya5

repo: microsoft/vscode-azurefunctions


text:
Back button on select storage account does nothing

Repro Steps:

Create a JS project
Add all three durable functions (probably repros for other templates as well)
Debug
Choose "Select Storage Account" when prompted

Try to use the back button

Expected:
It works or it's not displayed
Actual:
It does nothing

Fixed in https://github.com/microsoft/vscode-azuretools/pull/688

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
line-graph and pie-chart

Is your icon request related to a problem? Please describe.
For numerical computing terminals and statistical webviews
Describe the solution you'd like
line-graph and pie-chart icon.
Sorta like these icons: https://materialdesignicons.com/tag/math
Describe alternatives you've considered
The current chart icon is only valid for box charts.

Added graph-line, graph-scatter, and pie-chart

Man those look amazing! Thanks

repo: microsoft/vscode-codicons


text:
[docker-in-docker] sudoIf the find -delete statements

Fix the docker-in-docker script to work with non-root sudoers

LGTM!

source: gharchive/pull-request

authors: Chuxel joshspicer

repo: microsoft/vscode-dev-containers


text:
chore: Reorganize README

Add telemetry part
Change related repo url

remember to add basic telemetry events, e.g. activation and commands

remember to add basic telemetry events, e.g. activation and commands

Will track this item in #889

authors: CsCherrYY Eskibear

repo: microsoft/vscode-gradle


text:
IPyKernel not installed into interpreter Python 3.8.6 64-bit

Issue Type: Feature Request
please help..
Extension version: 2020.8.109390
VS Code version: Code 1.49.0 (e790b931385d72cf5669fcefc51cdf65990efa5d, 2020-09-10T13:22:08.892Z)
OS version: Windows_NT x64 10.0.18362

@TomChan0508
Instead of using pip install ipyerkernel pelase could you:

Either activate the environment & then run python -m pip install ipykernel
Or run <fully qualified path to python executable.exe> -m pip install ipykernel

Using just plain pip install would not necesarily install into the same environment you have selected.

I have try ,but fail.
and I found the solution from https://github.com/microsoft/vscode-jupyter/issues/693#event-3986007931
reinstall pyzmq slove it

@sbwiecko @levalencia @Liehu
Please could you try the following:

Open a terminal
Activate the environemtn
Run the command python -m ipykernel --version
Try manually running python -m pip install ipykernel if you are using conda, then please use conda install ipykernel

So that was a great indication, thanks a lot. I did that:
1 - 'C:\Program Files\Python38\python.exe' -m ipykernel --version
7.18.1
2 - 'C:\Program Files\Python38\python.exe' -m pip uninstall ipykernel
Found existing installation: ipykernel 5.3.4
Uninstalling ipykernel-5.3.4

3 - 'C:\Program Files\Python38\python.exe' -m pip list
Package               Version
--------------------- ---------
ipykernel             5.3.0

4 - ???
5 - 'C:\Program Files\Python38\python.exe' -m pip uninstall ipykernel
Found existing installation: ipykernel 5.3.0
Uninstalling ipykernel-5.3.0

6 -  'C:\Program Files\Python38\python.exe' -m pip install ipykernel
Successfully installed ipykernel-5.3.4
7 - Now it works again ;-)

@TomChan0508 have you tried to install it using pip3 instead of pip using the terminal:
pip3 install ipykernel
the output was:
Requirement already satisfied: ipykernel in c:\python\python39\lib\site-packages (5.3.4)
Requirement already satisfied: tornado>=4.2 in c:\python\python39\lib\site-packages (from ipykernel) (6.1)
Requirement already satisfied: traitlets>=4.1.0 in c:\python\python39\lib\site-packages (from ipykernel) (5.0.5)
Requirement already satisfied: jupyter-client in c:\python\python39\lib\site-packages (from ipykernel) (6.1.7)
Requirement already satisfied: ipython>=5.0.0 in c:\python\python39\lib\site-packages (from ipykernel) (7.19.0)
Requirement already satisfied: ipython-genutils in c:\python\python39\lib\site-packages (from traitlets>=4.1.0->ipykernel) (0.2.0)
Requirement already satisfied: pyzmq>=13 in c:\python\python39\lib\site-packages (from jupyter-client->ipykernel) (20.0.0)
Requirement already satisfied: python-dateutil>=2.1 in c:\python\python39\lib\site-packages (from jupyter-client->ipykernel) (2.8.1)
Requirement already satisfied: jupyter-core>=4.6.0 in c:\python\python39\lib\site-packages (from jupyter-client->ipykernel) (4.7.0)
Requirement already satisfied: colorama; sys_platform == "win32" in c:\users\doctor\appdata\roaming\python\python39\site-packages (from ipython>=5.0.0->ipykernel) (0.4.4)
Requirement already satisfied: setuptools>=18.5 in c:\python\python39\lib\site-packages (from ipython>=5.0.0->ipykernel) (49.2.1)
Requirement already satisfied: jedi>=0.10 in c:\python\python39\lib\site-packages (from ipython>=5.0.0->ipykernel) (0.17.2)
Requirement already satisfied: backcall in c:\python\python39\lib\site-packages (from ipython>=5.0.0->ipykernel) (0.2.0)
Requirement already satisfied: pygments in c:\python\python39\lib\site-packages (from ipython>=5.0.0->ipykernel) (2.7.2)
Requirement already satisfied: pickleshare in c:\python\python39\lib\site-packages (from ipython>=5.0.0->ipykernel) (0.7.5)
Requirement already satisfied: decorator in c:\python\python39\lib\site-packages (from ipython>=5.0.0->ipykernel) (4.4.2)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\python\python39\lib\site-packages (from ipython>=5.0.0->ipykernel) (3.0.8)
Requirement already satisfied: six>=1.5 in c:\users\doctor\appdata\roaming\python\python39\site-packages (from python-dateutil>=2.1->jupyter-client->ipykernel) (1.15.0)
Requirement already satisfied: pywin32>=1.0; sys_platform == "win32" in c:\python\python39\lib\site-packages (from jupyter-core>=4.6.0->jupyter-client->ipykernel) (300)
Requirement already satisfied: parso<0.8.0,>=0.7.0 in c:\python\python39\lib\site-packages (from jedi>=0.10->ipython>=5.0.0->ipykernel) (0.7.1)
Requirement already satisfied: wcwidth in c:\python\python39\lib\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=5.0.0->ipykernel) (0.2.5)

So, when I run it, it works

Thanks, looks like pyzmq was either corrupted for some users or ipykernel was not installed correctly.
Closing as this has been resolved.

i`d just installed ipykernal faild errore:
Traceback (most recent call last):
File "c:\Users\Administrator.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\shell_exec.py", line 26, in
subprocess.check_call(shell_args, stdout=sys.stdout, stderr=sys.stderr)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:/Users/Administrator/AppData/Local/Programs/Python/Python37/python.exe', 'c:\Users\Administrator\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py', 'pip', 'install', '-U', 'ipykernel', '--user']' returned non-zero exit status 2.

What solved my issue using an upgraded packaged in Anaconda is:
conda uninstall pyzmq then
conda install pyzmq

I hit the same issue and forced a reinstall of ipykernel and it fixed it:
From the Terminal window in VS Code:
python -m pip install ipykernel --force

I hit the same issue and forced a reinstall of ipykernel and it fixed it:
From the Terminal window in VS Code:
python -m pip install ipykernel --force

@charris-msft, I had the same issue and your suggestion worked...Thank you...

@charris-msft, I had the same issue and your suggestion worked...Thank you...

Guys ipykernel issue , i tried all things but not working!!

I hit the same issue and forced a reinstall of ipykernel and it fixed it:
From the Terminal window in VS Code:
python -m pip install ipykernel --force

Thanks a lot, it works out for me!
Btw, I installed it directly under Command Prompt, and I noticed that I have to make sure that the installation was under the  Command Prompt WITH admin right!

@charris-msft that worked for me. Thanks a lot!

authors: ArthurZ DonJayamanne DrStarkXavier Gbhavesh007 Liehu MikeKowalski43 charris-msft heapcog jtLeo name-ohr neonbeast sbwiecko

repo: microsoft/vscode-jupyter


text:
RBL displays extra variables when running by line

Noticed this during the AML extension bug bash

Shouldn't happen anymore

authors: DavidKutu joyceerhl


text:
Always use LF instead of CRLF for *.ipynb files regardless of platform and when sending code to the kernel

Environment data

VS Code version: 1.53.0-insider (2021-01-29T05:13:48.533Z)
Jupyter Extension version (available under the Extensions sidebar): v2020.12.414227025
Python Extension version (available under the Extensions sidebar): 2021.2.518958983-dev
OS (Windows | Mac | Linux distro) and version: Windows 10
Python and/or Anaconda version: Python 3.8.5 using Anaconda
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Jupyter server running: Local

Expected behaviour
When editing a notebook, lines ending in "\n" shouldn't be modified to "\r\n"
Actual behaviour
It appears as soon as I modify the content of a cell, the editor is replacing all "\n" by "\r\n". I don't understand why, and it's causing downstream tools (e.g. nbdev/nbparse) to no longer be able to parse the .ipynb properly.
Steps to reproduce:
This seems to happen for any .ipynb file on my PC. I did a git clone of nbdev (https://github.com/fastai/nbdev/blob/master/nbs/00_export.ipynb) and ran the notebook, but chances are you only need to open a file:

download https://github.com/fastai/nbdev/blob/master/nbs/00_export.ipynb
open the file in vscode
modify a cell
do a diff on the cell.
notice that the newlines are messed up.

Logs

Output for Jupyter in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Jupyter)

User belongs to experiment group 'pythonJoinMailingListVar1'
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'NativeNotebookEditor'
> D:\Users\claforte\Anaconda3\envs\fastai\python.exe c:\Users\claforte\.vscode-insiders\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> D:\Users\claforte\Anaconda3\envs\fastai\python.exe c:\Users\claforte\.vscode-insiders\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> D:\Users\claforte\Anaconda3\envs\fastai\python.exe c:\Users\claforte\.vscode-insiders\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py jupyter kernelspec --version
> D:\Users\claforte\Anaconda3\envs\fastai\python.exe c:\Users\claforte\.vscode-insiders\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> D:\Users\claforte\Anaconda3\envs\fastai\python.exe c:\Users\claforte\.vscode-insiders\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> D:\Users\claforte\Anaconda3\envs\fastai\python.exe c:\Users\claforte\.vscode-insiders\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> D:\Users\claforte\Anaconda3\envs\tensorflow\python.exe c:\Users\claforte\.vscode-insiders\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> D:\Users\claforte\Anaconda3\envs\fastai\python.exe c:\Users\claforte\.vscode-insiders\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> D:\Users\claforte\Anaconda3\envs\fastai\python.exe c:\Users\claforte\.vscode-insiders\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Started kernel Python 3
> D:\Users\claforte\Anaconda3\envs\fastai\python.exe c:\Users\claforte\.vscode-insiders\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> D:\Users\claforte\Anaconda3\envs\fastai\python.exe c:\Users\claforte\.vscode-insiders\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> D:\Users\claforte\Anaconda3\envs\fastai\python.exe c:\Users\claforte\.vscode-insiders\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v

XXX

Hi @claforte, does toggling the following VS Code setting stop the line ending conversions? You can get to this UI with Ctrl+Shift+P to open the Command Palette, then type 'Open Settings (UI)'.

Hi @claforte, does toggling the following VS Code setting stop the line ending conversions? You can get to this UI with Ctrl+Shift+P to open the Command Palette, then type 'Open Settings (UI)'.

Hi Joyce,
It was set to auto already. I'm not sure how you want me to toggle it, but I just tried setting it to \n and modified a few code cells. It seems some code cells get stuck to \r\n no matter what files.eol value I set, while other cells are stuck at \n.

Hi Joyce,
It was set to auto already. I'm not sure how you want me to toggle it, but I just tried setting it to \n and modified a few code cells. It seems some code cells get stuck to \r\n no matter what files.eol value I set, while other cells are stuck at \n.

If you open a freshly cloned ipynb after setting the files.eol setting to your preferred setting, do the endings still get converted?
The default line ending on Windows is '\r\n' (this is most likely what you are getting with the 'auto' setting), so I believe that is what VSCode is applying to your files. I don't believe changing that setting results in existing '\r\n' being converted to the new '\n', so unfortunately I think you'd need to do a find and replace on the files that have already been converted.

If you open a freshly cloned ipynb after setting the files.eol setting to your preferred setting, do the endings still get converted?
The default line ending on Windows is '\r\n' (this is most likely what you are getting with the 'auto' setting), so I believe that is what VSCode is applying to your files. I don't believe changing that setting results in existing '\r\n' being converted to the new '\n', so unfortunately I think you'd need to do a find and replace on the files that have already been converted.

Hi Joyce, I tried what you suggested (set vscode-insiders eol to \n, manually replaced all \r\n by \n in notepad++, restarted vscode-insiders, modified a cell, saved) and it looks like no new \r\n appeared.
Still it would be great if vscode-jupyter made sure it never added \r\n at the end of code line, since Jupyter notebook, AFAIK, never uses \r\n, and a lot of tools probably assume that.
Thanks,
Christian

Hi Joyce, I tried what you suggested (set vscode-insiders eol to \n, manually replaced all \r\n by \n in notepad++, restarted vscode-insiders, modified a cell, saved) and it looks like no new \r\n appeared.
Still it would be great if vscode-jupyter made sure it never added \r\n at the end of code line, since Jupyter notebook, AFAIK, never uses \r\n, and a lot of tools probably assume that.
Thanks,
Christian

Great to hear the setting change stops the conversions.
Thank you for highlighting this. From related issues like https://github.com/jupyter/nbconvert/issues/1062 it does seem that Jupyter notebooks tend to default to LF even on Windows. The files.eol setting is contributed by VS Code,  but perhaps one solution here would be for the Jupyter extension to override the default VS Code setting specifically for ipynb files. However, I don't believe there is currently a way to control files.eol based on file type, so this may require upstream changes in VS Code. Our team will discuss this at our weekly triage meeting.

Thanks a lot for your responsiveness Joyce, I appreciate it!

However, I don't believe there is currently a way to control files.eol based on file type, so this may require upstream changes in VS Code. Our team will discuss this at our weekly triage meeting.

The Jupyter extension is responsible for writing out the contents of the file, not the user. Hence we are in full control over whether we use \n or \r\n. I don't see any need for a VS Code update here.
@joyceerhl /cc

This is honestly very annoying behavior (I mean conversion of LF to CRLF). After such a notebook uploaded to Jupyter Lab server, I start to have incorrect character typed. This is another bug of Jupyter Lab, which unfortunately destroy your DEV experience. See here:
https://github.com/jupyterlab/jupyterlab/issues/2951
(bug reproduced in latest Jupyter Lab)
So basically after editing of a notebook in VSCode you have destroyed notebook in any external server!

So basically after editing of a notebook in VSCode you have destroyed notebook in any external server!
exactly true !!!

I have used several different jupyter notebook editors. When running "jupyter notebook" on both Windows and linux based systems, the notebook output consistently uses "\n" in the double-quoted lines of each cell -- not "\r\n". The only editor that I've seen output "\r\n" is  The VS Code jupyter notebook extension.  This inconsistency causes headaches when diff'ing notebook file versions stored in git repositories.
The issue is not the same as the common problem of Windows based systems insisting upon ending text file lines with the control characters \r\n and other systems just using \n. (git has features to help cope with this, which you are probably aware.) So, in my opinion, the "File:EOL" setting in VS Code should not be used to control the line ending characters of the notebook cell double-quoted lines.  I think the simple answer is to just follow the convention of "\n" to represent line end in the double-quoted lines.

The only editor that I've seen output \r\n is the VS Code Jupyter notebook extension. This inconsistency causes headaches when diff'ing notebook file versions stored in git repositories.

Is there any way that we could prioritize resolving this bug? Destroying the diff makes it impossible to sanely understand changes to notebook files during code review -- which will be even more important as we encourage folks to use version control for their .ipynb files.

Users can configure files.eol as a temporary workaround, and we can consider fixing this in the builtin ipynb extension /cc @roblourens @DonJayamanne

Sound like somethign for debt week.
Basically we need to remove all CR from the text we get in the code cells.

This is causing problems for many Jupyter users: https://github.com/jupyterlab/jupyterlab/issues/2951
Can you please fix this?

/verified
Tried with multiple notebooks. Existing and new. All only have LF in them:

The verification doesn't appear to be testing the end-of-line representation for each line of notebook cell.  You would need to make a notebook cell with at least two lines to see this. Attached is a small notebook file with two cells each with multiple lines. (File name extension changed to txt to allow upload.) This was created using Visual Studio Code 1.60.2 with the Jupyter extension v2021.8.2041215044.  Note that the representation of all but the final cell line of each cell ends with "\r\n". This illustrates the undesired behavior.
{
 "cells": [
  {
   "cell_type": "markdown",
   "source": [
    "This is an example notebook with a markdown cell and python code cell. Each cell\r\n",
    "has multiple lines to illustrate how end-of-line is represented in the `ipynb`\r\n",
    "file for each line in a cell."
   ],
   "metadata": {}
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "source": [
    "print( \"Aardvarks are first line.\" )\r\n",
    "print( \"Badgers are next in line.\" )"
   ],
   "outputs": [],
   "metadata": {}
  }
 ],
 ...
}

endofline_test ipynb.txt

@mburghart-qualitrol my screenshot was just to show no /r in the file happened to have open. It works with multiple lines in a cell too:

I many cases the files itself looks like one line, is there a way to tell VS Code to parse it correctly?

@RoyiAvital sorry not sure what you're saying. That the json for your ipynb file has no linefeeds in it?

@rchiodo , Indeed. Any way to enforce VS Code to parse in int a multi line manner?

Any way to enforce VS Code to save it a multi line manner?

You mean your code cells all have a single line in them? What does the ipynb look like?
Cells usually have a format like so:
{
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import tensorflow as tf\n",
    "import os\n",
    "\n",
    "a,b,c = 'hihi', os, tf.__version__\n",
    "print(a, b, c)"
   ]
  },

And I believe you're saying your notebook looks like so?:
{    "cell_type": "code",   "execution_count": null,   "metadata": {},   "outputs": [],   "source": [    "import tensorflow as tf",  "import os",    "",   "a,b,c = 'hihi', os, tf.__version__",  "print(a, b, c)"   ]  },

Or does it have the \n in the source lines?

It is one liner like this:

While on VS Code it looks as expected.

@rchiodo , Can open and display it correctly.
Just when looking at the RAW file (Using text editors) it is one liner.
I wonder abut 2 things:

How did it happen? Why did VS Code saved it like that?
Is there a way to make it save again with all lines separated?

@RoyiAvital what is your version of VS Code and the jupyter extension. We might have at one time saved the file as a single line, but the code that saves a file now should write it out with linefeeds.

My version is VS Code 1.65.2 with Jupyter Extension 2022.2.103. Both are the latest stable versions.

I'm creating a new issue. This shouldn't be happening:
https://github.com/microsoft/vscode-jupyter/issues/9491

authors: DonJayamanne RoyiAvital cdeil claforte dynamicwebpaige joyceerhl mburghart-qualitrol msveshnikov orekides rchiodo


text:
Add setting (other than .env) to append PYTHONPATH to kernel process

Applies To

[X] Notebooks (.ipynb files)
[X] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
Altough launch config exists, the PYTHONPATH is not added.
"launch": {
    "configurations": [
      {
        ...
        "cwd": "${fileDirname}",
        "windows": {
          "env": {
            "PYTHONPATH": "${fileWorkspaceFolder};${env:PYTHONPATH}"
          }

I know of the solution for .env files but this does not scale for multiple projects and is a specific file only to use jupyter-vscode which is not a great thing to add to a github repo with multiple users... I wish there was a way to add it to the configurations diractly. something like:
"jupyter.PYTHONPATH": "${fileWorkspaceFolder};${env:PYTHONPATH}"

Thanks for the great work :)
VS Code Version
latest
Jupyter Extension Version
latest
Jupyter logs
No response
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
No response

thanks for filling this issue, however i don't quite understand the feature. request here.

are saying that the PYTHONPATH in launch. json config is not used in jupyter?
if so, is this issue specific to interactive window or notebook or both
does the issue relate to debugging or regular execution of cells?

are saying that the PYTHONPATH in launch. json config is not used in jupyter?

Yes.

if so, is this issue specific to interactive window or notebook or both

Both

does the issue relate to debugging or regular execution of cells?

Both

please note, when adding PYTHONPATH in . env files you can also use relative paths. would that address your requirements?

I wish to avoid the use of .env alltogether. Specifically your solution is only valid for vscode so this can be problematic to add to projects.

don't quite understand this. today the current working directory is already in the current path.

The example I've added was just a dummy example. for a more complex project where you wish to add other directories to the PYTHONPATH (e.g.: ${fileWorkspaceFolder}/src) this will have a problem.

Unfortunately we haven't had enough upvotes to warrant adding such a change (feature) into the extension, hence closing this issue

sorry if this is the wrong place to ask.

Please could you for a new issue with details of the issue

I have no issue. I come from PyCharm where I can simply right-click on a folder and mark a directory as source root (i.e. add that folder to PYTHONPATH).
I have already solved editing my user settings.json but it looks more like a workaround. Any plans for a new feature to simplify this?
{
...
    "jupyter.runStartupCommands": [
        "%load_ext autoreload",
        "%autoreload 2",
        "import os, sys; sys.path.append('./src')  if os.path.isdir('./src') else ''"
        ]
}

rkaround. Any plans for a new feature to simplify this?

As mentioned, please file an issue, and if there are sufficient upvotes for such feature requestes, then we'll consider adding it.

authors: DonJayamanne YoniChechik ndricca


text:
[Feature request] Follow vscode://file/ links within the same editor window

Currently, my experience is that clicking on a vscode://file/ link renders a blank page, and opening it in an external browser opens a fresh editor window / instance. My wish would be to open the file in the same editor window (in particular, the editor might be connected to a remote server e.g. on WSL). OK if this functionality is restricted to files from the same workspace as the previewed HTML page.

I believe this behavior is in the core product instead of just with this extension. Please file it in the vscode repo's issue tracker. https://github.com/microsoft/vscode/issues

authors: andreamah lukstafi

repo: microsoft/vscode-livepreview


text:
Prevent text wrap in commits list (description view)

Issue Type: Feature Request
Would you accept PR that prevents text wrap for timestamp in commits list?
In my case it looks like this:

Which will look much better if displayed in one line

If yes - can it be applied to all timestamps on description view (comment header etc.) or only commits list?
Extension version: 2021.1.4862
VS Code version: Code - Insiders 1.53.0-insider (98106c48a07d4d07f0f71b4db9b3ff156f223339, 2021-01-01T05:22:15.141Z)
OS version: Windows_NT x64 10.0.19041

Yes, would definitely accept a PR to fix this!
I think it would make sense to also apply this everywhere, but perhaps have some additional stying on the comment header to hide overflow.

Yes, would definitely accept a PR to fix this!
I think it would make sense to also apply this everywhere, but perhaps have some additional stying on the comment header to hide overflow.

authors: IllusionMH RMacfarlane

repo: microsoft/vscode-pull-request-github


text:
I keep being asked to sign in, even though it seems I'm already signed in

On Insiders on Windows:

Have both the built-in Git and GHPRI extensions enabled (I wasn't able to repro the issue with just the Git extension).
Navigate to a folder with a git repository. The folder I navigate to has a PR already checked out.
:bug: Get asked to log in, even though in the Accounts section, I'm already authenticated.
Press cancel.
:bug: Two quickpicks asking for my username and password show up.

Logs:
[2022-01-26T20:53:07.220Z] > git fetch origin test-image [111633ms]
[2022-01-26T20:53:07.220Z] remote: Repository not found.
fatal: Authentication failed for 'https://github.com/rzhao271/testworkspace3.git/'

@rzhao271 can you also share the output for GitHub Pull Request?

Yep.
[Info] Registering git provider
[Info] Looking for git repository
[Info] Found 0 repositories during activation
[Info] Git repository found, initializing review manager and pr tree view.
[Info] Repository file:///c%3A/Users/raymondzhao/work/emmet-work/testworkspace3 has been opened
[Info] Review> Validate state in progress
[Info] Review> Validating state...
[Info] Cannot updates repositories as git is uninitialized
[Info] Git initialization state changed: state=initialized
[Info] Review> Queuing additional validate state
[Info] Review> Validating state...
[Info] No remotes found. The following remotes are missing: origin, upstream
[Info] No GitHub remotes found
[Info] Review> Queuing additional validate state
[Info] Repo state for file:///c%3A/Users/raymondzhao/work/emmet-work/testworkspace3 changed.
[Info] Repo file:///c%3A/Users/raymondzhao/work/emmet-work/testworkspace3 has already been setup.
[Info] Review> Validating state...
[Info] Found GitHub remote
[Info] Review> current branch test-image is associated with pull request #5
[Info] Review> Resolving pull request
[Info] Review> Fetching pull request data
[Info] Review> register comments provider
[Info] Review> display pull request status bar indicator and refresh pull request tree view.
[Info] Review> using focus mode = true.
[Info] Review> state validation silent = true.
[Info] Review> PR show should show = false.

I can also repro the issue with GHPRI disabled when I run git fetch in the terminal.
But, does that mean that GHPRI is trying once in a while to fetch information?

I'll move this issue to the main vscode repo.
I noticed when I typed in git pull into the terminal that I got sent to the web interface this time to auth, instead of having the quickpicks pop up asking for my credentials.


text:
Make activating the venv optional

My request is to have a setting that decides if when opening a terminal the virtual environment is activated or not. This makes using the Poetry workaround of adding your virtual environments folder to venv folders much better as I usually do not want to automatically use the venv and instead use the Poetry commands to interact with it.

Have you looked at the following setting? Is that sufficient?

Wow, I have no idea how I didn’t see this when I searched for Activate. Thanks!

authors: OrangutanGaming karthiknadig

repo: microsoft/vscode-python


text:
Debugger Heisenbug where integer comparison appears to fail within a specific context

Environment data

VS Code version:
Version: 1.47.2
Commit: 17299e413d5590b14ab0340ea477cdd86ff13daf
Date: 2020-07-15T18:22:15.161Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.4.0-42-generic snap

Extension version (available under the Extensions sidebar):
ms-python.python v2020.7.96456

OS and version:
LSB Version:	core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.4 LTS
Release:	18.04
Codename:	bionic

Python version (& distribution if applicable, e.g. Anaconda):
Anaconda Python 3.7.7

Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX
Python 3.7.7 64-bit ('base':conda)

Relevant/affected Python packages and their versions:
jsonpickle                    1.4.1
numpy                         1.18.1
SQLAlchemy               1.3.17

Relevant/affected Python-related VS Code extensions and their versions:
ms-python.python v2020.7.96456

Value of the python.languageServer setting:
Microsoft

Expected behaviour
When debugging the attached file and stepping into main on line 33 with no arguments, the value of len(sys.argv) is 1, so the comparison N>=2 on line 35 should be False and the debugger should step to the else statement on line 39.
Actual behaviour
The debugger steps to line 36 as if N>=2 were True. It also incorrectly steps to line 42 after comparing N>=3.
Steps to reproduce:
Debug the attached file and step into main on line 33 with no arguments, then see if the debugger steps to line 36 or 39. All settings are default with a fresh install of vscode and the python extension.
I have spent many hours trying to isolate the minimal code required to demonstrate this bug. As far as I can tell, every line of uncommented code in this file is required to demonstrate the problem. Furthermore, adding print statements before or after the bug makes it disappear.
If further evidence of this bug is needed, then please ask and I will provide a .gif.
Logs
Nothing appears in the Output panel. In the terminal, the following appears:
cd /home/ddiel ; env /home/ddiel/anaconda3/bin/python /home/ddiel/.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/lib/python/debugpy/launcher 39939 -- /home/ddiel/vscode_debuger_bug.py
1
Code
import os
import sys
import time
import random
import jsonpickle
import numpy as np
import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker

Base = declarative_base()

def MyFunction():
	pass

class MyClassA(Base):
	__tablename__ = 'tableA'
	n = sa.Column(sa.BigInteger, primary_key=True)

class MyClassB(Base):
	__tablename__ = 'tableB'
	n = sa.Column(sa.BigInteger, primary_key=True)

class MyClassC(object):
	def __init__(self):
		pass

class MyClassD(object):
	def __init__(self):
		pass

if __name__ == "__main__":
	N = len(sys.argv)  # set breakpoint here and pass no input arguments

	if N >= 2:
		arg1 = sys.argv[1]  # the debugger gets here even though N=1
		print(arg1)
	else:
		arg1 = 'MyString'

	if N >= 3:
		arg2 = int(sys.argv[2])  # the debugger gets here even though N=1
	else:
		arg2 = int(0)

	print(N)  # still N=1
	# print(arg1)  # if you print this then it changes the debugger behavior above

I couldn't readily repro it with these steps, unfortunately. It might be that there's some hidden variable at play here....
Can you check something on your repro? When you step through the program, if you have the Run view open, you should be seeing line numbers in the Call Stack section. Do they reflect the highlighted line in the editor? Or are they correct, but the editor is highlighting the wrong line?

I checked the line numbers in the Call Stack, and they are correct.
I also recorded a gif animation below.

I also updated my sqlalchemy library to the following and confirmed the same result.
SQLAlchemy                    1.3.18
Other libraries related to sqlalchemy that possibly could modify it are:
pyrqlite                      HEAD
sqlalchemy-rqlite             HEAD
And, just in case it is helpful, here is the full output of 'pip list':

Click to expand!
absl-py                       0.9.0
actionlib                     1.12.0
anaconda-client               1.7.2
anaconda-navigator            1.9.12
angles                        1.9.12
appdirs                       1.4.3
arviz                         0.7.0
astor                         0.8.1
astroid                       2.3.3
astropy                       4.0
attrs                         19.3.0
Automat                       20.2.0
autopep8                      1.5
autosub                       0.3.12
Babel                         2.8.0
backcall                      0.2.0
backports.functools-lru-cache 1.6.1
backports.tempfile            1.0
backports.weakref             1.0.post1
beautifulsoup4                4.9.1
bleach                        3.1.5
bokeh                         1.4.0
bondpy                        1.8.5
brotlipy                      0.7.0
cachetools                    4.0.0
camera-calibration            1.15.0
camera-calibration-parsers    1.11.13
catkin                        0.7.26
catkin-pkg                    0.4.16
certifi                       2020.6.20
cffi                          1.14.0
cftime                        1.1.0
chardet                       3.0.4
click                         7.1.2
cloudpickle                   1.3.0
clyent                        1.2.2
colorama                      0.4.3
conda                         4.8.3
conda-build                   3.18.11
conda-package-handling        1.7.0
conda-verify                  3.4.2
constantly                    15.1.0
contextlib2                   0.6.0.post1
controller-manager            0.18.1
controller-manager-msgs       0.18.1
coverage                      5.0.3
cryptography                  2.9.2
cv-bridge                     1.13.0
cycler                        0.10.0
Cython                        0.29.21
dask                          2.12.0
decorator                     4.4.2
deepdiff                      4.2.0
defusedxml                    0.6.0
diagnostic-analysis           1.9.3
diagnostic-common-diagnostics 1.9.3
diagnostic-updater            1.9.3
diff-match-patch              20181111
distributed                   2.12.0
distro                        1.4.0
docutils                      0.16
dynamic-reconfigure           1.6.3
entrypoints                   0.3
enum34                        1.1.9
fastcache                     1.1.0
filelock                      3.0.12
flake8                        3.7.9
Flask                         1.1.1
Flask-Cors                    3.0.8
future                        0.18.2
gast                          0.2.2
gazebo-plugins                2.8.7
gazebo-ros                    2.8.7
gencpp                        0.6.5
geneus                        2.2.6
genlisp                       0.4.16
genmsg                        0.5.16
gennodejs                     2.0.1
genpy                         0.6.12
gevent                        1.4.0
glob2                         0.7
google-api-core               1.16.0
google-api-python-client      1.7.11
google-auth                   1.11.2
google-auth-httplib2          0.0.3
google-auth-oauthlib          0.4.1
google-cloud-texttospeech     1.0.1
google-pasta                  0.1.8
googleapis-common-protos      1.51.0
graphviz                      0.13.2
grpcio                        1.27.2
h5py                          2.10.0
helpdev                       0.6.10
httplib2                      0.17.0
hyperlink                     19.0.0
hypothesis                    5.6.0
idna                          2.10
image-geometry                1.13.0
imageio                       2.8.0
imagesize                     1.2.0
importlib-metadata            1.7.0
incremental                   17.5.0
interactive-markers           1.11.5
intervaltree                  3.0.2
ipykernel                     5.3.3
ipython                       7.16.1
ipython-genutils              0.2.0
ipywidgets                    7.5.1
isort                         4.3.21
jdcal                         1.4.1
jedi                          0.17.1
jeepney                       0.4.3
Jinja2                        2.11.2
joblib                        0.14.1
joint-state-publisher         1.12.15
json5                         0.9.5
jsonpickle                    1.4.1
jsonschema                    3.2.0
jupyter-client                6.1.6
jupyter-core                  4.6.3
jupyterlab                    2.1.5
jupyterlab-server             1.2.0
kdl-parser-py                 1.13.1
Keras                         2.3.1
Keras-Applications            1.0.8
Keras-Preprocessing           1.1.0
keras-segmentation            0.2.0
keyring                       21.1.1
kiwisolver                    1.2.0
laser-geometry                1.6.5
lazy-object-proxy             1.4.3
libarchive-c                  2.9
lief                          0.10.1
lxml                          4.5.0
Markdown                      3.2.1
MarkupSafe                    1.1.1
matplotlib                    3.2.0
message-filters               1.14.6
mistune                       0.8.4
mkl-fft                       1.0.15
mkl-random                    1.1.0
mkl-service                   2.3.0
mock                          4.0.1
more-itertools                8.2.0
mpyq                          0.2.5
msgpack                       1.0.0
msgpack-python                0.5.6
navigator-updater             0.2.1
nbconvert                     5.6.1
nbformat                      5.0.7
netCDF4                       1.5.3
nltk                          3.4.5
notebook                      6.0.3
numexpr                       2.7.1
numpy                         1.18.1
numpydoc                      0.9.2
oauthlib                      3.1.0
olefile                       0.46
openpyxl                      3.0.3
opt-einsum                    3.2.0
ordered-set                   3.1.1
packaging                     20.4
pandas                        1.0.1
pandocfilters                 1.4.2
parso                         0.7.0
partd                         1.1.0
path                          13.1.0
path.py                       12.4.0
pathlib2                      2.3.5
pathtools                     0.1.2
pbr                           5.4.4
peewee                        3.13.1
pexpect                       4.8.0
pickleshare                   0.7.5
Pillow                        7.2.0
pip                           20.1.1
pkginfo                       1.5.0.1
pluggy                        0.13.1
portpicker                    1.3.1
progressbar                   2.5
prometheus-client             0.8.0
prompt-toolkit                3.0.5
protobuf                      3.8.0
protobuf3                     0.2.1
psutil                        5.7.0
ptyprocess                    0.6.0
py                            1.8.1
pyasn1                        0.4.8
pyasn1-modules                0.2.8
pycodestyle                   2.5.0
pycosat                       0.6.3
pycparser                     2.20
pydocstyle                    5.0.2
pydot                         1.4.1
pyflakes                      2.1.1
pygame                        1.9.6
Pygments                      2.6.1
PyHamcrest                    2.0.2
pylint                        2.4.4
pymc3                         3.8
pyodbc                        4.0.30
pyOpenSSL                     19.1.0
pyparsing                     2.4.7
PyQt5                         5.12.3
PyQt5-sip                     12.7.1
PyQtWebEngine                 5.12.1
pyreadline                    2.1
pyrqlite                      HEAD
pyrsistent                    0.16.0
PySC2                         3.0.0
PySocks                       1.7.1
pysrt                         1.1.2
pytest                        5.3.5
pytest-astropy                0.8.0
pytest-astropy-header         0.1.2
pytest-cov                    2.8.1
pytest-doctestplus            0.5.0
pytest-filter-subpackage      0.1.1
pytest-openfiles              0.4.0
python-dateutil               2.8.1
python-jsonrpc-server         0.3.4
python-language-server        0.31.8
python-qt-binding             0.4.3
pytools                       2020.1
pytz                          2020.1
pyxdg                         0.26
PyYAML                        5.3.1
pyzmq                         19.0.1
QDarkStyle                    2.8
qt-dotgraph                   0.4.1
qt-gui                        0.4.1
qt-gui-cpp                    0.4.1
qt-gui-py-common              0.4.1
QtAwesome                     0.7.0
qtconsole                     4.7.1
QtPy                          1.9.0
requests                      2.24.0
requests-oauthlib             1.3.0
resource-retriever            1.12.6
rope                          0.16.0
rosbag                        1.14.3
rosboost-cfg                  1.14.9
rosclean                      1.14.9
roscreate                     1.14.9
rosdep                        0.18.0
rosdistro                     0.8.0
rosgraph                      1.14.6
roslaunch                     1.14.6
roslib                        1.14.9
roslint                       0.11.2
roslz4                        1.14.6
rosmake                       1.14.9
rosmaster                     1.14.6
rosmsg                        1.14.6
rosnode                       1.14.6
rosparam                      1.14.6
rospkg                        1.2.3
rospy                         1.14.6
rosservice                    1.14.6
rostest                       1.14.6
rostopic                      1.14.6
rosunit                       1.14.9
roswtf                        1.14.6
rqt-action                    0.4.9
rqt-bag                       0.4.12
rqt-bag-plugins               0.4.12
rqt-console                   0.4.9
rqt-dep                       0.4.9
rqt-graph                     0.4.11
rqt-gui                       0.5.2
rqt-gui-py                    0.5.2
rqt-image-view                0.4.14
rqt-launch                    0.4.8
rqt-logger-level              0.4.8
rqt-moveit                    0.5.7
rqt-msg                       0.4.8
rqt-nav-view                  0.5.7
rqt-plot                      0.4.9
rqt-pose-view                 0.5.8
rqt-publisher                 0.4.8
rqt-py-common                 0.5.2
rqt-py-console                0.4.8
rqt-reconfigure               0.5.3
rqt-robot-dashboard           0.5.7
rqt-robot-monitor             0.5.9
rqt-robot-steering            0.5.10
rqt-runtime-monitor           0.5.7
rqt-rviz                      0.6.0
rqt-service-caller            0.4.8
rqt-shell                     0.4.9
rqt-srv                       0.4.8
rqt-tf-tree                   0.6.0
rqt-top                       0.4.8
rqt-topic                     0.4.11
rqt-web                       0.4.8
rsa                           4.0
ruamel-yaml                   0.15.87
ruamel.yaml.clib              0.2.0
rviz                          1.13.13
s2clientprotocol              4.11.4.78285.0
s2protocol                    4.11.4.78285.0
scikit-image                  0.16.2
scikit-learn                  0.22.2.post1
scipy                         1.4.1
seaborn                       0.10.0
SecretStorage                 3.1.2
Send2Trash                    1.5.0
sensor-msgs                   1.12.7
service-identity              18.1.0
setuptools                    49.2.0.post20200714
six                           1.15.0
sk-video                      1.1.10
smach                         2.0.1
smach-ros                     2.0.1
smclib                        1.8.5
sortedcollections             1.1.2
soupsieve                     2.0.1
Sphinx                        2.4.4
sphinxcontrib-applehelp       1.0.2
sphinxcontrib-devhelp         1.0.2
sphinxcontrib-htmlhelp        1.0.3
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.3
sphinxcontrib-serializinghtml 1.1.4
sphinxcontrib-websupport      1.2.0
spyder                        4.0.1
spyder-kernels                1.8.1
SQLAlchemy                    1.3.18
sqlalchemy-rqlite             HEAD
sqlite-web                    0.3.6
srt                           3.0.0
statsmodels                   0.11.1
stompest                      2.3.0
tblib                         1.6.0
tensorboard                   2.1.1
tensorflow-cpu                2.1.0
tensorflow-estimator          2.1.0
termcolor                     1.1.0
terminado                     0.8.3
testpath                      0.4.4
tf                            1.12.1
tf-conversions                1.12.1
tf2-geometry-msgs             0.6.5
tf2-kdl                       0.6.5
tf2-py                        0.6.5
tf2-ros                       0.6.5
Theano                        1.0.4
topic-tools                   1.14.6
tornado                       6.0.4
tqdm                          4.47.0
traitlets                     4.3.3
Twisted                       19.10.0
typed-ast                     1.4.1
ujson                         1.35
urdfdom-py                    0.4.3
uritemplate                   3.0.1
urllib3                       1.25.9
watchdog                      0.10.2
wcwidth                       0.2.5
webencodings                  0.5.1
websocket-client              0.57.0
Werkzeug                      1.0.0
wheel                         0.34.2
whichcraft                    0.6.1
widgetsnbextension            3.5.1
wrapt                         1.12.1
wurlitzer                     2.0.0
wxPython                      4.0.4
xacro                         1.13.5
xarray                        0.15.0
XlsxWriter                    1.2.8
xmltodict                     0.12.0
yapf                          0.29.0
zict                          2.0.0
zipp                          3.1.0
zope.interface                4.7.1


text:
Can't select interpreter nor debug

I have searched for similar issues but there was no solution exhibited.
Environment data

VS Code version: 1.51.1
Extension version (available under the Extensions sidebar): 2020.6.91350
OS and version: Windows 10 Home 64 Bit
Python version: 2.7, 3.86, 3.9
Type of virtual environment used:  conda envs are also not showing

Expected behaviour
Being able to select interpreter and debug:

Actual behaviour
The extension insisting that python is not installed, even though multiple versions of it are installed

Logs

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

XXX

I have the same problem. This problem has appeared after I updated to VS Code 1.51

I have the same problem. This problem has appeared after I updated to VS Code 1.51

I've tried older versions of vscode, gave me the same problem

I've also installed conda 4.9.2 at the same time. Which version do you use? How did you create your virtual env?

@NoamYes I see you're using an older version of the extension. Can you try updating to the latest and see if it has the same problem?

@NoamYes I see you're using an older version of the extension. Can you try updating to the latest and see if it has the same problem? If that doesn't help, please provide the logs as mentioned in the issue template.

Thanks for the comment
I downgraded because it was problematic with the newer version

Can you please update the original issue with details I asked for, the extension version for which you face the issue and the logs?

Some problem with interpreter selection starts after upgrade electron to version 9.3.4. I am downgrade it to 9.3.3 and all becomes fine. OS Arch Linux

Can you please update the original issue with details I asked for, the extension version for which you face the issue and the logs?

Yes, of course, I edited the issue.

Some problem with interpreter selection starts after upgrade electron to version 9.3.4. I am downgrade it to 9.3.3 and all becomes fine. OS Arch Linux

I don't think I  have electron installed

@NoamYes The first few lines on Python output channel states which experiments you're in, which is important. Please paste the full log.

@NoamYes The first few lines on Python output channel states which experiments you're in, which is important. Please paste the full log.

Hi, I added the first lines of the output. Is it clear enough?

Ran into this issue myself today where interpreter wouldn't set after selecting my python path. Reading through the output logs for Python, I seen an error popping up because I was trying to use PyLance and it wouldn't accept it because I'm using the open source Code. It was trying to default to Jedi which I didn't have installed and I believe this was the culprit. Because I do want to use PyLance, I installed the official Microsoft build with PyLance and it started working perfectly after that.
TLDR: If you're running the open source Code (Code OSS) instead of Visual Studio Code, and you're trying to use PyLance as your language server, it will not work! Microsoft does not allow it and will break. In your settings, try changing your language server off PyLance and/or switch to the proprietary Visual Studio Code build and see if that helps. Good luck!

same problem here on Arch.
just installed electron 9.3.3 from the archive
sudo pacman -U https://archive.archlinux.org/packages/e/electron9/electron9-9.3.3-1-x86_64.pkg.tar.zst

same problem here on Arch.
just installed electron 9.3.3 from the archive
sudo pacman -U https://archive.archlinux.org/packages/e/electron9/electron9-9.3.3-1-x86_64.pkg.tar.zst

I'm running windows, any ideas what should I do?

I'm running windows, any ideas what should I do?

actually, I don't have any idea, but it may help if you install a previous version of electron as I have 3 different versions installed, and it seems like Code just selected the one it needs automatically. so give it a shot.
you may download the appropriate version from https://github.com/electron/electron/releases/tag/v9.3.3

@NoamYes Unfortunately I haven't been able to reproduce this. Can you find out version of the extension after which you started facing this issue?
It says the command
c:\\\\Users\\Noam\\AppData\\Local\\Programs\\Python\\Python38\\python.exe" "c:\\Users\\Noam\\.vscode\\extensions\\ms-python.python-2020.11.358366026\\pythonFiles\\pyvsc-run-isolated.py" "c:\\Users\\Noam\\.vscode\\extensions\\ms-python.python-2020.11.358366026\\pythonFiles\\interpreterInfo.py

is failing for you. It's because c:\\\\Users\\Noam\\AppData\\Local\\Programs\\Python\\Python38\\python.exe has double back slashes after c:. Although I'm not sure how that got there.

As for the other people in the thread, looks like it's because of the electron issue for Arch Linux users.

Closing as no info was provided.

authors: NoamYes OlehKSS aasmpro azg1966 jarethill karrtikr


text:
Use correct logic for activation of conda environments when using conda >= 4.6

TODO:

Document activation commands/scripts

Done


text:
Jupyter Notebook theme when using ssh

Bug: Notebook Editor, Interactive Window, Editor cells

When using jupyter notebook in ssh mode, the theme of jupyter notebook is not same as VS Code's theme.
Actual behavior

Expected behavior

Your Jupyter and/or Python environment
Please provide as much info as you readily know

Jupyter server running:                       Local | Remote | N/A
Extension version: 20YY.MM.#####-xxx
VS Code version:                                #.##
Setting python.jediEnabled:               true | false
Python and/or Anaconda version:     #.#.#
OS:                                                     Windows | Mac | Linux (distro):
Virtual environment:                          conda | venv | virtualenv | N/A | ...

Developer Tools Console Output

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

did this feature added into the up to date version? I am thinking about swap to Jupyter Lab..

This is still a limitation. We are waiting on VS code to give us access to themes from a remote extension.

@rchiodo Would it be possible to have the theme as a setting in the python extension. I know it seems kind of silly to have to set the same theme twice, but it would get around the unexpected visual mismatch :)

Having the setting doesn't solve the root cause of the problem. We know what theme is picked, we just can't find the theme json data.
In the %USERPROFILE%\.vscode\extensions (on windows) is where theme extensions are installed. In the remote SSH case, our extension is not installed there, but on the remote machine. We need access to this folder in order to find the theme json contents. There's is currently no way for an extension to read this directory.

@rchiodo Thanks! I tried copying the extension data from %USERPROFILE%\.vscode\extensions to the ~/.vscode/extensions on the remote host. For the first 3 seconds everything was fine, but then it switched to the default light theme.

This is still a limitation. We are waiting on VS code to give us access to themes from a remote extension.

Would it be possible to also install the theme on the remote machine?

Yes that might work. We look next to the extension for the theme, so if the extension is installed remotely, it should find the theme if you install it remotely.
However I believe there are UI vs Remote extensions. The theme may not end up on the remote machine even if you install it there.

I installed a secondary theme on my local machine, copied its folder to the remote host, and deleted the first copy of the theme extension from my end. This leaves the extension theme on the remote host only, with my main theme installed locally.
Every time I go onto a remote server with ssh I'll have to switch to the other theme. The same theme can't be used since the local copy would override the remote copy automatically :\

I can confirm this bug with the Remote - WSL extension, too. Copying the theme extensions into ~/.vscode_server/extensions does not work. Is there maybe another way to hack this?

For anybody coming here through Google: There is a beautiful new themed native notebook interface that works with SSH remote! It's in the latest insiders VS Code (at least 1.49.0) and insiders python (v2020.9.104154-dev). Right click on a notebook and select "Open in preview Notebook Editor"

If it is still a limitation, would it be possible to provide more themes on the remote machine without limitation? (eg. One Dark Pro) The default dark and light themes are really awful.

@yyNoBug you can use vscode insider or code-server . They provide many themes

For anybody coming here through Google: There is a beautiful new themed native notebook interface that works with SSH remote! It's in the latest insiders VS Code (at least 1.49.0) and insiders python (v2020.9.104154-dev). Right click on a notebook and select "Open in preview Notebook Editor"

Hello, but I can't find the variable viewer in the Insight version. Do you know where to view the variable? "show variables active in jupyter kernel"

@xlilium It's sadly not there yet (I'm currently working on it :)). There are some features of the preview editor that are not fully matched up with the old webview based editor. Our short-term goal is to fill in these missing areas in the next few releases before moving this new notebook interface out of preview.

authors: IanMatthewHuff ajasja austinmw jediyoda36 neolyo rchiodo richardso21 xlilium yeoldelloyd yyNoBug zombba


text:
TMDL extension detects error on measure names containing non-ASCII characters, not wrapped in single quotes.

I've updated to the latest version of the TMDL VS Code extension and it's detecting the following error on a measure that computes the chi-squared test statistic over the currently filtered set of data.

Because there are no spaces in the measure name, I believe that single quotes shouldn't by necessary. In any case, this is the way that Power BI Desktop serializes the TMDL file when I save as PBIP.
I suspect there is a bug with the way the TMDL VS Code extension handles non-ASCII characters.

Yep, this is a bit bothersome since many of my Measures are one word with accents (i.e. Café), which show as errors in vscode although the code is generated by PBI Desktop on saving the report.

repo: microsoft/vscode-tmdl


text:
Internet issues with VS App on Ipad

Hi I been using the vs app for a couple months now, and since I don’t have a pc. I code on my iPad Pro 2020. Now the app usually works fine it’s a bit buggy, but for the pass few days I been having a internet connection problem and my internet is fine. The app just keeps telling me to reload the window. I’ve falling behind on a lot of work because this is my only coding editor. Is it possible to fix this problem?

@sbatten the reconnection window is too aggressive

@alexdima as he handles the eventing for reconnect

@TheKingsNQueensProject Can you please describe what exact steps you are doing?

authors: TheKingsNQueensProject alexdima rebornix sbatten

repo: microsoft/vscode


text:
Like 41295, make document scroll visible

This scroll bar takes up no additional real estate when visible.  However, if you don't know where to look for it, if you aren't smart enough to hover over every pixel in the VS Code window, you end up loosing track of files under edit.  I hate clutter as much as as then next editor, but this little feature deserves to be visible when there are more tabs than space for them.  Please reconsider making this 'feature' visible when there are enough tabs to warrant its visibility.

Are you aware of "workbench.editor.titleScrollbarSizing": "large" to make that scroll bar easier to see and to grab?
#66000 asks for the visibility behaviour of all scrollbars to be configurable, and I intend to get back to the PR I opened for that.

authors: gjsjohnmurray mrmsbarnes


text:
Debug: Open Link requires access to weird stuff

Using "Debug: Open Link" asks for access to System Events, any idea why?

Open Link is just a thin wrapper around vscode.debug.startDebugging. Have you debugged Chrome recently/before on that install? Maybe just launching Chrome requires that info?

Oh, that's probably it. Haven't launched Chrome recently.


text:
Support multiple screen feature

Hello, I am using Visual Studio Code and I have multiple screens. So I wonder if it is possible to use it on multiple screens not by creating multiples instances but by splitting one instance into multiples windows.
For example, detach the file explorer on a new window or detach the debug console.
With this splitting feature, everyone would be able to custom his own disposition of every component. For example, you would be able to put your code on a full vertical screen and put the debug console and the file explorer on another screen. You can see an example below split into 3 different screens:

If you have some questions please let me know.

/duplicate
See https://github.com/microsoft/vscode/wiki/Roadmap#workbench


text:
vscode.workspace.onDidChangeTextDocument ordering changes after closing and re-opening document

If I open a document and make an edit to it, changing the document from clean to dirty, my vscode.workspace.onDidChangeTextDocument handler is called twice, once with no contentChanges and document.isDirty set to true, and then again with contentChanges and document.isDirty also set to true. This is what I would expect.
However, if I close the document and reopen it (I'm guessing your internal event handlers get re-registered?) and repeat the above, the ordering of those two events is reversed. I first get called with the contentChanges and document.isDirty false, and then immediately get called again with no contentChanges and document.isDirty true. The first event seems to be erroneously reporting the document state to be not dirty, when in fact it is (after applying the edit anyway).
Is this expected behavior? I'm guessing it's a bug and could lead to issues where extensions depend on knowing whether or not an edit made a document dirty (because edits made to files on disk when the document is clean don't result in the document becoming dirty).

Please attach a full sample and console.log printings

Extension sample (extension.ts)
'use strict';

import * as vscode from 'vscode';

export function activate(context: vscode.ExtensionContext) {
    context.subscriptions.push(vscode.workspace.onDidChangeTextDocument((e) => {
        console.log(`isDirty=${e.document.isDirty}`);
        console.log(`contentChanges=${e.contentChanges.length !== 0}`);
    }));
}

export function deactivate() {}

console.log printings
Open file
Make edit on clean file
isDirty=true
contentChanges=false
isDirty=true
contentChanges=true

Save file
isDirty=false
contentChanges=false
isDirty=false
contentChanges=false

Close file
Open file
Make edit on clean file
isDirty=false
contentChanges=true
isDirty=true
contentChanges=false

Full extension
test.zip

Ok, thanks for the steps. Took a while but this the designed behaviour because the document isn't actually closed. When closing the editor we take the freedom to keep documents arounds for a bit and only clean them up later. You can observe that with the onDidClose/onDidOpenTextDocument events. So, when a document has been kept then it already has the listener for setting the dirty flag.

Thanks! So if an extension wants to know whether or not an edit made the document dirty, they shouldn't rely on checking isDirty on the document when they get the onDidChangeTextDocument that contains the text change, but rather rely on isDirty on the last onDidChangeTextDocument?
That's a little unexpected, but seems reasonable.

authors: daytonellwanger jrieken


text:
How to get the cmd exit code run by terminal.sendText?

According to  https://github.com/microsoft/vscode/issues/97217 , the exitStatus  can get the terminal status only when the terminal exit. But how can i get the cmd exit code after running in a vscode terminal? I know it may be difficult by tracing the stdout and stderr and they are not implemented. But if there any way to get the cmd exit code only please?
Like follows, could i get the exit code of cmd without kill the terminal please? Thanks a lot.
const cmd = "ls -al ";
this._terminal.sendText(cmd);
this._terminal.show();

https://github.com/microsoft/vscode/issues/70444

As shown in https://github.com/microsoft/vscode/issues/62103 , I can only get the terminal exit code rather than the cmd exit code . Am i right?

https://github.com/microsoft/vscode/issues/47066 As shown there, the pid is the shell pid rather than the cmd pid ?


text:
Repeatedly clicking a link in Settings Editor behaves unexpectedly

Issue Type: Bug
Steps to Reproduce:

Navigate to Search > Search Editor: Default Number Of Context Lines in the settings editor
Scroll up until that option is at the bottom of the window
Click the link to Search › Search Editor: Reuse Prior Search Configuration.
You should still be able to see the link; click it again.

Repeatedly clicking the link will repeatedly apply the same scroll offset.
If the link is close to disappearing off the end of the editor window, clicking it will apply an offset in the opposite direction bringing the link back away from the edge.

Does this issue occur when all extensions are disabled?: Yes/No
Yes
VS Code version: Code - Insiders 1.53.0-insider (32b28f6f8f9dfe36efad102cc460e14a84ba756a, 2021-01-19T06:09:44.762Z)
OS version: ~Windows_NT x64~ Windows 10 Home 10.0.19042 For some reason vscode is giving the wrong OS here and in the about screen

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz (8 x 2400)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.82GB (9.57GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions: none
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
openlogontheside:30221882
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30208930
wsl2prompt:30219162
vstry244:30244315
pythonvsdeb440:30224570
unusedprompt:30219164
folderexplorer:30219166
openfilemenucf:30219169
pythonvsded773:30223139
pythonvspyt600:30247031
core-portspanel:30233467

You should still be able to see the link; click it again.

Why? The code tries to scroll the target to the same place that the source was, this seems fine to me.

You should still be able to see the link; click it again.

Why? The code tries to scroll the target to the same place that the source was, this seems fine to me.

authors: ihigg roblourens


text:
Should run submenu icons be enforced?

Testing #117259
https://user-images.githubusercontent.com/35271042/109078936-0b8dd480-76b3-11eb-9d22-2ef2549a3fbb.mov
I have a command that is contributed to the editor/title/run group that's using a rocket codicon:
{
    "icon": "$(rocket)",
    "command": "extension.helloWorld",
    "category": "Fluent",
    "title": "Hello World 1"
},

but when multiple commands are added, like the when clause, it gets transformed into the run icon (as the title tells). Should this icon name be enforced when used in the editor/title/run?

Should this icon name be enforced when used in the editor/title/run?

I don't really understand what that means? Do you always want the rocket?

What I mean is should we throw an editor error/warning when a command that’s using a non-run icon is placed in the run group? In my video you can see how odd this looks.

I see... I tend to agree but that's really hard to enforce. I could go after the codicon names (run, debug prefix) but extensions are free to use image icons and I can't know what they mean. My hope is that extension authors use this as we indented it to be used (that's maybe naive)

Closing as we have no way to determine what an icon actually shows... Tho, there is a related issue to make submenu button more different from ordinary buttons

authors: jrieken misolori


text:
Option in settings to fold blocks to one line instead of two.

When VSCode folds code the result is two lines that look something like this:
function something() { …
}
/* some comments …
*/
class somethingElse() { …
}

(note the ellipsis is my textual representation of the graphical three dots that appear in that location for folded code).
On the other hand, many IDEs fold (or have the option to fold) code up into one line that looks something like this:
function something() { … }
/* some comments … */
class somethingElse() { …
}

Or...if you like screen shots:

The one-line option obviously uses (up to) half less vertical space when everything is folded up.  Also, I find the one-line option much easier to read/follow/digest.
So I'd love it if there was a setting to choose which one we want. I imagine It would be a boolean something like "editor.foldToOneLine". Presumably its default value should be false, consistent with current behavior, but with a true option of course.
(If such a setting already exists, I'd love to know what it is -- can't find anything like it despite extensive searching).

(Or if you want to be really brave you could make it an integer for the number of lines folded code folds up into: 2 or 1 respectively for the options above, but would allow the option for code to fold up to 3 or more lines if anyone ever wanted that.  Not something I'd like personally.  The boolean will do me fine. But if you're going there maybe it's minimal extra work to provide the integer option if anyone else wants that.)

Don't know why I couldn't find it before I posted this (I did look).  It seems this is a duplicate of #3352.
For anyone else searching for this, go ahead and read all the comments in #3352, but ultimately, at least at the moment, it comes down to this (as summarized by @aeschli here and here):
This is actually two distinct issues:

Folding up to one line instead of two (or hiding the last line as well as all the in between lines, instead of just the in between lines).
Displaying the closing bracket or tag or whatever else that currently otherwise shows on the second line, at the end of the folded up line with the graphical ellipsis in between.

Outcomes on this, at least to date:

An extension exists that solves the first of those two issues (though it requires some configuration, but it works: vscode-explicit-folding).
Solving this second issue is apparently not trivial and there are no plans to implement it (or at least there wasn't when @aeschli wrote that comment in 2019).

I suppose we should close this as a duplicate of #3352, but I'll let one of you devs/admins/whatever do that, since I'm kinda new here and not entirely sure how this works, and don't want to screw anything up.

/duplicate of #3352

authors: Detnator-Neo gjsjohnmurray


text:
Terminal opens on Esc

Issue Type: Bug
For some reason when i press 'escape' key terminal opens terminal opens for some reason. This happens when i'm in editor, settings.
UPD: After switching windows it now shows warning Cannot use 'in' operator to search for 'instanceId' in 12. This also happens in explorer and settings.
VS Code version: Code - Insiders 1.56.0-insider (6449b6b7253b5808e2278903c82da8d59a230383, 2021-04-30T11:35:41.567Z)
OS version: Windows_NT x64 10.0.19042

System Info

Item
Value

CPUs
AMD Ryzen 9 3900X 12-Core Processor             (24 x 3793)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.94GB (18.25GB free)

Process Argv
--folder-uri file:///d%3A/Andrey/Programming/JS/file-manager-v2 --crash-reporter-id d481ca45-db0e-4764-b365-d74403ffe02f

Screen Reader
no

VM
67%

Extensions (28)

Extension
Author (truncated)
Version

vscode-tailwindcss
bra
0.5.10

vscode-toggle-quotes
Bri
0.3.4

turbo-console-log
Cha
2.1.6

vscode-css-modules
cli
0.2.3

bracket-pair-colorizer-2
Coe
0.2.0

vscode-eslint
dba
2.1.20

EditorConfig
Edi
0.16.4

vsc-material-theme
Equ
33.2.0

vsc-material-theme-icons
equ
1.2.2

prettier-vscode
esb
6.3.2

auto-close-tag
for
0.5.10

auto-complete-tag
for
0.1.0

auto-rename-tag
for
0.1.6

rest-client
hum
0.24.5

graphql-for-vscode
kum
1.15.3

git-graph
mhu
1.30.0

remote-containers
ms-
0.174.0

debugger-for-chrome
msj
4.12.12

angular-console
nrw
17.2.0

vscode-jest
Ort
3.2.0

vscode-versionlens
pfl
1.0.9

prisma
Pri
2.21.2

mdx
sil
0.1.0

js-jsx-snippets
sky
10.1.0

code-spell-checker
str
1.10.2

windows-terminal
Tyr
0.6.0

vscode-wakatime
Wak
5.0.1

vscode-proto3
zxh
0.5.3

(1 theme extensions excluded)

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30244315
pythonvspyt639:30291487
pythontb:30258533
vsc_aa:30263845
pythonvspyt551cf:30291413
vspre833:30267464
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscus158:30286553
pythonvsuse255:30296409
vscgsv2:30286872
vscorehovct:30295782

I suggest you check your keyboard shortcuts (aka keybindings) for one that may have been assigned to the Esc key.
See https://github.com/microsoft/vscode/wiki/Keybinding-Issues
Also, use the "Start Extension Bisect" to investigate whether one of your 28 extensions is causing the issue.

Oh, for some reason my brain decided that escape and delete key are the same... Sorry... I meant delete key. When i launched VS Code it was working fine. After some time it stopped. So i don't think that some extension affected at runtime.

Please check what keybindings you have assigned to the delete key

I rebooted and it fixed. I think that something affected normal flow of keybindings. I'm closing this issue but if it occurs again i'll reach out again.

authors: TheAsda gjsjohnmurray meganrogge


text:
Inline completion items could have an optional description

Testing #124979
I am not sure if there is a real use-case for this, but it might be useful for inline completion items to be able to set a description when shows in next/previous hover.
This could always be added later if there is no real-world demand for it right now.

Thanks for testing the API and your input!
Do you have an example for a scenario when such a description would be helpful?

Maybe a "source" link for the inline suggestion? That way a user could see the snippet in a wider context.


text:
Replace popup does not display Replace field correctly.

Issue Type: Bug
Open VS Code.
Create a foo.c text file
ensure file has multiple words
double-click a word to select it
press Control+H to bring up the replace dialog.
The find/replace dialog appears.  The selected word is in the find field.
The replace field does not read "replace" as normal.  It has a blue border and shows no text.  Just typing (after Ctrl+H), or clicking on the Replace field and typing on it does not display what you are typing.
Click outside the Replace box and the border will disappear and the content that was typed will appear.
VS Code version: Code - Insiders 1.58.0-insider (d54f7e1f6c1290fe27e2397eca509d0e0728272e, 2021-06-22T07:15:24.214Z)
OS version: Windows_NT x64 10.0.22409
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.59GB (16.51GB free)

Process Argv
--crash-reporter-id aff42cce-a2c7-43e4-8e3e-8a0af51e772e

Screen Reader
no

VM
0%

Extensions (8)

Extension
Author (truncated)
Version

markdown-mermaid
bie
1.9.2

git-graph
mhu
1.30.0

python
ms-
2021.6.944021595

vscode-pylance
ms-
2021.6.2

jupyter
ms-
2021.7.960048241

cpptools
ms-
1.5.0-insiders2

asn1vcx
OSS
1.4.1

vscode-hexdump
sle
1.8.1

A/B Experiments
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
vspor879:30202332
vspor708:30202333
vspor363:30204092
vspre833:30321513
vshan820:30294714
vscus158:30321503
vscod805:30301674

![image](https://user-images.githubusercontent.com/49081806/123026052-6b119d80-d390-11eb-8e11-7b944538efa0.png)

Duplicate of #126896

The issue was fixed in an update thanks.

authors: BradL-Msft s1ssagar yume-chan


text:
The git extension takes a long time to launch on my Windows machine

Version: 1.59.0
Commit: Unknown
Date: Unknown
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.19042

exthost-8cfb4e.zip

FWIW, I've also experienced a slowness with git when I open a folder. It takes at least 5-10s to initialize and then load. And this is on the Mac (M1). What's the best way to provide logs?

This should alleviate: https://github.com/microsoft/vscode/issues/120089
But the fact that spawn is slow on Electron/Node.JS is old old old. I'll leave that for @deepak1556

Also cc @eamodio

@tyriar please download the latest version of https://github.com/google/UIforETW/releases and follow the steps in the recording to capture an event trace. Couple of gotchas:

Make sure to change the name of the Heap-profiled processes in the settings based on the application (code.exe or code-insiders.exe or Code - OSS.exe)
If the steps to repro the issue are not reliable, you can just start the trace app and leave it running in the background. It uses circular buffers to store data, so you can save trace when the issue is encountered.
The final trace file will contain sensitive data (key logging if used in full trace mode), so please send it to Deepak.Mohan@microsoft.com instead of attaching here.

Recording: https://slack-files.com/T0HLXG4VA-F028QMM5LTX-959db0e39d

@misolori are you seeing the issue with OSS or bundled application ?

I'm seeing this on the Mac w/ our bundled application. Here's a screen recording that shows git not kicking it until about ~10s
https://user-images.githubusercontent.com/35271042/126570430-26f81a65-ada9-4633-91bb-66d4bdb1fce7.mp4

@misolori can you follow https://github.com/microsoft/vscode/wiki/Performance-Issues#profile-the-running-extensions to get a profile of the git extension.

authors: Tyriar deepak1556 joaomoreno misolori


text:
Test: terminal editors should be marked as dirty when the shell has child processes

Refs: https://github.com/microsoft/vscode/issues/127193

[x] macOS @sandy081
[ ] linux @connor4312
[ ] windows @stevencl

Complexity: 2
Authors: @Tyriar, @meganrogge
Create Issue

We want to prevent users from accidentally losing their terminals that have running processes.
Check that:

you don't see the indicator unless there's a process
you see an indicator and get prompted when closing a terminal editor with a process

Note that if you press Don't Save, the dirty indicator won't ever be shown again for that terminal.

I assume that this functionality is available only for terminals in editor.

@sandy081 yes, but you can turn it on elsewhere with the terminal.integrated.confirmOnKill setting. Updating the issue to include that.

authors: Tyriar meganrogge sandy081


text:
Notebook is not rendered if file is created through File > New File > Save as...

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.60.0-insider
OS Version: Windows 10

If you create a new file from the file explorer called "hello1.ipynb", the new notebook file is rendered as expected. However, if you do File > New File... and save the file as "hello.ipynb", it won't render it properly
Steps to Reproduce:

Open a folder
Go through File > New File... > Ctrl + S > save as "hello.ipynb"

I'd expect it to render like this (same as if I had clicked on the file icon in the file explorer)

@lramos15 I guess this code path is not reading editor override.

This sounds a lot like https://github.com/microsoft/vscode/issues/81832 which didn't really have plans around getting fixed but I understand the use case and will investigate it.
@bpasero Do you think it's best if we always call replace editors here? It's already an editor input which is why we don't see the resolver being called

@lramos15 we do call replaceEditors:
https://github.com/microsoft/vscode/blob/64081da3c8c12eddc28eaff05672fe9515e7e502/src/vs/workbench/services/editor/browser/editorService.ts#L1100-L1100
The flow is this:

all editor inputs implement save and saveAs method
they can return a different IEditorInput to signal that the editor should replace (this happens when you save untitled)
unfortunately that bypasses our override logic because the input is typed

Even if we where to change IEditorInput.save/saveAs to return IUntypedEditorInput, we would probably still have an issue because most toUntyped implementations in editors set the override so that the editor override logic is disabled too.
I guess we have to decide what to do here: you begin with a text editor and so the resulting editor after saving is a text editor too, which imho is consistent. If you really want to create an untitled notebook, I would rather suggest to use the associated command for opening an untitled notebook?
For example GitHub issues notebook provides this:

@bpasero I agree ideally users would trigger the "new notebook" command, but it's not very discoverable for new users 🤔 I think the most intuitive thing to do is to create a new file from File > New File... (or at least it's what we see new users doing the most on user studies).
I agree that if you started with a text file, keeping it as a text file is consistent. But I think that people who save a file as ipynb specifically would not expect it to be rendered as a text file, simply due to the nature and expectations of what a notebook file should look like in VS Code. But I guess special-casing it for notebooks might be tricky?

I agree and I would think we need a solution for the discoverability issue. I think https://github.com/microsoft/vscode/issues/114958 is for that.

Oh good point, https://github.com/microsoft/vscode/issues/114958 would be a great solution for this.
Closing this in favour of #114958 and https://github.com/microsoft/vscode/issues/81832.

authors: bpasero lramos15 luabud rebornix


text:
Native Notebooks - Git Merge Conflicts Breaks Notebooks

Steps to reproduce:

Create notebook
Create merge conflict
Save notebook and try to reopen in text editor

Had a quick chat with @rebornix and he believes following nbdime for this solution is a good start
https://nbdime.readthedocs.io/en/latest/cli.html#merging
https://nbdime.readthedocs.io/en/latest/merging.html

As far as I know, the ordinary git diff tools only handles plain text and not structured data (well, they do, but they are totally unaware if the result is a legitim structure).
Or maybe gron is a better tool as it handles JSON generically... jsondiff: diff JSON in Git using gron Cool json git diff command

Yeah, but for example a "simple" editor like vim can handle this :)

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

authors: VSCodeTriageBot claudiaregio gro1m