Bug in macro replacement in display
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 40/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Java
- Estrelas
- 130
- Forks
- 132
- Merge médio
- 2d 11h
- PRs com merge (30d)
- 19
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Sem guia de contribuição
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 ControlSystemStudio/phoebus
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
ControlSystemStudio/phoebus#3983 ·
Mantenedores costumam responder em até 2 dias
-
Create CONTRIBUTING.mdAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ControlSystemStudio/phoebus#3979 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
ControlSystemStudio/phoebus#3962 ·
Mantenedores costumam responder em até 2 dias
-
PVA/SPVA: track SPVA version independently and move XDG keychain dir pva/<ver> -> spva/<n.n.n>Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
ControlSystemStudio/phoebus#3865 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 52/100
ControlSystemStudio/phoebus#3980 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de ControlSystemStudio/phoebus
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia
-
Type/Improvement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ballerina-platform/static-code-analysis-tool#140 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
atomityhq/blog-cms#82 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
ready-for-triage triaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
RedHatInsights/notifications-backend#5080 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
eclipse-4diac/4diac-ide#3103 ·
Mantenedores costumam responder em até 1 dia