Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong module names for subpackages #458

Open
0xEAB opened this issue Jun 18, 2023 · 3 comments
Open

Wrong module names for subpackages #458

0xEAB opened this issue Jun 18, 2023 · 3 comments

Comments

@0xEAB
Copy link

0xEAB commented Jun 18, 2023

Imagine the following directory structure:

- project root
|
| - dub.json
| - common
  | - myproject
    | - common
      | - path.d

And such a DUB recipe:

{
    "subPackages": [
        {
            "name": "common",
            "description": "Common library",
            "importPaths": ["common"],
            "sourcePaths": ["common"]
        }
    ]
}

code-d will generate common.myproject.common.path (instead of myproject.common.path) as name of the module.

@WebFreak001
Copy link
Member

does this happen after reloading? This should emit properly already, but I'm thinking it might occur when freshly creating subpackages, so that they aren't yet loaded as standalone projects.

@0xEAB
Copy link
Author

0xEAB commented Jun 18, 2023

Yes, it happens after reloading.

(Was thinking about mentioning this; as I’m aware that code-d doesn’t properly handle changes to the package recipe. Should have done so in the first place, sorry.)

@0xEAB
Copy link
Author

0xEAB commented Jun 18, 2023

serve-d standalone v0.8.0-beta.14
Included features: "d", "workspaces"
Built: Mon Mar 27 04:57:01 2023
with compiler LDC v2.102 on linux x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants