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

Link not displayed in Python REPL #24752

Closed
DonJayamanne opened this issue Jan 28, 2025 · 3 comments
Closed

Link not displayed in Python REPL #24752

DonJayamanne opened this issue Jan 28, 2025 · 3 comments
Assignees
Labels
area-repl bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@DonJayamanne
Copy link

DonJayamanne commented Jan 28, 2025

Testing #24747

  • Install latest insiders and latest pre-release version of Python extension
  • Open a terminal & run python
  • Output is as follows, as you can see there's no link
❯ python
Python 3.12.4 (main, Aug 21 2024, 23:04:45) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Here are the logs from Python output panel

Show Logs
2025-01-28 15:18:57.631 [info] Experiment 'pythonTestAdapter' is active
2025-01-28 15:18:57.631 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-01-28 15:18:57.631 [info] Experiment 'pythonSurveyNotificationcf' is active
2025-01-28 15:18:57.631 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-01-28 15:18:57.631 [info] Native locator: Refresh started
2025-01-28 15:18:57.721 [info] > pyenv which python
2025-01-28 15:18:57.721 [info] cwd: .
2025-01-28 15:18:57.758 [info] Pyenv environment manager found at: /opt/homebrew/bin/pyenv
2025-01-28 15:18:59.411 [info] Conda environment manager found at: /Users/donjayamanne/.pyenv/versions/anaconda3-2023.03/bin/conda
2025-01-28 15:18:59.411 [info] Using conda from setting: x/Users/donjayamanne/miniforge3/bin/conda
2025-01-28 15:18:59.413 [info] Poetry environment manager found at: /Users/donjayamanne/.local/pipx/venvs/poetry/bin/poetry
2025-01-28 15:18:59.423 [info] Python interpreter path: ./.venv/bin/python
2025-01-28 15:18:59.509 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2024.23.2025012401-darwin-arm64/python_files/printEnvVariables.py
2025-01-28 15:18:59.509 [info] shell: zsh
2025-01-28 15:18:59.539 [info] Conda environment manager found at: /Users/donjayamanne/.pyenv/versions/miniforge3-4.10.1-1/bin/conda
2025-01-28 15:18:59.539 [info] Conda set to: x/Users/donjayamanne/miniforge3/bin/conda
2025-01-28 15:18:59.542 [info] Conda environment manager found at: /Users/donjayamanne/.pyenv/versions/miniconda3-latest/bin/conda
2025-01-28 15:18:59.542 [info] Conda set to: x/Users/donjayamanne/miniforge3/bin/conda
2025-01-28 15:18:59.543 [info] Conda environment manager found at: /Users/donjayamanne/.pyenv/versions/mambaforge-22.11.1-3/bin/conda
2025-01-28 15:18:59.543 [info] Conda set to: x/Users/donjayamanne/miniforge3/bin/conda
2025-01-28 15:18:59.544 [info] Conda env is --prefix environment: /Users/donjayamanne/demo/.conda
2025-01-28 15:18:59.544 [info] Conda environment manager found at: /Users/donjayamanne/miniconda3/bin/conda
2025-01-28 15:18:59.544 [info] Conda set to: x/Users/donjayamanne/miniforge3/bin/conda
2025-01-28 15:18:59.545 [info] Conda environment manager found at: /opt/homebrew/Caskroom/miniforge/base/bin/conda
2025-01-28 15:18:59.545 [info] Conda set to: x/Users/donjayamanne/miniforge3/bin/conda
2025-01-28 15:18:59.545 [info] Conda environment manager found at: /Users/donjayamanne/miniforge3/bin/conda
2025-01-28 15:18:59.545 [info] Conda set to: x/Users/donjayamanne/miniforge3/bin/conda
2025-01-28 15:18:59.546 [info] Conda environment manager found at: /opt/homebrew/anaconda3/bin/conda
2025-01-28 15:18:59.546 [info] Conda set to: x/Users/donjayamanne/miniforge3/bin/conda
2025-01-28 15:18:59.868 [info] Native locator: Refresh finished in 2831 ms
2025-01-28 15:19:00.272 [info] > /usr/local/bin/python3.10 ~/.vscode-insiders/extensions/ms-python.python-2024.23.2025012401-darwin-arm64/python_files/printEnvVariables.py
2025-01-28 15:19:00.272 [info] shell: zsh
2025-01-28 15:19:00.547 [info] Setting environment variable FOO_BAR in collection to fooBar {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-28 15:19:00.547 [info] Setting environment variable FOO in collection to bar {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-28 15:19:00.547 [info] Setting environment variable BR_X in collection to  {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-28 15:19:00.547 [info] Setting environment variable COMPONENT_PATH in collection to components {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-28 15:19:00.547 [info] Setting environment variable LIB_PATH in collection to shared {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-28 15:19:00.547 [info] Setting environment variable PYTHONPATH in collection to components/src {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-28 15:19:00.547 [info] Setting environment variable PYTHONSAFEPATH in collection to 1 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-28 15:19:00.547 [info] Prepending environment variable PATH in collection with /Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.23.2025012401-darwin-arm64/python_files/deactivate/zsh:/Users/donjayamanne/demo/.venv/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-28 15:19:00.547 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/donjayamanne/demo/.venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-28 15:19:00.547 [info] Prepending environment variable PS1 in collection with (.venv)  {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-01-28 15:19:00.547 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to (.venv)  {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-28 15:19:00.548 [info] Send text to terminal: /usr/local/bin/python3.10 /Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.23.2025012401-darwin-arm64/python_files/printEnvVariablesToFile.py /Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.23.2025012401-darwin-arm64/python_files/deactivate/zsh/envVars.txt
2025-01-28 15:19:01.890 [info] Starting Jedi language server for demo.
2025-01-28 15:19:41.601 [debug] Python API env change detected /Users/donjayamanne/demo/.venv/bin/python update

Image

Image

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jan 28, 2025
@anthonykim1
Copy link

Could you also set python.terminal.shellIntegration.enabled to true, reload and restart REPL in terminal to see if that changes anything?

@anthonykim1 anthonykim1 added area-repl bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster and removed triage-needed Needs assignment to the proper sub-team labels Jan 28, 2025
@DonJayamanne
Copy link
Author

That was already true
I think the problem we as python extension wasn’t related

@DonJayamanne
Copy link
Author

Works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-repl bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants