bit icon indicating copy to clipboard operation
bit copied to clipboard

Maximum call stack size exceeded since version 14.0.0

Open constantin-v opened this issue 7 years ago • 4 comments

Expected Behavior

bit status is working well

Actual Behavior

bit status is giving "Maximum call stack size exceeded" for my component

Steps to Reproduce the Problem

  1. make sure you have bit-bin version 14.0.0
  2. clone this repo https://github.com/constantin-v/bitsrcbug
  3. npm i
  4. bit init
  5. bit add src/MyStylesComponent
  6. bit status

Specifications

  • Bit version: 14.0.0
  • Node version: 10.8.0
  • npm / yarn version: 6.2.0
  • Platform: Windows 10
  • Bit compiler (include version): n/a
  • Bit tester (include version): n/a

Comments

With version 13.0.5 everything is working fine. If you're changing the name of the file from "base.scss" to "toto.scss", bit status is working If you're changing the name of the file from "base.scss" to "_base.scss", bit status is NOT working

constantin-v avatar Feb 08 '19 17:02 constantin-v

@constantin-v , thanks for reporting the bug and for the clear steps how to reproduce.

The root cause of the issue is a bug with dependency-tree package, which doesn't clear the cache of an object. However, it introduced only with this version because we changed our CSS resolver to use that specific cache mechanism.

It's now fixed.

davidfirst avatar Feb 08 '19 22:02 davidfirst

Who ate you? Are you from glitch staff?

On Fri, Feb 8, 2019, 19:58 Constantin [email protected] wrote:

Expected Behavior

bit status is working well Actual Behavior

bit status is giving "Maximum call stack size exceeded" for my component Steps to Reproduce the Problem

  1. make sure you have bit-bin version 14.0.0
  2. clone this repo https://github.com/constantin-v/bitsrcbug
  3. npm i
  4. bit init
  5. bit add src/MyStylesComponent
  6. bit status

Specifications

  • Bit version: 14.0.0
  • Node version: 10.8.0
  • npm / yarn version: 6.2.0
  • Platform: Windows 10
  • Bit compiler (include version): n/a
  • Bit tester (include version): n/a

Comments

With version 13.0.5 everything is working fine. If you're changing the name of the file from "base.scss" to "toto.scss", bit status is working If you're changing the name of the file from "base.scss" to "_base.scss", bit status is NOT working

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/teambit/bit/issues/1431, or mute the thread https://github.com/notifications/unsubscribe-auth/Amv50Z6-0AGbrpOX5CT67IzFfkBB-9olks5vLbrggaJpZM4aw1XX .

ubarilan avatar Feb 08 '19 22:02 ubarilan

Thanks @davidfirst The fix will be available on the next release ?

constantin-v avatar Feb 09 '19 01:02 constantin-v

@constantin-v , the fix was done on bit-javascript with is a dependency of bit. I released already a new version of that repo, so if you reinstall bit-bin, you should get already the fix.

davidfirst avatar Feb 09 '19 02:02 davidfirst