question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Not enough whitespace after ... mark is recognized as new variable

See original GitHub issue

This code:

${VARIABLE}=
... """                                            ${\n}
... data:                             ${\n}
... ( a b c ) = ( 1  2  3 ) ${\n}
... """

produces:

test.robot:23:0 [E] 0803 Multiple variables with name "... """" in Variables section. Note that Robot Framework is case-insensitive (duplicated-variable)
test.robot:26:0 [E] 0803 Multiple variables with name "... """" in Variables section. Note that Robot Framework is case-insensitive (duplicated-variable)

I think it should rather be catched by “not-enough-whitespace-after-newline-marker” rule (but it’s keyword naming rule… maybe we should export it to be general rule checking all statements that starts from the beginning of line and contains …?)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bhirszcommented, Sep 3, 2021

So there are two tasks a) make duplicated-variable immune to … not enough whitespace b) export not-enough-whitespace-after-newline-marker to spacing rules and match more cases (keywords, variables, imports, settings).

0reactions
pekkaklarckcommented, Sep 10, 2021

Feel free to submit issues, and PRs, about error messages that can be enhanced!

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug #712: GNU make can't handle spaces in pathnames
I'm retitling this bug to be a catch-all for the fact that GNU make doesn't handle spaces will in pathnames, period: not just...
Read more >
variable declaration whitespace violation: let and var should ...
In general, a binding expression can be recognized by having var and : . It may or may not introduce a new name...
Read more >
Set a path variable with spaces in the path in a Windows .cmd ...
Try something like this: SET MY_PATH=C:\Folder with a space "%MY_PATH%\MyProgram.exe" /switch1 /switch2.
Read more >
Variable name with any character and whitespace · Issue #1982
I know it's an old habit to use camelCased variable names but I just don't know why we still have to do that....
Read more >
How to remove extra white space with Variable Editor in new ...
This white space only appears if the Variable Editor is placed within a tab (form section), but not in the main (parent) section,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found