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.

Keywords with a dot character (punctuation mark) are being incorrectly highlighted in test cases

See original GitHub issue

Describe the bug Keywords that have a dot character (punctuation mark) in its name are being incorrectly highlighted in test cases.

Please, take a look at line 13 in the screenshot below. robotframework-ls_highlight_bug_report

This highlighting problem is probably related to the fact that one can use a keyword using its full reference to the library that implements it, eg.: SeleniumLibrary.Open Browser

Please, take a look at line 7 in the screenshot below. robotframework-ls_highlight_bug_report_2

In this case (full keyword library reference) the keyword highlighting is adequate.

To Reproduce Steps to reproduce the behavior:

  1. Create a keyword with the dot character in its name
  2. Use the previously created keyword in a test case
  3. Keyword in test case will be incorrectly highlighted

Expected behavior I would expect that a keyword with a dot character in its name to be highlighted as any other keyword in a test case.

Screenshots Already provided it in the bug description (better for contextualization).

Versions:

  • OS: Ubuntu 20.04.4 LTS
  • Robot Framework Version: 4.1.3
  • Robot Framework Language Server Version: 0.41.0
  • Client Version: VSCode 1.64.2

Logs I don’t think it is really needed for this specific case.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fabiozcommented, Feb 23, 2022

Agreed, I guess that the analysis really needs to be semantic (analyzing imports) to do the proper coloring (right now it just checks for a . in the keyword name).

Marking as high priority.

0reactions
fabiozcommented, Mar 11, 2022

Thanks you. Your last few messages ended up in my spam, though for some reason this one was ok.

I was really wondering why you turned silent 😉

So, I ended up implementing the last things related to highlighting for the next release (including the caching of the imports considering dependencies / keyword calls with variables) and provided a new pre-release for it (which I hope to release Monday if no blocker is found until then).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does Punctuation and Spelling Affect Keywords in AdWords?
Before we get started, it is important to note that Google does not allow keywords to contain “non-standard characters” such as exclamation ...
Read more >
8. Punctuation
The exclamation point is used to mark surprise, incredulity, admi- ration, appeal, or other strong emotion which may be expressed even in a...
Read more >
Removing punctuations from a given string
Approach: First check the input string if it consists of punctuations then we have to make it punctuation free. In order to do...
Read more >
A case against syntax highlighting
With syntax highlighting it would be possible to mark "=" and "==" in different colours. Yay! A good reason for implementing syntax highlighting...
Read more >
BDD 101: Writing Good Gherkin
Writing good feature files is harder that you think. Follow these tried-and-true best practices to write Gherkin like a pro.
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