Comments (3)
Should be fixed in the current version. It now searches for either "source" or "src" and, if found, adds them as source and import paths. Otherwise it is necessary to manually specify "sourcePaths" and possbily "importPaths".
from dub.
Nice. I bet source and src will cover 90+% of all cases.
from dub.
Although I was just a bit surprised how many projects seem to place the sources directly in the root folder mixed with all other files (probably to make things play nice/simple when using git submodules). But automatically falling back to the root folder obviously will not be a good idea in most cases (like e.g for Pegged, where just a few D files actually belong to the library itself).
from dub.
Related Issues (20)
- nonsensical unresolvable dependencies message
- Segfault with bad `dub.sdl`
- `fatal: '--detach' cannot be used with '-b/-B/--orphan'` HOT 2
- The compiler is not setting options for the C preprocessor even though "cImportPaths" is set in dub.json.
- `dub lint` should only lint source files (excluding ignored ones) HOT 7
- feature Request: Flag for dub don't process color tokens HOT 2
- Feature Request: build static libraries concurrently HOT 4
- `dub add-local` should affect `dub run` HOT 6
- Output of dub build is different when encountering linker warnings HOT 2
- Multiline shebang is not supported HOT 3
- Build fails with DMD master HOT 2
- Build fails with ldc 1.33.0 HOT 1
- dub registry did not show the latest 1.35.0 HOT 1
- `dub build -d id` not parsed properly
- Stack traces are useless in release
- null Package pointer HOT 1
- Trying to run a library should fail fast
- `dub init` output is mangled when using Ctrl+D
- Wrong error message when doing `dub init` on an already existing package
- Dub packages that have a submodule won't work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dub.