Bug in macro replacement in display
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 40/100
Piste de recherche
Start by reproducing the nested-display case: a parent display passes P=QE1:FX4:, R=Current1:, and a child passes RN=$(R)TSTotal in the same macro list as R. Find where the Phoebus display runtime expands macros for child displays and check whether parameters are substituted in order, so later values see earlier replacements. Done when the plot title resolves to QE1:FX4:Current1:TSTotal and the ADL-converted and native .bob cases behave the same.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
I think I have found a bug in macro replacement in display files. In my case these are files that are converted from medm .adl files, but I think the problem is more general.
I originally saw the problem using the adl converter from Phoebus 4.6.10 and Phoebus display 4.7.3. But I have reproduced it using both the converter and display in Phoebus 6.0.0.
This is an example of the problem.
quadEM.bob loads the related display file NDStats, and passes the macro parameters P=QE1:FX4:, R=Current1:
NDStats.bob loads the related display file NDStatsTimeSeriesPlot, and passes the parameters P=$(P), R=$(R)TS:, RN=$(R)TSTotal
The title of this plot is $(P)$(RN)
After substitution the plot title should thus be QE1:FX4:Current1:TSTotal.
However, it is not. As seen below it is QE1:FX4:Current1:TS:TSTotal.
The reason is clear. This is the screen for the Actions of the menu that calls NDStatsTimeSeriesPlot:
What is happening is that it is not using the original value of R when it builds RN, it is using the modified version from the first line.
I can work around the problem by swapping these 2 lines in the .adl file, so that RN is built before R. But it seems that this should be fixed in the translation or runtime engine.
- Langage dominant
- Java
- Étoiles
- 130
- Forks
- 132
- Merge moyen
- 3 j 1 h
- PR mergées (30 j)
- 24
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun guide de contribution
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 ControlSystemStudio/phoebus
-
Create CONTRIBUTING.mdOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
ControlSystemStudio/phoebus#3979 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
ControlSystemStudio/phoebus#3962 ·
Les mainteneurs répondent en général sous 2 jours
-
PVA/SPVA: track SPVA version independently and move XDG keychain dir pva/<ver> -> spva/<n.n.n>Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
ControlSystemStudio/phoebus#3865 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 52/100
ControlSystemStudio/phoebus#3980 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
ControlSystemStudio/phoebus#3978 ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de ControlSystemStudio/phoebus
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
adorsys/keycloak-config-cli#1709 ·
Les mainteneurs répondent en général sous 1 jour
-
! and-bugs
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
osmandapp/OsmAnd#26769 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
NationalSecurityAgency/ghidra#9997 · 2 commentaires ·
Les mainteneurs répondent en général sous 2 jours
-
[Bug] DefaultSerializationExceptionWrapper does not implement Cleanable, so cleanup() is never invoked by codecsPeut-être pris @binbin0325 l’a pris aujourd’hui. Ouvertecomponent/need-triage type/need-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
fix: tagged PDF fails with ClassCastException when a Form and its Image share an XObject namePeut-être pris @hnc-jglee l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
opendataloader-project/opendataloader-pdf#830 ·
Les mainteneurs répondent en général sous 1 jour