Native details dialogs: a .dlg cannot read a restored key that has no widget (blocks CREST Theory, #1153)
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 12/100
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
`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
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de FriendsofECCE/ECCE
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
FriendsofECCE/ECCE#1353 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
FriendsofECCE/ECCE#1348 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
FriendsofECCE/ECCE#1345 ·
Todas as issues de FriendsofECCE/ECCE
Issues semelhantes
-
documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Life-Framework/Life-Framework#5378 ·
Mantenedores costumam responder em até 1 dia
-
Bug Status: Needs Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
bug status: planned ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
ChupathingyCE/chupathingyce#2126 ·
Mantenedores costumam responder em até 1 dia
-
good first issue simulation
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 92/100
MarcosAsh/Lattice_Fluid_Dynamics#270 ·
Mantenedores costumam responder em até 1 dia
-
needs-kind
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
falcosecurity/libs#3173 · 1 comentário ·
Mantenedores costumam responder em até 1 dia