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

Provide nice error message when no simulator can be found #125

Closed
cmarqu opened this issue Feb 15, 2016 · 1 comment
Closed

Provide nice error message when no simulator can be found #125

cmarqu opened this issue Feb 15, 2016 · 1 comment

Comments

@cmarqu
Copy link
Contributor

cmarqu commented Feb 15, 2016

When I don't have any of the supported simulators in $PATH, I get the following instead of a nice eror message:

Traceback (most recent call last):
  File "./run_vunit.py", line 19, in <module>
    vunit_prj = VUnit.from_argv()
  File "/home/marquardt/tools/vunit/vunit/ui.py", line 155, in from_argv
    args = VUnitCLI().parse_args(argv=argv)
  File "/home/marquardt/tools/vunit/vunit/vunit_cli.py", line 54, in __init__
    self.parser = _create_argument_parser(description)
  File "/home/marquardt/tools/vunit/vunit/vunit_cli.py", line 141, in _create_argument_parser
    for_all_simulators=for_documentation)
  File "/home/marquardt/tools/vunit/vunit/simulator_factory.py", line 77, in add_arguments
    if for_all_simulators or cls.select_simulator().supports_gui_flag:
AttributeError: 'NoneType' object has no attribute 'supports_gui_flag'

@kraigher
Copy link
Collaborator

This is a regression. After fixing #129 you now get a message saying there were no simulators detected on the PATH environment variable.

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

No branches or pull requests

2 participants