Conda environment no longer detected in Insider build
See original GitHub issueVS Code version
1.64
Extension version
v2022.0.1573923366-dev
OS type
Windows
OS version
Windows 11
Python distribution
Anaconda
Python version
3.7.10
Language server
Pylance
Expected behaviour
The conda environment myenv
is listed.
This works in stable, but not in insiders.
Actual behaviour
The myenv environment is no longer visible. Even Jim can repro this, I"m assuming everyone (Claudia, Rong) using this conda env will not see this.
Steps to reproduce
Here’s the yml file to install the conda environment https://github.com/claudiaregio/data-science/blob/main/golden_scenario_env.yml
- Install insiders
- Install Python daily
- The conda env will not be listed
- Hit refresh button it will appear, and then disappear
Logs
Experiment ‘pythonaacf’ is active Experiment ‘pythonTensorboardExperiment’ is active Experiment ‘PythonPyTorchProfiler’ is active Experiment ‘pythonDeprecatePythonPath’ is active Experiment ‘pythonRunFailedTestsButtonDisplayed’ is active Experiment ‘pythonRefreshTestsButtonDisplayed’ is active Experiment ‘pythonRememberDebugConfig’ is active [ERROR 2021-11-13 10:16:45.562]: Error: python c:\Users\donja.vscode-insiders\extensions\ms-python.python-2022.0.1565681656-dev\pythonFiles\interpreterInfo.py returned bad JSON ( C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>SET DISTUTILS_USE_SDK=1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>SET MSSdk=1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>SET “VS_VERSION=15.0”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>SET “VS_MAJOR=15”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>SET “VS_YEAR=2017”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>set “MSYS2_ARG_CONV_EXCL=/AI;/AL;/OUT;/out”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>set “MSYS2_ENV_CONV_EXCL=CL”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>set “PY_VCRUNTIME_REDIST=\bin\vcruntime140.dll”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>set “CXX=cl.exe”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>set “CC=cl.exe”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>set “VSINSTALLDIR=”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>for /F “usebackq tokens=*” %i in (vswhere.exe -nologo -products * -version [15.0,16.0) -property installationPath
) do (set "VSINSTALLDIR=%i" )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>(set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" (for /F “usebackq tokens=*” %i in (vswhere.exe -nologo -products * -requires Microsoft.VisualStudio.Component.VC.v141.x86.x64 -property installationPath
) do (set "VSINSTALLDIR=%i" ) )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional" )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community" )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise" )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>IF NOT “” == “” (
set “INCLUDE=;”
set “LIB=;”
set “CMAKE_PREFIX_PATH=;”
)
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>call :GetWin10SdkDir
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>call :GetWin10SdkDirHelper HKLM\SOFTWARE\Wow6432Node 1>nul 2>&1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE\Wow6432Node 1>nul 2>&1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if errorlevel 1 call :GetWin10SdkDirHelper HKLM\SOFTWARE 1>nul 2>&1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE 1>nul 2>&1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if errorlevel 1 exit /B 1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>exit /B 0
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>for /F %i in (‘dir /ON /B “C:\Program Files (x86)\Windows Kits\10\include\10.*”’) DO (SET WindowsSDKVer=%~i )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>(SET WindowsSDKVer=10.0.17763.0 )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if errorlevel 1 (echo “Didn’t find any windows 10 SDK. I’m not sure if things will work, but let’s try…” ) else (echo Windows SDK version found as: “10.0.17763.0” ) Windows SDK version found as: “10.0.17763.0”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>IF “win-64” == “win-64” (
set “CMAKE_GEN=Visual Studio 15 2017 Win64”
set “BITS=64”
) else (
set “CMAKE_GEN=Visual Studio 15 2017”
set “BITS=32”
)
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools>CALL “VC\Auxiliary\Build\vcvars64.bat” -vcvars_ver=14.16 10.0.17763.0
** Visual Studio 2017 Developer Command Prompt v15.0 ** Copyright © 2017 Microsoft Corporation
[vcvarsall.bat] Environment initialized for: ‘x64’ {“versionInfo”: [3, 7, 10, “final”, 0], “sysPrefix”: “C:\Users\donja\anaconda3\envs\myenv”, “sysVersion”: “3.7.10 | packaged by conda-forge | (default, Feb 19 2021, 15:37:01) [MSC v.1916 64 bit (AMD64)]”, “is64Bit”: true} ) (SyntaxError: Unexpected token C in JSON at position 2) at c:\Users\donja.vscode-insiders\extensions\ms-python.python-2022.0.1565681656-dev\out\client\extension.js:24:202705 at Object.t.getInterpreterInfo (c:\Users\donja.vscode-insiders\extensions\ms-python.python-2022.0.1565681656-dev\out\client\extension.js:93:31982) at processTicksAndRejections (internal/process/task_queues.js:93:5) at c.d [as workerFunc] (c:\Users\donja.vscode-insiders\extensions\ms-python.python-2022.0.1565681656-dev\out\client\extension.js:52:5159) at start (c:\Users\donja.vscode-insiders\extensions\ms-python.python-2022.0.1565681656-dev\out\client\extension.js:93:29649) Python interpreter path: ..venvKernel\Scripts\python.exe Starting Jedi language server. [ERROR 2021-11-13 10:16:59.512]: Error: python c:\Users\donja.vscode-insiders\extensions\ms-python.python-2022.0.1565681656-dev\pythonFiles\interpreterInfo.py returned bad JSON ( C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>SET DISTUTILS_USE_SDK=1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>SET MSSdk=1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>SET “VS_VERSION=15.0”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>SET “VS_MAJOR=15”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>SET “VS_YEAR=2017”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>set “MSYS2_ARG_CONV_EXCL=/AI;/AL;/OUT;/out”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>set “MSYS2_ENV_CONV_EXCL=CL”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>set “PY_VCRUNTIME_REDIST=\bin\vcruntime140.dll”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>set “CXX=cl.exe”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>set “CC=cl.exe”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>set “VSINSTALLDIR=”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>for /F “usebackq tokens=*” %i in (vswhere.exe -nologo -products * -version [15.0,16.0) -property installationPath
) do (set "VSINSTALLDIR=%i" )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>(set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" (for /F “usebackq tokens=*” %i in (vswhere.exe -nologo -products * -requires Microsoft.VisualStudio.Component.VC.v141.x86.x64 -property installationPath
) do (set "VSINSTALLDIR=%i" ) )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional" )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community" )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise" )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>IF NOT “” == “” (
set “INCLUDE=;”
set “LIB=;”
set “CMAKE_PREFIX_PATH=;”
)
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>call :GetWin10SdkDir
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>call :GetWin10SdkDirHelper HKLM\SOFTWARE\Wow6432Node 1>nul 2>&1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE\Wow6432Node 1>nul 2>&1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if errorlevel 1 call :GetWin10SdkDirHelper HKLM\SOFTWARE 1>nul 2>&1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE 1>nul 2>&1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if errorlevel 1 exit /B 1
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>exit /B 0
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>for /F %i in (‘dir /ON /B “C:\Program Files (x86)\Windows Kits\10\include\10.*”’) DO (SET WindowsSDKVer=%~i )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>(SET WindowsSDKVer=10.0.17763.0 )
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>if errorlevel 1 (echo “Didn’t find any windows 10 SDK. I’m not sure if things will work, but let’s try…” ) else (echo Windows SDK version found as: “10.0.17763.0” ) Windows SDK version found as: “10.0.17763.0”
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>IF “win-64” == “win-64” (
set “CMAKE_GEN=Visual Studio 15 2017 Win64”
set “BITS=64”
) else (
set “CMAKE_GEN=Visual Studio 15 2017”
set “BITS=32”
)
C:\Users\donja\AppData\Local\Programs\Microsoft VS Code Insiders>pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools>CALL “VC\Auxiliary\Build\vcvars64.bat” -vcvars_ver=14.16 10.0.17763.0
** Visual Studio 2017 Developer Command Prompt v15.0 ** Copyright © 2017 Microsoft Corporation
[vcvarsall.bat] Environment initialized for: ‘x64’ {“versionInfo”: [3, 7, 10, “final”, 0], “sysPrefix”: “C:\Users\donja\anaconda3\envs\myenv”, “sysVersion”: “3.7.10 | packaged by conda-forge | (default, Feb 19 2021, 15:37:01) [MSC v.1916 64 bit (AMD64)]”, “is64Bit”: true} ) (SyntaxError: Unexpected token C in JSON at position 2) at c:\Users\donja.vscode-insiders\extensions\ms-python.python-2022.0.1565681656-dev\out\client\extension.js:24:202705 at Object.t.getInterpreterInfo (c:\Users\donja.vscode-insiders\extensions\ms-python.python-2022.0.1565681656-dev\out\client\extension.js:93:31982) at processTicksAndRejections (internal/process/task_queues.js:93:5) at c.d [as workerFunc] (c:\Users\donja.vscode-insiders\extensions\ms-python.python-2022.0.1565681656-dev\out\client\extension.js:52:5159) at start (c:\Users\donja.vscode-insiders\extensions\ms-python.python-2022.0.1565681656-dev\out\client\extension.js:93:29649)
Code of Conduct
- I agree to follow this project’s Code of Conduct
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
With the latest vsix that @karrtikr references above, I’m no longer reproing the problem. Thanks!
Doesn’t look like you’re on the latest version of insiders extension, can you try using https://github.com/microsoft/vscode-python/suites/4665694972/artifacts/126852897?