sublime-text-conda icon indicating copy to clipboard operation
sublime-text-conda copied to clipboard

Request support for --prefix environments

Open Azerus13 opened this issue 5 years ago • 3 comments

HI,

I use to create conda envs using --prefix option instead of --name. So each of my projects contains their environment inside a sub-directory, as proposed here.

But there is a little drawback using --prefix instead of --name :

Conda can no longer find your environment with the --name flag. You’ll generally need to pass the --prefix flag along with the environment’s full path to find the environment.

My problem is that those --prefix environments aren't listed with "Conda: Activate Environment" inside sublime text 3. Is there a way to activate those environments ? If not, could a feature be added ?

Thanks, Thomas

Azerus13 avatar Mar 01 '20 02:03 Azerus13

I worked around the problem by using a custom sublime build like: { "cmd": ["/MyEnvPath/bin/python", "$file"], "selector": "source.python", "file_regex": "^\\s*File \"(...*?)\", line ([0-9]*)" }

Thomas D

Azerus13 avatar Mar 09 '20 19:03 Azerus13

Hi @Azerus13 thanks for letting me know. I should probably add some kind of functionality to deal with the --prefix flag so I will reopen this issue.

mandeep avatar Mar 20 '20 00:03 mandeep

Hi @mandeep thank you for looking to this issue ! Let me know if you do any progress on it :)

Azerus13 avatar Mar 20 '20 09:03 Azerus13