Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let python lsps and debuggers access installed packages #1584

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Jan 7, 2024

  1. Let python lsps and debuggers access installed packages

    Currently, installing something like debugpy via Mason installs it to a virtual environment that does not have anything else installed. If you are using a second virtual environment, mason handles things to access installed packages in that environment.
    However, if you are using the system python, debugpy or lsps don't see any of your installed packages. For debugpy, this means you cannot run your program. This might be the case when you have packages that you almost always want installed, for example pandas.
    
    This change fixes this by transparently letting mason python packages see the system packages, assuming no other dependencies have been installed to the venv and overwritten them. I think this has no downsides for a purpose like mason - Although this is bad practise for regular python software projects, because it disguises required dependencies, in the case of Mason we don't care about required dependencies so long as they do exist.
    BlueDrink9 authored and bluedrink9 committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    1b6f69a View commit details
    Browse the repository at this point in the history
  2. Fix: venv install test

    bluedrink9 committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    9a8dba2 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. Configuration menu
    Copy the full SHA
    57c8c16 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e35cbd View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/main' into BlueDrink9/main

    * origin/main:
      tests: remove old spec (williamboman#1634)
      chore(main): release 1.10.0 (williamboman#1605)
      fix(pypi): fix variable shadowing (williamboman#1610)
      feat(pypi): attempt more python3 candidates (williamboman#1608)
      fix(golang): fix fetching package versions for packages containing subpath specifier (williamboman#1607)
      feat: don't use vim.g.python3_host_prog as a candidate for python (williamboman#1606)
      fix(ui): don't indent empty lines (williamboman#1597)
    williamboman committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    e0894c9 View commit details
    Browse the repository at this point in the history