Skip to content
This repository was archived by the owner on Nov 2, 2020. It is now read-only.
This repository was 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

@stdedos

Description

@stdedos

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions