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

--watch on projects with shared dependencies triggers only first square process #55

Open
janmartenjongerius opened this issue Jan 11, 2013 · 1 comment

Comments

@janmartenjongerius
Copy link
Contributor

When we combine a make entry and let square run multiple processes on different bundles, all but the first bundle of the bundles that share dependencies won't get triggered. E.g.

Application a.js has ../common/dep.js in a/bundle.json
Application b.js has ../common/dep.js in b/bundle.json

In the Makefile we set up:

ab.js: a.js b.js

a.js:
  square --bundle a --plugin crush --extension js --watch

b.js:
  square --bundle b --plugin crush --extension js --watch

Then we run: $ make -j2 ab.js

We see two square processes spawn, compile and watch.

Now, we change something in dep.js and save that file. What should happen is that we see two square processes get triggered, but instead we only see the square process for a.js.

@Swaagie
Copy link
Member

Swaagie commented Jan 11, 2013

this is related to the amount of jobs your are letting make spawn -j2, it should be different child processes. Since square does endless loops to wait for the next write I'm wondering if it is delegated properly to all processes, or somehow one process gets in the way of the other before it is able to trigger.

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