Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Keyword suggestion (with implicit resource file import) is not working #363

Open
Weinzierleiner opened this issue Dec 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Weinzierleiner
Copy link

Weinzierleiner commented Dec 4, 2024

Short: RobotCode doesn't suggest custom keywords of resource files, which are not yet imported by a Resource file within the *** Settings *** section & I'm not sure why.

My project structure is like this:
/keywords/api/authentication.resource
/tests/test1.robot

The authentication.resource file contains multiple keywords, which can be used within a test1.robot file by manually adding the Resource to the *** settings *** section.
Without the Resource import of this specific resource file in the settings section, the Code Suggestion (pressing CTRL + SPACE at the end of the keyword string) doesn't return any suggestions:

grafik
(the quick fix only suggests to create the keyword within the same .robot file)

From the RF Language Server I'm used to resolve keywords (which are not imported yet) and add its path to the Resource Imports by Code Suggestion:

grafik

My question: Is this feature implemented in RobotCode already and if yes: what could cause the issue that the keyword seems to be unknown to the extension - even after Clear Cache and Restart of RobotCode?

Desktop (please complete the following information):

  • VS Code Version 1.95.3
  • RobotCode Version 0.99.0
  • OS: Windows 11, using a WSL2 (Ubuntu) with docker and a devcontainer inside
  • Python Version 3.11.10
  • RobotFramework Version 7.1.1
  • rf-robocop, rf-tidy, rf-browser, rf-requests, rf-jsonlibrary
@Weinzierleiner Weinzierleiner added the question Further information is requested label Dec 4, 2024
@Weinzierleiner Weinzierleiner changed the title [QUESTION] Keyword suggestion with implicit resource file import is not working [QUESTION] Keyword suggestion (with implicit resource file import) is not working Dec 4, 2024
@d-biehl
Copy link
Member

d-biehl commented Dec 8, 2024

Sorry this feature is not implemented at the moment. I am not really sure if code completion is the right way to show things that are not imported, because I have seen projects with more then 10000 keywords in deep structured resources files. There is no real good way or convention in RF where and how resources should be structured and what is a public/private/protected resource.

Maybe we could do this with quickfixes or so...

I will leave this open but change it to an enhancement.

@d-biehl d-biehl changed the title [QUESTION] Keyword suggestion (with implicit resource file import) is not working [Enhancement] Keyword suggestion (with implicit resource file import) is not working Dec 8, 2024
@d-biehl d-biehl added enhancement New feature or request and removed question Further information is requested labels Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants