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

BodyRunner.run() missing 1 required positional argument: 'result' #1050

Closed
zdrizga-nam opened this issue Mar 4, 2024 · 3 comments
Closed
Labels
bug Something isn't working robotframework-ls

Comments

@zdrizga-nam
Copy link

Describe the bug
BodyRunner.run() missing 1 required positional argument: 'result'
'Import' object has no attribute 'parent'

To Reproduce
Steps to reproduce the behavior:
Click on "Run Interactive Console"

Expected behavior
Start the Interactive console and works.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions:

  • OS: Windows 11
  • Robot Framework Version: Robot Framework 7.0 (Python 3.10.11 on win32)
  • Robot Framework Language Server Version: v1.11.0
  • Client Version: VSCode 1.87.0

Logs
ErrorBodyRunner.run() missing 1 required positional argument: 'result' [-]
Traceback (most recent call last):
File "c:\Users\zdenekdrizga.vscode\extensions\robocorp.robotframework-lsp-1.11.0\src\robotframework_ls\vendored\robotframework_interactive\interpreter.py", line 422, in evaluate
return self._evaluate(code)
File "c:\Users\zdenekdrizga.vscode\extensions\robocorp.robotframework-lsp-1.11.0\src\robotframework_ls\vendored\robotframework_interactive\interpreter.py", line 532, in _evaluate
last_result = facade.run_test_body(context, test, model)
File "c:\Users\zdenekdrizga.vscode\extensions\robocorp.robotframework-lsp-1.11.0\src\robotframework_ls\vendored\robotframework_interactive\robotfacade.py", line 135, in run_test_body
BodyRunner(context, templated=False).run(test.body)
TypeError: BodyRunner.run() missing 1 required positional argument: 'result'

Error'Import' object has no attribute 'parent' [-]
Traceback (most recent call last):
File "c:\Users\zdenekdrizga.vscode\extensions\robocorp.robotframework-lsp-1.11.0\src\robotframework_ls\vendored\robotframework_interactive\interpreter.py", line 582, in _set_source
element.source = source
AttributeError: can't set attribute 'source'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\Users\zdenekdrizga.vscode\extensions\robocorp.robotframework-lsp-1.11.0\src\robotframework_ls\vendored\robotframework_interactive\interpreter.py", line 422, in evaluate
return self._evaluate(code)
File "c:\Users\zdenekdrizga.vscode\extensions\robocorp.robotframework-lsp-1.11.0\src\robotframework_ls\vendored\robotframework_interactive\interpreter.py", line 501, in _evaluate
self._set_source(new_import, source)
File "c:\Users\zdenekdrizga.vscode\extensions\robocorp.robotframework-lsp-1.11.0\src\robotframework_ls\vendored\robotframework_interactive\interpreter.py", line 584, in _set_source
element.parent.source = source
AttributeError: 'Import' object has no attribute 'parent'

@zdrizga-nam zdrizga-nam added bug Something isn't working robotframework-ls labels Mar 4, 2024
@fabioz
Copy link
Collaborator

fabioz commented Mar 5, 2024

See: #1051

@fabioz fabioz closed this as completed Mar 5, 2024
@zdrizga-nam
Copy link
Author

I see, but obvious error you should fix I guess.

@fabioz
Copy link
Collaborator

fabioz commented Mar 5, 2024

Well, I don't personally have time to do it (in my free time) and Robocorp is also not assigning time for someone to do it...

-- Robocorp is however willing to assign my time to guide someone on how to do it if someone is willing to make the work to provide a PR (mainly going through the things that are failing in the ci when used with the master branch from Robot Framework).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working robotframework-ls
Projects
None yet
Development

No branches or pull requests

2 participants