Workbench icon indicating copy to clipboard operation
Workbench copied to clipboard

Auto-add dependencies

Open sonnyp opened this issue 1 year ago • 2 comments

In Rust projects, since we have cargo, it's possible to install dependencies and use them from Workbench. it's very easy.

Start a project, close the window, Workbench will ask you to save it.

go in that folder and run

cargo add barecode

Reopen the project with Workbench and you'll be able to use that crate.


However as you can see the experience to add crates isn't ideal. One potential solution, instead of building a UI - is to automatically download/build dependencies by analyzing imports.

sonnyp avatar Nov 21 '23 13:11 sonnyp

I would like to support other programming languages but we don't have a dependency manager for Python/Vala/JS ATM.

sonnyp avatar Nov 21 '23 13:11 sonnyp

For JavaScript we could support

import lodash from "https://unpkg.com/[email protected]/lodash.js"

sonnyp avatar Nov 21 '23 14:11 sonnyp