atom-build icon indicating copy to clipboard operation
atom-build copied to clipboard

Save .atom-build.json before parsing it

Open jhasse opened this issue 10 years ago • 3 comments

When I change the local .atom-build.json file I have to manually save it before building, in order for the changes to take effect.

jhasse avatar Sep 03 '15 18:09 jhasse

So what are you suggesting? Saving a file is kind of the go-to tell to "use this instead of what was there before".

noseglid avatar Sep 05 '15 21:09 noseglid

Ahh, sorry I didn't explain what I mean exactly: I have the option "save all files before build" enabled, still the old version of .atom-build.json is used when a build is triggered.

jhasse avatar Sep 05 '15 21:09 jhasse

I think this might be difficult to pull off with the current design. Right now it adds a listener everytime .atom-build.json is saved. When you press build, it will save all editors and start the build. At approximately the same time, the callback for the saved file may come in. It may happen before the build is triggered, it may happen after. The only way I can see to solve this is to make special arrangements for .atom-build.json. Might be worth it.. I have to think about it a bit.

noseglid avatar Sep 10 '15 18:09 noseglid