Visual D wierdness
Prudence via Digitalmars-d-ide
digitalmars-d-ide at puremagic.com
Tue Sep 8 16:44:43 PDT 2015
On Monday, 7 September 2015 at 06:42:40 UTC, Rainer Schuetze
> On 06.09.2015 19:47, Prudence wrote:
>> When creating a module that is in a folder. VD does not use
>> the folder name.
>> e.g., suppose you have the folder layout X\Y\Z
>> and add to it a file called q.d. When The file is open one has
>> q;" instead of "module x.y.z.q;". The latter would be the
>> choice I suppose since I'm sure most people keep the module
>> consistent with their location(to avoid all kinds of
>> problems). (this
>> generally means if you are working on a large project there
>> are many
>> renamings that have to be done)
> That's what it's trying to do when it generates those
> additional '.' in "module .subfolder.dmodule;". Actually,
> Visual D tries to guess the package name from existing files in
> the same project folder, as well as looking in child and parent
> folders if its the first D file in the folder. It seems it
> doesn't do that if the package name in the root folder is empty.
hmm, ok. It seems to work most of the time. It might just be from
some buggy stuff that may or may not be part of VD. It's not a
big deal either way. It might be due to the fact that creating a
"new folder" doesn't actually create it, which I wasn't aware of.
I'm creating the folders manually then importing them.
Another simple request. When renaming a module, could VD
automatically rename the module name inside the file and/or
reopen the file? (renaming causes the file to close and needs to
manually be reopened)
More information about the Digitalmars-d-ide