Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live share: Guest hang at "Executing Cell" and no output in "Python Interactive" window #2996

Closed
xiaofeng0123 opened this issue Sep 27, 2019 · 2 comments
Assignees

Comments

@xiaofeng0123
Copy link

Environment data

  • VS Code version: 1.39.0-insider
  • Extension version (available under the Extensions sidebar): python 2019.10.38574-dev
  • Live Share version: 1.0.869

Expected behaviour

Run cell successfully and the output of the cell shown on "Python Interactive" on Guest

Actual behaviour

Guest hang at "Executing Cell" and no output in "Python Interactive" window. Host works OK.
image

Steps to reproduce:

  1. Open the file manualTestFile.py in VSCode(download manualTestFile.py from https://github.com/IanMatthewHuff/vscode-python/blob/99cc5641c9d58b4059f939d015ac21f3095276b6/src/test/datascience/manualTestFiles/manualTestFile.py )
  2. On the first cell click "Run Cell"
  3. Start live share
  4. On Guest, click "Run Cell"

If you needed, please refer to below live env:
Test Machine info

Logs

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

User belongs to experiment group 'AlwaysDisplayTestExplorer - control'
User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
> conda --version
> pyenv root
> python3.7 -c "import sys;print(sys.executable)"
> python3.6 -c "import sys;print(sys.executable)"
> python3 -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> py -3.7 -c "import sys;print(sys.executable)"
> py -3.6 -c "import sys;print(sys.executable)"
> py -3 -c "import sys;print(sys.executable)"
> python2 -c "import sys;print(sys.executable)"
> py -2 -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> C:\ProgramData\Anaconda3\Scripts\conda.exe info --json
Starting Jedi Python language engine.
> ~\AppData\Local\Programs\Python\Python37\python.exe -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text c:\Users\vxiaofz\Downloads\test2\manualTestFile.py
cwd: c:\Users\vxiaofz\Downloads\test2
> ~\AppData\Local\Programs\Python\Python37\python.exe -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text c:\Users\vxiaofz\Downloads\test2\manualTestFile.py
cwd: c:\Users\vxiaofz\Downloads\test2
> C:\ProgramData\Anaconda3\Scripts\conda.exe info --json
> ~\AppData\Local\Programs\Python\Python37\python.exe -c "import sys;print(sys.prefix)"
cwd: c:\Users\vxiaofz\Downloads\test2
> ~\AppData\Local\Programs\Python\Python37\python.exe -c "import sys;print(sys.prefix)"
cwd: c:\Users\vxiaofz\Downloads\test2
> ~\AppData\Local\Programs\Python\Python37\python.exe -c "import sys;print(sys.executable)"
cwd: c:\Users\vxiaofz\Downloads\test2
> ~\AppData\Local\Programs\Python\Python37\python.exe -c "import sys;print(sys.executable)"
cwd: c:\Users\vxiaofz\Downloads\test2
> ~\AppData\Local\Programs\Python\Python37\python.exe -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: c:\Users\vxiaofz\Downloads\test2
> ~\AppData\Local\Programs\Python\Python37\python.exe -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: c:\Users\vxiaofz\Downloads\test2
> ~\AppData\Local\Programs\Python\Python37\python.exe -m site --user-site
cwd: c:\Users\vxiaofz\Downloads\test2
> ~\AppData\Local\Programs\Python\Python37\python.exe -m site --user-site
cwd: c:\Users\vxiaofz\Downloads\test2
> ~\AppData\Local\Programs\Python\Python37\python.exe completion.py
cwd: c:\Users\vxiaofz\.vscode-insiders\extensions\ms-python.python-2019.10.38574-dev\pythonFiles
> ~\AppData\Local\Programs\Python\Python37\python.exe completion.py
cwd: c:\Users\vxiaofz\.vscode-insiders\extensions\ms-python.python-2019.10.38574-dev\pythonFiles
> C:\ProgramData\Anaconda3\Scripts\conda.exe env list
> C:\ProgramData\Anaconda3\Scripts\conda.exe --version
##########Linting Output - pylint##########
> C:\ProgramData\Anaconda3\Scripts\conda.exe env list
> C:\ProgramData\Anaconda3\python.exe c:\Users\vxiaofz\.vscode-insiders\extensions\ms-python.python-2019.10.38574-dev\pythonFiles\interpreterInfo.py
> C:\ProgramData\Anaconda3\python.exe c:\Users\vxiaofz\.vscode-insiders\extensions\ms-python.python-2019.10.38574-dev\pythonFiles\interpreterInfo.py
> C:\ProgramData\Anaconda3\python.exe -m pip --version
> C:\ProgramData\Anaconda3\python.exe -c "import sys;print(sys.prefix)"
cwd: c:\Users\vxiaofz\Downloads\test2
> C:\ProgramData\Anaconda3\python.exe -c "import sys;print(sys.prefix)"
cwd: c:\Users\vxiaofz\Downloads\test2
> C:\ProgramData\Anaconda3\python.exe -c "import sys;print(sys.executable)"
cwd: c:\Users\vxiaofz\Downloads\test2
> C:\ProgramData\Anaconda3\python.exe -c "import sys;print(sys.executable)"
cwd: c:\Users\vxiaofz\Downloads\test2
> C:\ProgramData\Anaconda3\python.exe -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: c:\Users\vxiaofz\Downloads\test2
> C:\ProgramData\Anaconda3\python.exe -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: c:\Users\vxiaofz\Downloads\test2
> C:\ProgramData\Anaconda3\python.exe -m site --user-site
cwd: c:\Users\vxiaofz\Downloads\test2
> C:\ProgramData\Anaconda3\python.exe -m site --user-site
cwd: c:\Users\vxiaofz\Downloads\test2
> C:\ProgramData\Anaconda3\python.exe -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text c:\Users\vxiaofz\Downloads\test2\manualTestFile.py
cwd: c:\Users\vxiaofz\Downloads\test2
> C:\ProgramData\Anaconda3\python.exe -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text c:\Users\vxiaofz\Downloads\test2\manualTestFile.py
cwd: c:\Users\vxiaofz\Downloads\test2
> C:\ProgramData\Anaconda3\python.exe completion.py
cwd: c:\Users\vxiaofz\.vscode-insiders\extensions\ms-python.python-2019.10.38574-dev\pythonFiles
> C:\ProgramData\Anaconda3\python.exe completion.py
cwd: c:\Users\vxiaofz\.vscode-insiders\extensions\ms-python.python-2019.10.38574-dev\pythonFiles
##########Linting Output - pylint##########
> C:\ProgramData\Anaconda3\Scripts\conda.exe info --json
> C:\ProgramData\Anaconda3\Scripts\conda.exe --version
> C:\ProgramData\Anaconda3\python.exe -m jupyter notebook --version
> C:\ProgramData\Anaconda3\python.exe -m jupyter kernelspec --version
> C:\ProgramData\Anaconda3\python.exe -m jupyter kernelspec list
> C:\ProgramData\Anaconda3\python.exe -m jupyter kernelspec list
> C:\ProgramData\Anaconda3\python.exe -m jupyter notebook --no-browser --notebook-dir=C:\Users\vxiaofz\AppData\Local\Temp\f8756632-1b05-4b28-b70d-781dca75116c --config=C:\Users\vxiaofz\AppData\Local\Temp\f8756632-1b05-4b28-b70d-781dca75116c\jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> C:\ProgramData\Anaconda3\python.exe c:\Users\vxiaofz\.vscode-insiders\extensions\ms-python.python-2019.10.38574-dev\pythonFiles\datascience\getServerInfo.py
> C:\ProgramData\Anaconda3\python.exe c:\Users\vxiaofz\.vscode-insiders\extensions\ms-python.python-2019.10.38574-dev\pythonFiles\datascience\getServerInfo.py
> C:\ProgramData\Anaconda3\python.exe -m ipykernel --version
> C:\ProgramData\Anaconda3\python.exe -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text c:\Users\vxiaofz\Downloads\test2\manualTestFile.py
cwd: c:\Users\vxiaofz\Downloads\test2
> C:\ProgramData\Anaconda3\python.exe -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text c:\Users\vxiaofz\Downloads\test2\manualTestFile.py
cwd: c:\Users\vxiaofz\Downloads\test2
##########Linting Output - pylint##########
************* Module manualTestFile
81,0,error,syntax-error:invalid syntax (<unknown>, line 81)

Guest Log:

User belongs to experiment group 'AlwaysDisplayTestExplorer - control'
User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
> conda --version
> pyenv root
> python3.7 -c "import sys;print(sys.executable)"
> python3.6 -c "import sys;print(sys.executable)"
> python3 -c "import sys;print(sys.executable)"
> python2 -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> py -3.7 -c "import sys;print(sys.executable)"
> py -3.6 -c "import sys;print(sys.executable)"
> py -3 -c "import sys;print(sys.executable)"
> py -2 -c "import sys;print(sys.executable)"
> C:\ProgramData\Anaconda3\python.exe -c "import sys;print(sys.executable)"
> C:\ProgramData\Anaconda3\Scripts\conda.exe info --json
Starting Jedi Python language engine.
> C:\ProgramData\Anaconda3\Scripts\conda.exe info --json
> C:\ProgramData\Anaconda3\Scripts\conda.exe env list
> C:\ProgramData\Anaconda3\Scripts\conda.exe --version
> C:\ProgramData\Anaconda3\Scripts\conda.exe env list
@IanMatthewHuff IanMatthewHuff self-assigned this Oct 1, 2019
@IanMatthewHuff
Copy link
Member

Yeah, the basic scenarios seem to work if you connect live share and then start up the interactive window. But I can repro this issue. Since the connection happens later it seems like the "catch up" code to sync up the guest with a host that has already executed might have an issue.

@rchiodo
Copy link
Contributor

rchiodo commented Oct 7, 2019

Validated

@rchiodo rchiodo closed this as completed Oct 7, 2019
@rchiodo rchiodo self-assigned this Oct 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 14, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants