addons icon indicating copy to clipboard operation
addons copied to clipboard

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

Open eviljeff opened this issue 1 year ago • 2 comments

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

  • [X] If I have identified that the work is specific to a repository, I have removed "repository:addons-server" or "repository:addons-frontend"

┆Issue is synchronized with this Jira Task

eviljeff avatar Sep 19 '24 14:09 eviljeff

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.

diox avatar Sep 19 '24 14:09 diox

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

wagnerand avatar Sep 19 '24 14:09 wagnerand

@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?

eviljeff avatar Oct 24 '24 15:10 eviljeff