Native details dialogs: a .dlg cannot read a restored key that has no widget (blocks CREST Theory, #1153)
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 12/100
Piste de recherche
Start with src/wxgui/details/DetailsModel.cpp: expression evaluation at lines 55-69, find() at 96-100, restore handling at 458-481, and the description format parser at 565-695. Read cresttheory.py lines 16-61 to see the Runtype-to-Theory dependency. Done means a design for a restore-only variable is agreed, it is usable in expressions but never sent, and tests/dialogs/native_test.py gains a case that restores ES.Runtype.QCG.Solvent.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
`cresttheory.py`, in Solvation Shell mode with GUIValues, reads `ES.Runtype.QCG.Solvent` from the restore file (lines 16–25). Its CheckDependency (57–61) then sets `ES.Theory.Solvent.Name` to that solvent and disables the combo. So the Theory solvent follows the Runtype key: restore `ES.Runtype.QCG.Solvent|methanol||1|1|menu_input` and the Theory dialog shows and sends methanol.
The native engine cannot express this:
- `src/wxgui/details/DetailsModel.cpp` 55–69: expressions see only argv variables and existing setting widgets.
- 96–100: `find()` accepts setting widgets only, so a note cannot hold an unknown restored key.
- 458–481: restore ignores a key that has no matching setting widget (apart from the explicit legacy aliases).
- 565–695: the description format has no restore-only variable and no lookup into the restore file.
A hidden setting widget would add a setting that the Python dialog does not send, so exact parity with the Python anchor would be broken.
Proposed: a restore-only declaration in the .dlg format (something like `restored qcgSolvent = "ES.Runtype.QCG.Solvent" default "water"`), usable in expressions, never sent. Until then cresttheory stays on the Python dialog.
The oracle (`tests/dialogs/native_test.py`) builds its restore cases from a dialog's own widget inventory, so it would not catch this cross-dialog key. The fix needs a case that restores the runtype key.
Found by the #1153 run (CREST/MLP .dlg). Part of #411.
- Langage dominant
- C
- Étoiles
- 10
- Forks
- 8
- Merge moyen
- 6 h 32 min
- PR mergées (30 j)
- 1
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de FriendsofECCE/ECCE
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
FriendsofECCE/ECCE#1353 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
FriendsofECCE/ECCE#1348 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
FriendsofECCE/ECCE#1345 ·
Toutes les issues de FriendsofECCE/ECCE
Issues similaires
-
documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Life-Framework/Life-Framework#5378 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug Status: Needs Triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
bug status: planned ui
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
ChupathingyCE/chupathingyce#2126 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue simulation
Difficulté 1/5 1-3 heures Accessibilité débutants 92/100
MarcosAsh/Lattice_Fluid_Dynamics#270 ·
Les mainteneurs répondent en général sous 1 jour
-
needs-kind
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
falcosecurity/libs#3173 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour