robocorp / robotframework-lsp

Robocorp extensions for VS Code: Robocorp Code and RFW LSP
https://robocorp.com/docs/developer-tools/visual-studio-code
Apache License 2.0
206 stars 95 forks source link

robotframework-lsp & remote-ssh: line 4: $processid Killed /usr/bin/python3 "$@" / rc: 137 at the end of execution #527

Open withoutaface opened 2 years ago

withoutaface commented 2 years ago

Hello!, I'm testing the extension together with extension ms-vscode-remote.remote-ssh because application server is a linux machine in the cloud. So far it's working fine for my very basic test including debugging with the exception that there is a message at the end that the script is killed with SIGKILL from somewhere. It ends with rc 137 but as per log files (/var/log messages & dmesg) there is no issue with memory or something else (It runs ~ 2 seconds). I'm also able to reproduce it with my laptop using WSL2 & Ubuntu 20.04 image.

So first the question: Is it even intended to work with vscode-server? And if yes, do you think it's might be something with the lsp extension?

Thanks & Regards

user@computer:~/projects/T800$  /usr/bin/env /tmp/rf-ls-run/run_env_00_v9g4ys94.sh -u /home/user/.vscode-server/extensions/robocorp.robotframework-lsp-0.34.0/src/robotframework_debug_adapter/run_robot__main__.py --port 41997 --debug /home/user/projects/T800/T800.robot 
==============================================================================
T800                                                                          
==============================================================================
My First Test                                                         "Hello Robot!"
My First Test                                                         | PASS |
------------------------------------------------------------------------------
T800                                                                  | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Output:  /home/user/projects/T800/output.xml
Log:     /home/user/projects/T800/log.html
Report:  /home/user/projects/T800/report.html
/tmp/rf-ls-run/run_env_00_v9g4ys94.sh: line 4:  1298 Killed                  /usr/bin/python3 "$@"
user@computer:~/projects/T800$ echo $?
137
fabioz commented 2 years ago

It seems that this is an issue with Linux in general, not only in remote (as a note, apart from showing the message, everything should be working).

I need to investigate why this is happening...

withoutaface commented 2 years ago

Thank you for the feedback!, I will continue using the extension and hope this can be fixed in future.