Skip to content

Conversation

@leojuurinen-vala
Copy link

@leojuurinen-vala leojuurinen-vala commented Dec 1, 2025

Add parsing of the variables from python files to include their line for navigation from robot.

Root Cause:
Python variables imported from .py files had hardcoded line_no=1, col_offset=0, causing go-to-definition to always jump to the beginning of the file instead of the actual variable definition line.

Solution:
Added AST-based line number extraction that parses Python source files to find the actual line numbers and column offsets where variables are defined. Support for RF >= 7.0.

Add parsing of the variables from python files to include their line for navigation from robot.
@leojuurinen-vala leojuurinen-vala marked this pull request as draft December 1, 2025 19:52
@leojuurinen-vala leojuurinen-vala marked this pull request as ready for review December 1, 2025 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant