VisualD can't build dub generated sln

Rainer Schuetze r.sagitario at gmx.de
Mon Nov 11 18:51:48 UTC 2019



On 10/11/2019 13:37, Rish wrote:
> I created a dub project with some dependencies, build the proj with dub,
> and then tried to build with VS 2019. I get the following errors, note
> the crazy generated paths:
> 
> Building lib\BindBC_bgfx.lib...
> Error: module `dynload` is in file
> '..\..\..\..\..\..\..\..\home\rishub\.dub\packages\bindbc-bgfx-0.1.1\bindbc-bgfx\source\bindbc\bgfx\dynload.d'
> which cannot be read
> import path[0] =
> ..\..\..\..\..\..\..\..\home\rishub\.dub\packages\bindbc-bgfx-0.1.1\bindbc-bgfx\source
> 
> import path[1] =
> ..\..\..\..\..\..\..\..\home\rishub\.dub\packages\bindbc-loader-0.2.1\bindbc-loader\source
> 
> import path[2] = C:\D\dmd2\windows\bin\..\..\src\phobos
> import path[3] = C:\D\dmd2\windows\bin\..\..\src\druntime\import
> Building lib\BindBC_bgfx.lib failed!
> Details saved as
> "file://C:\Users\Rish\Documents\dev\d-hellow\.dub\obj\debug\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\bindbc-bgfx\bindbc-bgfx.buildlog.html"
> 
> ------ Build started: Project: bindbc-loader, Configuration: debug x64
> ------

Paths created by dub sometimes look like this, but I suspect that
home\rishub is wrong, should probably be Users\Rish.

Does you build the project with "dub build"?

Looks like a dub issue to me. Maybe you have some environment variable
that confuses dub (HOME?). You can report it here:
https://github.com/dlang/dub/issues


More information about the Digitalmars-d-ide mailing list