Skip to content

Configuring VS Code Robot Framework Extension to Resolve Imports from a Central Resource File #355

Answered by d-biehl
naveen-pt asked this question in Q&A
Discussion options

You must be logged in to vote

No, unfortunately, there isn’t a way to configure the RobotCode extension to automatically resolve imports from a central common.resource file for all files. To be honest, the way you’re currently structuring your project isn’t considered good practice either. Centralizing all libraries and resources in a single common.resource file and importing it into all test cases and keyword resource files leads to several issues:

  1. Circular Imports: If common.resource is imported into keyword resource files, circular dependencies can occur because this file is often already included in other files. This can result in warnings or unexpected behavior.

  2. Risk of Overwriting Keywords or Variables: A ce…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@gohierf
Comment options

@d-biehl
Comment options

@gohierf
Comment options

@naveen-pt
Comment options

Answer selected by d-biehl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants