mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
127 stars 41 forks source link

[Task]: Fix dependency resolution in <your-favourite-ide> #15034

Open eviljeff opened 1 month ago

eviljeff commented 1 month ago

Description

Previously it was possible to have vscode (or another ide) set up so all dependencies referenced in addons-server could be resolved. This meant you could seamlessly inspect the python code for a dependency in the same way you could navigate to a file within addons-server's codebase. Most often this would be a django .py but with all the dependencies there it could be any package. This all "broke" when we stopped installing dependencies in a sub-directory in the addons-server directory (for startup efficiency)

Acceptance Criteria

  ### Milestones/checkpoints
  - [ ] A sentence describing the first milestone/checkpoint

Checks

┆Issue is synchronized with this Jira Task

diox commented 1 month ago

Ugly workaround we discussed during Office Hours: install deps in a dummy virtualenv and point vscode to that.

Alternatively we could find ways to expose the docker container deps to the host, maybe through a volume like we used to, or maybe though some vscode extension that would deal with docker.

wagnerand commented 1 month ago

I haven't tried this, but https://stackoverflow.com/a/75560548 looks promising?

eviljeff commented 2 weeks ago

@KevinMind if #15066 will fix this (in a more comprehensive way) is it worth putting any effort into getting dependency resolution to work with the current setup?