yazd / DKit

DKit is a package to aid developing D programs using Sublime Text 3.
62 stars 23 forks source link

"Update Project" reads package_file from user settings, not project settings #43

Open TheGag96 opened 7 years ago

TheGag96 commented 7 years ago

I made a new project with a dub.sdl file and attempted to run "Update Project" and was told "The active project does not specify the path to the DUB package file." My project file looks like this:

{
    "package_file": "$project_path/dub.sdl"
}

Yet, if I put this setting in my settings file, it starts reading from there (though the $project_path thing obviously doesn't work). Could you perhaps take a look at this? Thanks!

yazd commented 7 years ago

I have just pushed a commit to allow relative paths for package_file, and fixed some things related to Update Project.

Can you try having something similar to the following JSON?

{
    "settings":
    {
        "package_file": "dub.sdl"
    }
}
TheGag96 commented 7 years ago

Sorry to be a month late, but this does work. Here's what it looks like after I update my project. I assume this is what it's supposed to do?