kame
kame

Reputation: 21960

Variable definition not found in the robot framework

My Code in the robot-file:

${myVar}=    Set Variable    ${30.0}

looks like this in PyCharm:

enter image description here

When I hover my mouse over the float value I get the error: Variable definition not found.

Can somebody explain why this happens?

Upvotes: 2

Views: 2599

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 385940

The explanation is that it's a bug in PyCharm's robotframework mode. The code is perfectly legal robotframework syntax.

Though, one could argue that it's not a bug and that the tooltip is telling the truth: there really is no variable named ${30.0}. What it doesn't say is that, even though there is no variable named ${30.0}, the syntax is perfectly valid.

Upvotes: 3

Related Questions