You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
In Pycharm robotCodeFormatter expects JSONArray, but code checks for string. Check "To Reproduce" for more.
To Reproduce
Steps to reproduce the behavior:
Go to: File > Settings > Languages & Frameworks > Robot Framework (Global) . Or go to: File > Settings > Languages & Frameworks > Robot Framework (Project)
Scroll down to "Code Formatter".
It says: "Allows the configuration of the code-formatter engine to be used. One of: robotidy, builtinTidy.
Note: expected format: JSON Array"
Input "robotidy" as a plain string or input ["robotidy"] as JSON Array.
It does not accept them.
Go to: "robotframework-lsp-master\robotframework-intellij\src\main\java\robocorp\robot\intellij\RobotProjectPreferencesPage.java" Or go to: "robotframework-lsp-master\robotframework-intellij\src\main\java\robocorp\robot\intellij\RobotPreferencesPage.java"
Search for validateRobotCodeFormatter.
It looks like it wants to convert plain string to JsonArray and then check if it is equal to "robotidy" or "builtinTidy".
Expected behavior
It should expect string, don't convert it, then check if it is "robotidy" or "builtinTidy". Or it should expect JSON Array, get strings from the array, then check if it is "robotidy" or "builtinTidy".
Screenshots
I am not a Java dev, but that part of the code just looks suspicious to me.
Error in the settings and snap of the code.
Versions:
OS: Windows 10
Robot Framework Version 4.1.2
Robot Framework Language Server Version 0.27.0
Client Version PyCharm 2021.2.3 Community
Logs
Nope
The text was updated successfully, but these errors were encountered:
Description
In Pycharm robotCodeFormatter expects JSONArray, but code checks for string. Check "To Reproduce" for more.
To Reproduce
Steps to reproduce the behavior:
It says: "Allows the configuration of the code-formatter engine to be used. One of: robotidy, builtinTidy.
Note: expected format: JSON Array"
It does not accept them.
It looks like it wants to convert plain string to JsonArray and then check if it is equal to "robotidy" or "builtinTidy".
Expected behavior
It should expect string, don't convert it, then check if it is "robotidy" or "builtinTidy". Or it should expect JSON Array, get strings from the array, then check if it is "robotidy" or "builtinTidy".
Screenshots
I am not a Java dev, but that part of the code just looks suspicious to me.
Error in the settings and snap of the code.
Versions:
Logs
Nope
The text was updated successfully, but these errors were encountered: