Code Monkey home page Code Monkey logo

Comments (2)

sylvainfaivre avatar sylvainfaivre commented on July 2, 2024 1

[The following has been copied and pasted from an email I just sent]

Hi,

Sorry it took me so long.

I found a way to remove most data in the file, "save and vacuum", and still experience faulty behaviour. You will find the file attached to this message.

If you add a subnode to the "rabbitMQ" node and save the file, you will get the error ยซ UNIQUE constraint failed: children.node_id ยป
Same error after adding a subnode to some other nodes, like the 8 or 9 lowest nodes in the file.

Two bizarre things I saw in the SQL dump for this file :

  • there's a node n. 557 that is not displayed anywhere when I open the file with CherryTree, as is it not referenced in the "children" table
  • there are holes in the "sequence" numbers for children of node 190, it seems like this bug is triggered after adding a subnode to one of the nodes that are after this hole (those with "sequence" > 12 in the "children" table)

Anyway, don't worry too much about this, it's probably a result of some kind of corruption that happened with an older release, and cannot happen in current releases, plus I can fix the file by using the "save as" function.

But thanks for looking into it anyway :-)

Cheers,
Sylvain

from cherrytree.

giuspen avatar giuspen commented on July 2, 2024

Hi @sylvainfaivre the 'save as' is regenerating a completely new database while the 'save' is only updating the part that you modified, so the save relies on the past. A 'save as' is also regenerating all the node IDs starting from 1. You can send me the misbehaving database via email (see help--about) and explain what to do to reproduce the issue

from cherrytree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.