Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

Bug in macro replacement in display

Ouverte
#3,950 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

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
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
java
Domaine
desktop

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

codathon discussion

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)

Image

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.

Image

The reason is clear. This is the screen for the Actions of the menu that calls NDStatsTimeSeriesPlot:

Image

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

  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 ControlSystemStudio/phoebus

Toutes les issues de ControlSystemStudio/phoebus

Issues similaires

Plus d'issues Java

Recevez les nouvelles issues par e-mail

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