Skip to content

Wrong argument hint color when using inline keyword arguments #2466

Open
@JFoederer

Description

@JFoederer

The most prominent issue with highlighting I am running into now concerns operator keywords. Binary operator keywords are placed in between its arguments for readability. The highlighting expects additional arguments at the end that are already processed. In practise this means that my test cases are now cluttered with red cells, as in this basic example:
image

I typically use this natural language extension (robotnl) in Robot framework tests. It allows me to rewrite a basic construction like
image

In the more natural form
image

This method does however lean heavily on using inline keyword arguments. In a recent update argument highlighting changed. It now also highlights arguments for inline keyword arguments, where previously only the first keyword was considered. There are however some issues with determining which argument belongs to which keyword. See also this discussion on Robot framework issue 3187

I do like the idea of having hints for all keywords, but for now it might be safer to not support inline keyword argument highlighting. In my opinion showing too much red is worse than missing a hint in some complex situations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequest for improvement: either for an existing feature or a new one

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions