robotframework / robotframework/RIDE

Autocomplete of Dictionary Variables

Open
#2,032 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
1k
Forks
385
Avg merge
13m
Merged PRs (30d)
2

Description

When passing dictionary arguments to a library function, if we press Ctrl+Alt+Space to autocomplete, it completes dictionary variable name as is, i.e. starting with "&". However we should always pass any variable starting with "$". Because of this I get following error when I run TC.

Verify Call App State    &{USER_A}    CA1    idle

Keyword 'first.Verify Call App State' got positional argument after named arguments.

If I change & to $, it works fine. Can we modify autocomplete in Test edit section so that it always uses $ for all kind of variables?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the autocomplete handling in RIDE's Test edit section and reproduce the Ctrl+Alt+Space behavior with a dictionary variable. Confirm that completion currently preserves the '&' prefix, then verify that dictionary-variable completion uses '$' and no longer produces the reported Robot Framework argument error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.