Native details dialogs: a .dlg cannot read a restored key that has no widget (blocks CREST Theory, #1153)

Ouverte
#1,340 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
12/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
cpp, python
Domaine
desktop

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

enhancement

`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

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de FriendsofECCE/ECCE

Toutes les issues de FriendsofECCE/ECCE

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.