MicrosoftDocs / intellicode

Visual Studio IntelliCode - AI-enhanced development tools. 👋Want to submit an issue to MicrosoftDocs/intellicode? If you have a bug or an idea, read the contributing guidelines before opening an issue. For FAQ's see
https://aka.ms/vsicfaq
Creative Commons Attribution 4.0 International
751 stars 69 forks source link

IntelliCode stopped working after upgrading to 1.93.1 - Python 3.12.6 #574

Open Notenlish opened 1 month ago

Notenlish commented 1 month ago

I started getting this error when I updated to vscode 1.93.1: Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output windows for details.

Product and Version VSCode 1.93.1: OS Version Windows: IntelliCode Extension Version: v1.3.1 Target Platform or Language: Python 3.12.6

VSCode about details: Version: 1.93.1 (user setup) Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 Date: 2024-09-11T17:20:05.685Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.22631

Python Extension Version: v2024.14.1

Python Logs:

2024-09-19 20:55:21.279 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-09-19 20:55:21.279 [info] Experiment 'pythonSurveyNotificationcf' is active
2024-09-19 20:55:21.279 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-09-19 20:55:21.279 [info] Experiment 'pythonTestAdapter' is active
2024-09-19 20:55:21.279 [warning] Dir "c:\Users\ihsan\npmbugsolve\wobbly-editor\.pixi\envs" is not watchable (directory does not exist)
2024-09-19 20:55:21.279 [info] Default formatter is set to charliermarsh.ruff for workspace c:\Users\ihsan\npmbugsolve\wobbly-editor
2024-09-19 20:55:21.280 [info] Python interpreter path: .\venv\Scripts\python.exe
2024-09-19 20:55:21.343 [info] > pyenv which python
2024-09-19 20:55:21.344 [info] cwd: .
2024-09-19 20:55:21.704 [info] > pixi --version
2024-09-19 20:55:21.706 [warning] could not find a pixi interpreter for the interpreter at c:\Users\ihsan\npmbugsolve\wobbly-editor\venv\Scripts\python.exe
2024-09-19 20:55:21.822 [info] > & ./venv/Scripts/Activate.ps1 ; echo 'e8b39361-0157-4923-80e1-22d70d46dee6' ; python ~/.vscode/extensions/ms-python.python-2024.14.1-win32-x64/python_files/printEnvVariables.py
2024-09-19 20:55:21.822 [info] shell: powershell
2024-09-19 20:55:23.106 [info] > ~\AppData\Local\Programs\Python\Python312\python.exe ~/.vscode/extensions/ms-python.python-2024.14.1-win32-x64/python_files/printEnvVariables.py
2024-09-19 20:55:23.107 [info] shell: powershell
2024-09-19 20:55:23.933 [info] Prepending environment variable PATH in collection with c:\Users\İhsan\.vscode\extensions\ms-python.python-2024.14.1-win32-x64\python_files\deactivate\powershell;C:\Users\ihsan\npmbugsolve\wobbly-editor\venv\Scripts; {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-19 20:55:23.933 [info] Setting environment variable VIRTUAL_ENV in collection to C:\Users\ihsan\npmbugsolve\wobbly-editor\venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-19 20:55:23.933 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-19 20:55:23.934 [info] Send text to terminal: & C:/Users/İhsan/AppData/Local/Programs/Python/Python312/python.exe c:\Users\İhsan\.vscode\extensions\ms-python.python-2024.14.1-win32-x64\python_files\printEnvVariablesToFile.py c:\Users\İhsan\.vscode\extensions\ms-python.python-2024.14.1-win32-x64\python_files\deactivate\powershell\envVars.txt
2024-09-19 20:55:24.359 [info] Starting Jedi language server for wobbly-editor.
2024-09-19 20:56:18.330 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-09-19 20:56:18.330 [info] Experiment 'pythonSurveyNotificationcf' is active
2024-09-19 20:56:18.330 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-09-19 20:56:18.330 [info] Experiment 'pythonTestAdapter' is active
2024-09-19 20:56:18.330 [warning] Dir "c:\Users\ihsan\npmbugsolve\wobbly-editor\.pixi\envs" is not watchable (directory does not exist)
2024-09-19 20:56:18.330 [info] Default formatter is set to charliermarsh.ruff for workspace c:\Users\ihsan\npmbugsolve\wobbly-editor
2024-09-19 20:56:18.330 [info] Python interpreter path: .\venv\Scripts\python.exe
2024-09-19 20:56:18.407 [info] > pyenv which python
2024-09-19 20:56:18.407 [info] cwd: .
2024-09-19 20:56:18.449 [info] > pixi --version
2024-09-19 20:56:18.450 [warning] could not find a pixi interpreter for the interpreter at c:\Users\ihsan\npmbugsolve\wobbly-editor\venv\Scripts\python.exe
2024-09-19 20:56:18.467 [info] > & ./venv/Scripts/Activate.ps1 ; echo 'e8b39361-0157-4923-80e1-22d70d46dee6' ; python ~/.vscode/extensions/ms-python.python-2024.14.1-win32-x64/python_files/printEnvVariables.py
2024-09-19 20:56:18.467 [info] shell: powershell
2024-09-19 20:56:19.355 [info] > ~\AppData\Local\Programs\Python\Python312\python.exe ~/.vscode/extensions/ms-python.python-2024.14.1-win32-x64/python_files/printEnvVariables.py
2024-09-19 20:56:19.355 [info] shell: powershell
2024-09-19 20:56:19.817 [info] Prepending environment variable PATH in collection with c:\Users\İhsan\.vscode\extensions\ms-python.python-2024.14.1-win32-x64\python_files\deactivate\powershell;C:\Users\ihsan\npmbugsolve\wobbly-editor\venv\Scripts; {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-19 20:56:19.817 [info] Setting environment variable VIRTUAL_ENV in collection to C:\Users\ihsan\npmbugsolve\wobbly-editor\venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-19 20:56:19.817 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-19 20:56:19.818 [info] Send text to terminal: & C:/Users/İhsan/AppData/Local/Programs/Python/Python312/python.exe c:\Users\İhsan\.vscode\extensions\ms-python.python-2024.14.1-win32-x64\python_files\printEnvVariablesToFile.py c:\Users\İhsan\.vscode\extensions\ms-python.python-2024.14.1-win32-x64\python_files\deactivate\powershell\envVars.txt
2024-09-19 20:56:19.952 [info] Starting Jedi language server for wobbly-editor.

Steps to Reproduce / Scenario:

  1. No idea why its even caused.
  2. The error happens at win11 at Vscode v1.93.1 with intellicode ver: 1.3.1
Notenlish commented 1 month ago

I already tried installing vscode again, doesnt work

Notenlish commented 1 month ago

Update, after like 2 vscode reinstalls I figured that I had to install jedi server

I'm currently on 1.8x(can't remember the exact version right now) and it works, albeit its an older version.