Thread overview
Could Visual D integrate dub?
Sep 22, 2019
Brett
Sep 22, 2019
rikki cattermole
Sep 24, 2019
Brett
Oct 21, 2019
Shadowblitz16
September 22, 2019
While we can make a visual project with dub(doesn't seem to work well) maybe Visual D could use dub?

The idea is that it would use dub to download packages but fix them up in to the project by simply copying them over(use dub to download them to a temp location then copy them or some other method(preferably one that can work with updating packages)). It would then create a file that imports the packages and such that can then be imported in to the project.

One of the main issues with Visual D now is that it doesn't have the ease of getting packages that dub has.  It's all manual.

If it just hijacks dub then it could have all the features... maybe extend dub to work with visual studio by getting the paths right.(the main feature is simply downloading packages and being able to update them and all the other features are not really relevant)


What I'm thinking is an "add package" that pops up a dialog, lists the already included packages, a text box for adding another by name(or ideally a list box that lets one search online like https://code.dlang.org/), and visual d does all the plumbing... which should be very little if it can be done correctly.

I can sort of achieve this by using dub to create a project and then copying over the files manually but it is a pain to manage it all. Ideally we could add and remove packages pretty easily.


September 23, 2019
Alternatively VisualD could do what every other IDE does and supports dub as a project file (solution in VS speak).

Simple in theory.
September 24, 2019
On Sunday, 22 September 2019 at 15:33:14 UTC, rikki cattermole wrote:
> Alternatively VisualD could do what every other IDE does and supports dub as a project file (solution in VS speak).
>
> Simple in theory.

One can generate a VS/VD file in dub(or could) that somewhat works... but it requires one to still deal with dub. I do not like dub I'd rather not deal with it.

Alternatively VD could just be a simple packet manager. All it has to do is download them and unzip and add to the project dir but also have the ability to remove(probably dealing from project dir would work fine)... ideally have an interface to list, search, the repository, etc... but not necessary.
October 21, 2019
On Tuesday, 24 September 2019 at 08:03:21 UTC, Brett wrote:
> On Sunday, 22 September 2019 at 15:33:14 UTC, rikki cattermole wrote:
>> Alternatively VisualD could do what every other IDE does and supports dub as a project file (solution in VS speak).
>>
>> Simple in theory.
>
> One can generate a VS/VD file in dub(or could) that somewhat works... but it requires one to still deal with dub. I do not like dub I'd rather not deal with it.
>
> Alternatively VD could just be a simple packet manager. All it has to do is download them and unzip and add to the project dir but also have the ability to remove(probably dealing from project dir would work fine)... ideally have an interface to list, search, the repository, etc... but not necessary.


I would like this.
something simple like nuget which downloads your libaries and stores them as references kinda like what C# does.

the ability to install and uninstall packages through a gui sounds so nice.