View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000343 | QElectroTech | other | public | 2026-09-25 10:24 | 2026-09-25 11:25 |
| Reporter | FatalJamon | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | new | Resolution | open | ||
| Summary | 0000343: 0.100 : file contents is not consistently saved the same way for the same visual | ||||
| Description | I have this file at work using custom elements. I created an extract for reproducibility attached here : https://github.com/ThomasPrioul/test-qet-export-diff Whenever I close/open and save the file, the whole file is mixed up : - attributes order - elements order So it's very hard to track diffs in git, it creates huge commits for nothing. I can't reproduce the behavior on an empty new file where diffs seems much simpler. | ||||
| Steps To Reproduce | Clone the attached git repo, open in 0.100 and save. the file contents change completely, despite having moved nothing on the diagram. | ||||
| Tags | git, qet, save, vsc | ||||
|
|
Btw this is for version 0.100.0 but I could not submit the form if I selected that. |
|
|
Fixed on 0.200.1 dev with Qt6 framework, why use old 0.100.0 version, you lost a big lot of new great features. |
|
|
Sadly no, I just checked and the exact same problem still happens with our file. You don't even need to change anything in the diagram, just open/save/close. and do it again. the file will be different. I checked with my attached file in the issue. In 0.200 from 5 hours ago, I opened the file and saved it (no modifications). If I close/open/save, this file doesn't have the problem of modified content. BUT, if I move one element in the file, all the <input> section items have changed position in the list. In vscode diff visualization, it can detect that the items were effectively moved (see attached picture). I updated the git repo to show this problem. |
|
|
Thanks for the test repository, it made this easy to reproduce. You're right that it still happens in 0.200. Opening and saving is stable, but after any edit QElectroTech writes the diagram's texts, shapes, images and tables in an order that changes from run to run. Your "moved one relay down 10px" commit shows exactly that. A fix is proposed here: https://github.com/qelectrotech/qelectrotech-source-mirror/pull/1030 With it, moving that relay changes only the relay's own line in the file. The first save with the fix may reorder those sections once; after that they stay put. Once a build with this change is available, could you try it on your real work file and say whether the diffs stay small? |
|
|
For sure, I subscribed to the PR to know when it will be merged. I'll let you know |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-09-25 10:24 | FatalJamon | New Issue | |
| 2026-09-25 10:24 | FatalJamon | Tag Attached: git | |
| 2026-09-25 10:24 | FatalJamon | Tag Attached: qet | |
| 2026-09-25 10:24 | FatalJamon | Tag Attached: save | |
| 2026-09-25 10:24 | FatalJamon | Tag Attached: vsc | |
| 2026-09-25 10:24 | FatalJamon | Note Added: 0000900 | |
| 2026-09-25 10:28 | scorpio810_mantis | Note Added: 0000901 | |
| 2026-09-25 10:28 | scorpio810_mantis | Note Edited: 0000901 | |
| 2026-09-25 10:50 | FatalJamon | Note Added: 0000903 | |
| 2026-09-25 10:50 | FatalJamon | File Added: image.png | |
| 2026-09-25 11:21 | ispyisail | Note Added: 0000905 | |
| 2026-09-25 11:25 | FatalJamon | Note Added: 0000906 |