Skip to content

Conversation

@zatherz
Copy link
Contributor

@zatherz zatherz commented Jul 24, 2017

Build commands which are supposed to run with the whole project will now start at the root of the current open directory in Sublime, which allows you to put your source files e.g. in a source sub directory and still have Build with: dub compile the project.

Build commands which are supposed to run with the whole project will now
start at the root of the current open directory in Sublime, which allows
you to put your source files e.g. in a `source` sub directory and still
have `Build with: dub` compile the project.
},
{
"name": "dub",
"working_dir": "$project_path",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dub must be run from the directory containing its package file, AFAIK.
I think using @zeroows solution in this PR is more suitable due to that.

I agree with your changes for rdmd, and single file builds.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$folder points to the currently open folder. I haven't used Sublime projects before, so sorry if I'm misunderstanding something.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you create a sublime project file, you can have some settings specific for that project. Normally, the project file sits in the root of the project. So it sounds reasonable to use $project_path if found, and to use $folder otherwise, like in the other PR.

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

Successfully merging this pull request may close these issues.

2 participants