Thread overview
DUB: "Invalid source/import path"
May 15, 2017
Ivan Trombley
May 15, 2017
Ivan Trombley
May 18, 2017
JamesD
Nov 27, 2017
Manuel Maier
Nov 29, 2017
JamesD
May 15, 2017
If I use DWT 3.0.0 as a dependency in my dub.json then DUB reports "Invalid source/import path" for ~/.dub/packages/dwtlib-3.0.0/dwtlib/dwt/src and ~/.dub/packages/dwtlib-3.0.0/dwtlib/dwt/views.

Any ideas?

May 15, 2017
Never mind. Figured it out.
May 18, 2017
On Monday, 15 May 2017 at 06:24:12 UTC, Ivan Trombley wrote:
> Never mind. Figured it out.

I'm glad you were able to resolve the issue.
Thank you for checking out dwtlib!

November 27, 2017
On Monday, 15 May 2017 at 06:24:12 UTC, Ivan Trombley wrote:
> Never mind. Figured it out.

It would be nice to know what it was that you figured out. I just ran into the same issue building gdub (https://github.com/jasc2v8/gdub).

Invalid source/import path: C:\Users\mjmai\AppData\Roaming\dub\packages\dwtlib-3.1.1\dwtlib\dwt\src
Invalid source/import path: C:\Users\mjmai\AppData\Roaming\dub\packages\dwtlib-3.1.1\dwtlib\dwt\views

Indeed, these paths do not exist. The question is why?
November 29, 2017
On Monday, 27 November 2017 at 07:53:21 UTC, Manuel Maier wrote:
> On Monday, 15 May 2017 at 06:24:12 UTC, Ivan Trombley wrote:
>> Never mind. Figured it out.
>
> It would be nice to know what it was that you figured out. I just ran into the same issue building gdub (https://github.com/jasc2v8/gdub).
>
> Invalid source/import path: C:\Users\mjmai\AppData\Roaming\dub\packages\dwtlib-3.1.1\dwtlib\dwt\src
> Invalid source/import path: C:\Users\mjmai\AppData\Roaming\dub\packages\dwtlib-3.1.1\dwtlib\dwt\views
>
> Indeed, these paths do not exist. The question is why?

Thank you for your feedback, I updated the readme instructions for gdub to help avoid this issue for others.

The pre-requistite is to dub fetch dwtlib and build the static libraries first, then run the gdub build.bat.  See the dwtlib readme instructions at https://github.com/jasc2v8/dwtlib

The errors above are resolved after building the dwtlib static libraries, then cloning gdub and running gdub build.bat.

Note: If you don't delete gdub and start with a fresh clone, then be sure to delete the src and src_bak folders before running gdub build.bat again.