science-docs / Docdown

Docdown is a tool to simplify the process of creating a scientific work by combining features of common TeX editors with markdown
MIT License
6 stars 1 forks source link

Crash after renaming files #29

Closed Dimmerli closed 4 years ago

Dimmerli commented 4 years ago

How to reproduce:

  1. Create two files.
  2. Call them "01" and "02" and open them in the editor
  3. Rename "01" to "03" and thereby change the order of the files
  4. Switch between the editors

Result: Displayed editors don't update and the program crashes.

msujew commented 4 years ago

After looking at this post, it looks like the renaming results in the object returning a different hash code. The Tab Control uses the hash code to keep track of the item and a changing hash code results in an internal error of some dictionary.

We will fix this by keeping track of the original hash code.