tmhedberg/SimpylFold

Folds are invalid after running formatter with ale

nkakouros opened this issue · 3 comments

I am using ale to run the black python formatter. The problem I am facing is that after back runs and the code is formatted with new lines being added and old one concatenated, the folds do not get updated but they stay the same as before the formatting took place.

I do not know if this is an issue of ale or SimpylFold, but I thought I asked here first.

Is there a way to re-calculate the folds?

Wow.. thanks for the tip!

@tmhedberg @nkakouros I have a similar problem, when saving with black, all folds are opened, and if I use zx all folds are closed.

Does it happen to you too?