Bug in macro replacement in display
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 40/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Java
- Sterne
- 130
- Forks
- 132
- Ø Merge
- 3 T. 1 Std.
- Gemergte PRs (30 T.)
- 24
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ControlSystemStudio/phoebus
-
Create CONTRIBUTING.mdOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
ControlSystemStudio/phoebus#3979 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
ControlSystemStudio/phoebus#3962 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
PVA/SPVA: track SPVA version independently and move XDG keychain dir pva/<ver> -> spva/<n.n.n>Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
ControlSystemStudio/phoebus#3865 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 52/100
ControlSystemStudio/phoebus#3980 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
ControlSystemStudio/phoebus#3978 ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in ControlSystemStudio/phoebus
Ähnliche Issues
-
[Bug] DefaultSerializationExceptionWrapper does not implement Cleanable, so cleanup() is never invoked by codecsEvtl. vergeben @binbin0325 hat das heute übernommen. Offencomponent/need-triage type/need-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
2026 Error Report
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
triplea-game/triplea#15096 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug][API] Switching workflow versions leaves schedules onlineEvtl. vergeben @zhuangchong hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
apache/dolphinscheduler#18731 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Implement JDBC Domain Enums (`SqlCategory`, `SqlExecutionStatus`, `SqlExecutionType`) in Core ModuleOffencore-module enhancement good first issue
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 87/100
sdlc-pro/spring-lens#531 ·
Maintainer antworten meist innerhalb von 1 Tag