Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update library and load subtree fails in plugin #222

Open
brollb opened this issue Jul 21, 2020 · 0 comments
Open

Update library and load subtree fails in plugin #222

brollb opened this issue Jul 21, 2020 · 0 comments

Comments

@brollb
Copy link
Collaborator

brollb commented Jul 21, 2020

I recently encountered a bug when I try to update a library using core.updateLibrary then core.loadSubTree(this.rootNode):

DeepinScreenshot_select-area_20200720155030

Before I continue, the logic containing the core.loadSubTree is in a project migration which automatically updates the project data based on some recent update.

This is what I have checked out so far:

  • I have confirmed that the individual logic is correct; commenting out the library update or subsequent code both is successful.
  • Saving between the steps (not ideal) still results in the same error.
  • When running the library update code in isolation, I have confirmed the library root hash changes.
  • The node causing the issue was created manually using the default webgme UI so I expect it to be well-formed in both cases.
  • Running the library update and then re-running the plugin to only run the migration works.
  • Previously, I was using the client to update the library but this often resulted in the branch forking since the client and plugin were making concurrent edits. Trying to merge these concurrent changes results in the following error:

DeepinScreenshot_select-area_20200721093741

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant