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

Fix build paths #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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