sourcegraph / scip-python

SCIP indexer for Python
Other
55 stars 25 forks source link

Failing to parse information from `pip show` #157

Open rowillia opened 3 months ago

rowillia commented 3 months ago

It appears that the pip show output parser assumes any line that doesn't contain a single : should be a file:

https://github.com/sourcegraph/scip-python/blame/3981912ea11f0ce0795706d3a54bae4c72555f02/packages/pyright-scip/src/virtualenv/PythonPackage.ts#L21-L34

This breaks, for example, on the Home Page line:

$ pip show cattrs
Name: cattrs
Version: 23.1.2
Summary: Composable complex class support for attrs and dataclasses.
Home-page: https://github.com/python-attrs/cattrs
...