www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - VisualD can't build dub generated sln

reply Rish <rishubster gmail.com> writes:
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\bi
dbc\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 ------
Nov 10 2019
parent Rainer Schuetze <r.sagitario gmx.de> writes:
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
Nov 11 2019