Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robotidy will replace Test Tags to Force Tags in settings section after RF6 #432

Closed
siongwai opened this issue Oct 20, 2022 · 2 comments · Fixed by #435
Closed

Robotidy will replace Test Tags to Force Tags in settings section after RF6 #432

siongwai opened this issue Oct 20, 2022 · 2 comments · Fixed by #435
Labels
bug Something isn't working

Comments

@siongwai
Copy link

Environment:

  • robotframework-tidy 3.3.1
  • VS Code
  • RF Language Server 1.3.5
  • Robot framework 6.0
  • Enable format on save in VS Code

Problem:
Scenario 1:
Write Test Tags in the settings section of robot file. Then save the file.

Scenario 2:
Prepare a robot file which having Test Tags in the settings section, then run command "robotidy ." to tidy-up robot file

Outcome:
All the Test Tags will be replaced to Force Tags.

@bhirsz bhirsz added the bug Something isn't working label Oct 20, 2022
@bhirsz
Copy link
Member

bhirsz commented Oct 20, 2022

We're normalizing the setting names using the type names and unfortunately Force and Test Tags use the same type (Force Tags). I will add extra logic to handle it better in RF 6+. Thanks!

@bhirsz
Copy link
Member

bhirsz commented Oct 20, 2022

It looks like "NormalizeTags" is doing it - since we're recreating whole tag node instead of modyfing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants