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

Managing dependencies #22117

Closed
afeld opened this issue Sep 29, 2023 · 4 comments
Closed

Managing dependencies #22117

afeld opened this issue Sep 29, 2023 · 4 comments
Assignees
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@afeld
Copy link

afeld commented Sep 29, 2023

I work on a team that has standardized on using VSCode, with varying levels of comfort with the command line. We happen to use pip.

When creating an environment, the Python extension helpfully offers to install dependencies, which is great. Managing dependencies beyond that initial setup is left to the users. My attempt as a user story:

As a VSCode user working on a Python project with file for managing dependencies,
I want VSCode to help ensure my installed dependencies match what I'm supposed to have
so that I'm working with the intended packages/versions.

The dependencies file may change as a result of:

  • Being modified through the editor
  • Pulling down updates from version control
  • Switching branches

One way to go about it: when the dependencies file changes, ask the user whether they'd like their dependencies to be updated. Perhaps there could also be a setting to do this automatically.

I looked through dozens of past issues and didn't see anything that quite matched — apologies if I missed. Thanks!

@afeld afeld added the feature-request Request for new features or functionality label Sep 29, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Sep 29, 2023
@karthiknadig
Copy link
Member

I want VSCode to help ensure my installed dependencies match what I'm supposed to have
so that I'm working with the intended packages/versions.

@afeld Can you try this? There is a setting python.missingPackage.severity set it to error. And then when you open requirements.txt or pyproject.toml it should tell you if there are missing packages. We could expand that check to report version issues.

Here is what you should see:
image

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Sep 29, 2023
@karthiknadig karthiknadig self-assigned this Oct 2, 2023
Copy link

github-actions bot commented Nov 2, 2023

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

Happy Coding!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2023
@afeld
Copy link
Author

afeld commented Nov 17, 2023

Sorry for not responding sooner, I somehow missed the reply.

Yep, I upgraded to the pre-released version of the extension and am seeing the behavior you describe, thank you. Nice-to-haves would be:

Happy to open separate issues for those or whatever would be helpful.

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Nov 17, 2023
@karthiknadig
Copy link
Member

@afeld Please open separate issues.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Nov 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants