www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - List installed modules

reply Roberto <ro123 ro123.com> writes:
How do I list installed modules?

dmd --list-modules
datefmt
dateparser
std.algorithm
std.array
std.conv
std.datetime
std.digest
std.exception
std.file
std.format
std.getopt
std.json
std.math
...
Mar 10 2018
next sibling parent reply Jonathan M Davis <newsgroup.d jmdavisprog.com> writes:
On Sunday, March 11, 2018 01:04:27 Roberto via Digitalmars-d-learn wrote:
 How do I list installed modules?

 dmd --list-modules
 datefmt
 dateparser
 std.algorithm
 std.array
 std.conv
 std.datetime
 std.digest
 std.exception
 std.file
 std.format
 std.getopt
 std.json
 std.math
 ...
The compiler has no concept of installed modules any more than C/C++ has a concept of installed header files. It has paths that it looks in for modules when it's told to import them, but it doesn't know or care about any modules until they're explicitly imported. If you want to see the default import path, then look at dmd.conf and what it passes to the -I flag. Otherwise, it's a question of where dmd is run from and what additional -I flags the build process passes to dmd. - Jonathan M Davis
Mar 10 2018
parent Roberto <rob123 rob123.com> writes:
On Sunday, 11 March 2018 at 01:55:07 UTC, Jonathan M Davis wrote:
 On Sunday, March 11, 2018 01:04:27 Roberto via 
 Digitalmars-d-learn wrote:
 [...]
The compiler has no concept of installed modules any more than C/C++ has a concept of installed header files. It has paths that it looks in for modules when it's told to import them, but it doesn't know or care about any modules until they're explicitly imported. If you want to see the default import path, then look at dmd.conf and what it passes to the -I flag. Otherwise, it's a question of where dmd is run from and what additional -I flags the build process passes to dmd. - Jonathan M Davis
Thanks. I'll write an script.
Mar 10 2018
prev sibling next sibling parent reply psychoticRabbit <meagain meagain.com> writes:
On Sunday, 11 March 2018 at 01:04:27 UTC, Roberto wrote:
 How do I list installed modules?

 dmd --list-modules
 datefmt
 dateparser
 std.algorithm
 std.array
 std.conv
 std.datetime
 std.digest
 std.exception
 std.file
 std.format
 std.getopt
 std.json
 std.math
 ...
Presumably, you mean packages installed by dub, as opposed to what comes with phobos as part of the installation. If that's what you mean, then that could be an enhancment request - i.e. to have dub maintain a list of what's installed, like any good package manager should. Whether dub does that currently I do not know, as i don't use dub, or any additional packages outside of phobos.
Mar 10 2018
parent psychoticRabbit <meagain meagain.com> writes:
On Sunday, 11 March 2018 at 03:52:19 UTC, psychoticRabbit wrote:
 Whether dub does that currently I do not know, as i don't use 
 dub, or any additional packages outside of phobos.
oh.... > dub list ;-)
Mar 10 2018
prev sibling parent psychoticRabbit <meagain meagain.com> writes:
On Sunday, 11 March 2018 at 01:04:27 UTC, Roberto wrote:
 How do I list installed modules?
or.. https://dlang.org/phobos/index.html
Mar 10 2018