conda-forge / miniforge

A conda-forge distribution.
https://conda-forge.org/miniforge
Other
5.79k stars 309 forks source link

IntelliJ Shell integration is not activating project virtualenv #481

Closed ismailsimsek closed 10 months ago

ismailsimsek commented 10 months ago

Solution to issue cannot be found in the documentation.

Issue

im using IntelliJ for python project with miniforge installed on mac with homebrew

with IntelliJ Shell integration is not activating projects virtualenv, its always activating base environment

each time i have to run conda activate myprojectvirtualenv

Installed packages

default packages

Environment info

bash-3.2$ conda info

     active environment : base
    active env location : /opt/homebrew/Caskroom/miniforge/base
            shell level : 1
       user config file : /Users/myuser/.condarc
 populated config files : /opt/homebrew/Caskroom/miniforge/base/.condarc
                          /Users/myuser/.condarc
          conda version : 23.1.0
    conda-build version : not installed
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=arm64
                          __osx=13.5=0
                          __unix=0=0
       base environment : /opt/homebrew/Caskroom/miniforge/base  (writable)
      conda av data dir : /opt/homebrew/Caskroom/miniforge/base/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /opt/homebrew/Caskroom/miniforge/base/pkgs
                          /Users/myuser/.conda/pkgs
       envs directories : /opt/homebrew/Caskroom/miniforge/base/envs
                          /Users/myuser/.conda/envs
               platform : osx-arm64
             user-agent : conda/23.1.0 requests/2.31.0 CPython/3.10.12 Darwin/22.6.0 OSX/13.5
                UID:GID : 502:20
             netrc file : None
           offline mode : False

bash-3.2$
ismailsimsek commented 10 months ago

intellij is using /opt/homebrew/bin/conda conda executable which is linked to /opt/homebrew/bin/conda -> /opt/homebrew/Caskroom/miniforge/base/condabin/conda

ismailsimsek commented 10 months ago

closing since its intelij related