question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conda environment no longer detected in Insider build

See original GitHub issue

VS 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:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
greazercommented, Dec 15, 2021

With the latest vsix that @karrtikr references above, I’m no longer reproing the problem. Thanks!

1reaction
karrtikrcommented, Dec 15, 2021

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Conda build environment variables not set during build
Weird. Sounds like it's failing while trying to activate the build environment. Maybe try running with verbosity turned up ( -v or -vv...
Read more >
Cannot import environment created by conda
Hello. I'm using VS 2017 preview with python support. I'm using anaconda as my default python environment. Since current anaconda has python 3.6...
Read more >
Troubleshooting — conda 22.11.1.post16+ce4e810c9 ...
Make sure that you are in the same conda environment as your package. The conda info command tells you what environment is currently...
Read more >
Conda Support - Read the Docs
Conda Support¶. Read the Docs supports Conda as an environment management tool, along with Virtualenv. Conda support is useful for people who depend...
Read more >
Get started | DataSpell Documentation - JetBrains
DataSpell is an Integrated Development Environment (IDE) that is ... If no Conda has been detected, you'll be provided with the Conda ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found