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

Add human-readable selector messaging #44

Open
trevorbaca opened this issue Sep 6, 2019 · 0 comments
Open

Add human-readable selector messaging #44

trevorbaca opened this issue Sep 6, 2019 · 0 comments
Assignees
Labels

Comments

@trevorbaca
Copy link
Owner

Now:

Removing harmony/segments/Q/__make_segment_pdf__.py ...
Traceback (most recent call last):
  File "/Users/trevorbaca/abjad/abjad/utilities/Expression.py", line 580, in _ev
    result = eval(statement, globals_)
  File "<string>", line 1, in <module>
  File "/Users/trevorbaca/baca/baca/classes.py", line 5089, in pleaf
    return self.pleaves(exclude=exclude, grace=grace)[n]
  File "/Users/trevorbaca/abjad/abjad/core/Selection.py", line 207, in __getitem
    result = self.items.__getitem__(argument)
IndexError: tuple index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/trevorbaca/Scores/harmony/harmony/segments/Q/__make_segment_pdf__
    segment_directory=segment_directory,
  File "/Users/trevorbaca/baca/baca/segmentmaker.py", line 6728, in run
    command_count = self._call_commands()
  File "/Users/trevorbaca/baca/baca/segmentmaker.py", line 1692, in _call_comman
    command(selection, runtime)
  File "/Users/trevorbaca/baca/baca/scoping.py", line 298, in __call__
    return self._call(argument=argument)
  File "/Users/trevorbaca/baca/baca/commands.py", line 1528, in _call
    argument = self.selector(argument)
  File "/Users/trevorbaca/abjad/abjad/utilities/Expression.py", line 296, in __c
    result = expression._evaluate(result, **keywords)
  File "/Users/trevorbaca/abjad/abjad/utilities/Expression.py", line 584, in _ev
    raise type(exception)(message)
IndexError: evaluable statement '__argument_0.pleaf(0)' raises 'tuple index out 

Find a way to raise human-readable input when selectors fail to select user-requested components.

@trevorbaca trevorbaca self-assigned this Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant