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

Aberta
#1,340 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
12/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
cpp, python
Domínio
desktop

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
C
Estrelas
10
Forks
8
Merge médio
6h 32min
PRs com merge (30d)
1

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de FriendsofECCE/ECCE

Todas as issues de FriendsofECCE/ECCE

Issues semelhantes

Mais issues de C

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.