sass-brunch icon indicating copy to clipboard operation
sass-brunch copied to clipboard

Swallowing of invalid @import and hanging

Open mikebaldry opened this issue 7 years ago • 4 comments

Using brunch 2.10.8 and brunch-sass 2.10.4, I had an incorrect @import path (was ../ once too many times) and the whole compilation just hung and never finished, with the process hitting 100% cpu and staying there until killed.

I've found another report of this on brunch repo, https://github.com/brunch/brunch/issues/1419 but it was closed as the problem was reported to be in brunch-sass.

I just spent an hour or more trying to work out what was going on, so thought I'd post it here, in case the issue hasn't been reported before (I couldn't see anything similar in open issues)

Cheers

mikebaldry avatar Mar 06 '17 12:03 mikebaldry

Probably, this problem is related to progeny.

@mikebaldry could you avoid using of ../?

denysdovhan avatar Mar 06 '17 19:03 denysdovhan

possibly, but as that is a built in feature, it should work properly?

mikebaldry avatar Mar 07 '17 09:03 mikebaldry

@mikebaldry, definitely it should. I'm trying to reproduce this issue to understand what is going on here. Could you help me and create a repo?

denysdovhan avatar Mar 07 '17 09:03 denysdovhan

@denysdovhan Please check this repo https://github.com/akarpinski1/brunch-poc I have the same problem as reporter. I setup my first project with Brunch and alpha bootstrap. Wrong @import is causing build to hang forever.

akarpinski1 avatar Jun 08 '17 12:06 akarpinski1