Skip to content

[BUG] Pycharm plugin autocomplete offers first letter of each word Capitalized for embedded keywords #564

Closed as not planned

Description

@jatalahd

Describe the bug
With latest RobotCode pyCharm plugin installed, and custom embedded Robot keywords implemented using @Keyword -notation, the autocomplete functionality does not respect the capitalization format of the keyword

Steps To Reproduce
Steps to reproduce the behavior:

  1. Create custom keyword in dynamic python keyword library:

    @keyword("User ${username} writes password in login view")
    def user_writes_password_in_login(self, username: str):
    """
    """
  2. Open .robot file in pyCharm when robotcode plugin installed

  3. Start writing test case:
    When User ....

  4. Autocomplete offers keyword as "User username Writes Password In Login View"
    --> first letter of each word capitalized

If possible add some example source code like:

***Settings***
Library  MyCustomLibrary

***Test Cases***
a simple test
    When User ...

Expected behavior
Autocomplete should offer the keyword as it is defined in the custom keyword library using the @Keyword decorator

Screenshots/ Videos

Logs

Additional context

Desktop (please complete the following information):

  • PyCharm Version [2025.3.1]
  • RobotCode Version [2.2.0]
  • OS: [Linux]
  • Python Version [3.11.4]
  • RobotFramework Version [7.1]

Activity

  1. d-biehl commented on Jan 27, 2026

    @d-biehl
    Member

    thanks, I will look at this!

  2. d-biehl commented on Oct 17, 2026

    @d-biehl
    Member

    Thanks for the report, and sorry for the long wait. The capitalization comes from Robot Framework itself: it converts the names that a dynamic library returns from get_keyword_names into its "printable" form, which capitalizes every word, so Robot Framework's own libdoc shows User ${username} Writes Password In Login View as well. Static and hybrid libraries keep the name from @keyword as it is. Robot Framework's code notes that this conversion might be dropped in Robot Framework 8.0. RobotCode shows the names that Robot Framework reports, so I'm closing this issue. If the exact spelling matters, a static or hybrid library keeps it; calls match the keyword case-insensitively either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions