Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Do not spam Sublime console when python does not contain robot #234

Open
stdedos opened this issue Jan 20, 2020 · 1 comment
Open

Do not spam Sublime console when python does not contain robot #234

stdedos opened this issue Jan 20, 2020 · 1 comment

Comments

@stdedos
Copy link

stdedos commented Jan 20, 2020

There are a lot of open issues about errors related to python not having robot installed.

Instead of spamming the console, and sending "cryptic" error message to users, could it be a bit more specific?

It seems that the test from #201 is scriptable enough:

u@h:~$ robot/.venv/bin/python3 "from robot import run;run('--help')"
robot/.venv/bin/python3: can't open file 'from robot import run;run('--help')': [Errno 2] No such file or directory
u@h:~$ robot/.venv/bin/python3 -c "from robot import run;run('--help')"
[ ERROR ] Parsing '--help' failed: File or directory to execute does not exist.

Try --help for usage information.
u@h:~$ echo $?
0
u@h:~$ python -c "from robot import run;run('--help')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named robot
u@h:~$ echo $?
1

Could that be printed once per-plugin reload, instead of brute forcing and filling the console with first-failed error messages?

@aaltat
Copy link
Collaborator

aaltat commented Jan 20, 2020

Unfortunately I don't have time to solve this problem in the near seen future. But the code is in the repository and most likely this is not hard to do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants