Skip to content

Two issues fixed: #11

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion RobotDebug/RobotDebug.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def start_keyword(self, name, attrs):

path = attrs["source"]
if path and Path(path).exists() and path not in self.source_files:
self.source_files[path] = Path(path).open().readlines()
with open(Path(path)) as f:
self.source_files[path] = f.readlines()
lineno = attrs["lineno"]
self.library.current_source_path = path
self.library.current_source_line = lineno
Expand Down
2 changes: 1 addition & 1 deletion RobotDebug/robotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def build(self, resource):
type="RESOURCE",
scope="GLOBAL",
)
libdoc.keywords = KeywordDocBuilder().build_keywords(resource)
libdoc.keywords = KeywordDocBuilder(resource=True).build_keywords(resource)
return libdoc


Expand Down