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

Support for multiple tree roots? #41

Closed
tylermumford opened this issue Feb 23, 2015 · 4 comments
Closed

Support for multiple tree roots? #41

tylermumford opened this issue Feb 23, 2015 · 4 comments

Comments

@tylermumford
Copy link

First of all, this is a great plugin. I really appreciate the ability to build/run a file and see the results directly below.

Currently, it only searches the first root folder in the tree-view for .atom-build.json files. I was working on a file in another root folder, with its own config file, and kept getting messages about the first root folder. Could we perhaps search only the root folder with the active file? Or is there a better solution to this?

@noseglid
Copy link
Owner

Great to hear you're enjoying it!
Could you detail and outline the structure of your project and what you want to achieve?

@tylermumford
Copy link
Author

Sure thing: Since Atom can be slow to open new windows, and I sometimes have related projects in multiple directories, I may add more than one directory to the tree view of a window:

Two root folders in sidebar, build system of the first is always executed

In this screenshot the two projects are unrelated, but you can see that there's an .atom-build.json file in the first one, (configured to just run py on the active file) that is incorrectly used when triggering atom-build on files in the second directory (the gulpfile shown).

When the order of directories in the tree view is reversed, atom-build again uses the system of the first directory, attempting to run the gulpfile even when the active file is in the second directory. I was hoping it could be adjusted to use the build system of the file currently in focus, regardless of its position in the tree view.

@noseglid
Copy link
Owner

noseglid commented Mar 3, 2015

👍

I haven't really looked into multiple tree roots yet since I don't use it myself. But what you're describing definitely needs to be addressed. Thanks for the report.

@noseglid
Copy link
Owner

noseglid commented Apr 1, 2015

This is available in the next release (0.27.0).

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

No branches or pull requests

2 participants