Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@zhixzhan
Copy link
Contributor

@zhixzhan zhixzhan commented Nov 26, 2020

Description

Bug introduced in #4669, root caused is a long time LG parsing. when editing common.lg, all LG files in this bot will be parse again. when the bot has many lgFiles or some of them is large. The time of re-parsing them could be seconds.
at this moment, if go to another page, composer is reading a middle state, which cause a mangled editing version in LG Editor.

Fix it by split re-parse all to another async thread.

Task Item

close #4988

Screenshots

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 55.398% when pulling a88c761 on zhixzhan/lgparse-fix into 6097da8 on main.

@boydc2014 boydc2014 merged commit bf904bb into main Nov 29, 2020
@boydc2014 boydc2014 deleted the zhixzhan/lgparse-fix branch November 29, 2020 02:32
boydc2014 pushed a commit that referenced this pull request Nov 29, 2020
* if changes happen on common.lg, async re-parse all.

* update test
benbrown pushed a commit that referenced this pull request Jun 11, 2021
* if changes happen on common.lg, async re-parse all.

* update test
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
* if changes happen on common.lg, async re-parse all.

* update test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LG Editor keeps dropping changes

4 participants