SmartJSONEditor / PublicDocuments

Public Documents
MIT License
51 stars 10 forks source link

Transformations Lost #5

Open fuzzyweapon opened 5 years ago

fuzzyweapon commented 5 years ago

I haven't isolated what did this yet, but suspect it has something to do with bookmarks and/or disabling nodes (I then afterwards went to text view to copy the output to splash into a code source file that needed better mock data).

The little icon showing that something has assigned transformations in the rows view (to the very right) will show correctly always, but there's a state where literally transformations cannot be recovered in either popup (the one triggered by clicking that icon, nor the bottom detail panel with the transformations tab).

I didn't dare try closing the application and opening it again. Instead, I hunted back through all of the version via File>Revert... and found previous versions. What I found there (which may be an unrelated issue) was if I initially pressed that little right transformations icon in a row with transformations directly, the pop-up wouldn't pull them up, but sometimes I was able to restore them only by leaving the pop-up open and selecting other fields. When I didn't do this, I was never able to recover them. In fact, selecting to see the original value in the bottom pane seemed to /strip/ the transformations off of it (aka, even the little icon went away and the rendered value display never came back).

Again, this was all without restarting the application out of fear. Now that I have a good working copy of my project, I will try to isolate this further if I stumble across it.

SmartJSONEditor commented 5 years ago

Hello, I have noted that there is some issue with state preserving and ValueTransformer (Enable / Disable) state. Sometimes when ValueTranformer is in disabled state and saved with document, it produces some unexpected errors. I am chasing this issue.