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

Refactor error messaging #24

Open
7 tasks
trevorbaca opened this issue Nov 7, 2018 · 0 comments
Open
7 tasks

Refactor error messaging #24

trevorbaca opened this issue Nov 7, 2018 · 0 comments
Assignees

Comments

@trevorbaca
Copy link
Owner

trevorbaca commented Nov 7, 2018

  • Add failure-to-compile alert as a sound.
  • Catch incomplete tweak errors (abjad.tweak(5.5) in place of abjad.tweak(5.5).staff_padding).
  • Teach wellformedness manager to give in-score location of violators.
  • Catch out-of-lexcial-order maker statements ('va' followed by 'vc' then followed by 'va' again).
  • Teach overlapping rhythms error to give in-score identifiers by measure number and command.
  • Add overlapping-pitch errors to show when music is pitched more than once; allow override with override=True keyword.
  • Refactor so that incomplete-hairpins provide red-colored final segment leading to ad-hoc LilyPond ! command and end-of-segment. This will provide a clear visual alert to composer. Also mention incomplete-hairpin error in compilation messaging. But do not terminate compilation because of incomplete hairpin.

Note that that frame object returned by inspect.currentframe() implements an f_back property. This property returns a second frame object. The second frame object show FROM WHERE a piece of code was called.

@trevorbaca trevorbaca self-assigned this Nov 7, 2018
@trevorbaca trevorbaca changed the title Add failure-to-compile alert Error messaging enhancements Dec 1, 2018
@trevorbaca trevorbaca changed the title Error messaging enhancements Make error messaging enhancements Jul 5, 2019
@trevorbaca trevorbaca changed the title Make error messaging enhancements Refactor error messaging Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant