为什么 dub 看不到源文件夹?

Why dub doesn't see the source folder?

我想 运行 我的第一个配音项目。我用 dub init sandbox' 初始化项目,然后 运行 用 dub run 初始化项目。但是配音是这样说的:
Configuration 'application' of package sandbox contains no source files. Please add {"targetType": "none"} to its package description to avoid building it. Package with target type "none" must have dependencies to build.

我不明白,为什么会这样,因为我的项目中有源文件夹。这是一个项目树:

和dub.json文件:

{
    "authors": [
        "MAX_PC"
    ],
    "copyright": "Copyright © 2021, MAX_PC",
    "description": "A minimal D application.",
    "license": "proprietary",
    "name": "sandbox"
}

编辑: 这是一个完整的输出

D:\DEVELOPMENT\[ D ]>dub init sandbox
Package recipe format (sdl/json) [json]:
Name [sandbox]:
Description [A minimal D application.]:
Author name [MAX_PC]:
License [proprietary]:
Copyright string [Copyright ┬й 2021, MAX_PC]:
Add dependency (leave empty to skip) []:
Successfully created an empty project in 'D:\DEVELOPMENT\[ D ]\sandbox'.
Package successfully created in sandbox

D:\DEVELOPMENT\[ D ]>cd sandbox

D:\DEVELOPMENT\[ D ]\sandbox>dub run
Configuration 'application' of package sandbox contains no source files. Please add {"targetType": "none"} to its package description to avoid building it.
Package with target type "none" must have dependencies to build.

Dub 创建了一个名为 sandbox 的新项目子文件夹。假设您的原始项目文件夹是 myproject,那么您需要在 myproject/sandbox 处使用 dub run。您可以将内容移动到项目根文件夹或 运行 dub init 在您想要的项目位置,没有第二个参数。

问题已解决!项目路径中的空格是原因!所以,不要像我这样写路径:D:\DEVELOPMENT\[ D ]