DUB mismatch between project structure and dub.json contents

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 10 05:56:49 PDT 2017


I have a project with the tree structure

├── knetquery
└── src
     └── knet
         ├── lectures
         ├── readers
         └── tests
├── linenoise (submodule)
├── linenoise-d (submodule)
│   ...
└── phobos-next (submodule)
     ...

and a DUB-conversion whoose `dub.json` currently contains

{
     "name": "knet",
     "description": "A knowledge database.",
     "copyright": "Copyright © 2017, Per Nordlöw",
     "authors": ["Per Nordlöw"],

     "dflags": ["-vcolumns"],
     "versions": ["VibeCustomMain"],

     "importPaths": [ "src", "linenoise-d", "phobos-next/src" ],
     "sourcePaths": [ "src", "linenoise", "linenoise-d" ],
     "sourceFiles": [ "phobos-next/src/combinations.d",
                      "phobos-next/src/dbgio.d",
                      ...
                    ]
}

but when I try to build it, it fails as

Performing "debug" build using dmd for x86_64.
knet ~master: building configuration "application"...
src/knet/traversal.d(20,8): Error: module factixs from file 
src/knet/factixs.d must be imported with 'import factixs;'
dmd failed with exit code 1.

What am I doing wrong?


More information about the Digitalmars-d-learn mailing list