jfrog/jfrog-vscode-extension

Not work with conda?

red8888 opened this issue · 3 comments

Describe the bug
When running a scan for a python project it says "Please install and activate a virtual environment before running Xray scan. Then, install your Python project in that environment."

To Reproduce
Follow steps in doc, but instead of pypi environment use conda environment (per vscode docs)
Get above error when trying to run a scan.

Versions

  • JFrog VS-Code extension version: v1.6.0

@red8888,
Thanks for reporting this issue.

Conda is not yet supported. We'd like to support it in the future.
For packages installed by Pip, we use pipdeptree to build and analyze the dependency tree. However, in order to support Conda, we'll probably have to use the conda-tree.

We'll keep you updated once Conda will be supported.

ok! is there any hack I can do to get it to work for now? like aliasing pipedeptree => conda-tree or something?

Unfortunately not.
The solution is not so trivial and it demands some R&D work from our side, for example:

  1. Get the activated Conda environment from the extension - in this environment, we can run the Python script that builds the tree.
  2. Find an efficient way to build the Conda dependency tree.
    etc...