VisualD and dub imports - module X is in 'X.d' which cannot be read

Mike Parker via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Thu Feb 19 01:57:26 PST 2015


On Tuesday, 17 February 2015 at 07:52:47 UTC, Geoff Howland wrote:
> On Monday, 16 February 2015 at 01:29:32 UTC, Geoff Howland 
> wrote:
>> Hopefully this is the right forum to use for this question, Im 
>> having a problem with VisualD and dub builds.
>>
>> I made a simple vibe.d project with Dub, it works from CLI and 
>> in VisualD.  When I add the "dyaml" package to dub.json, the 
>> CLI still works, but the VisualD compiler gives me this error 
>> "module yaml is in file 'yaml.d' which cannot be read".
>
> I solved this:  it requires "dub generate visuald" to be run 
> again.  Apparently needed after any changes to dub.json, as it 
> does not get picked up automatically.  This added the entries 
> to the VisualD project XML files, and then the module/files 
> could be found.
>
> -g

For future reference, DUB installs downloaded packages in your 
app data directory (on Windows 7, 
C:\Users\UserName\AppData\Roaming\dub\packages)


More information about the Digitalmars-d-ide mailing list