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

Use "why not code this" bubbles for errors and warnings ("Fix-its") #105

Open
uliwitness opened this issue Jun 16, 2020 · 0 comments
Open
Labels
display Platform-specific display code or cross-platform layout code. editor Script editor windows, tool palettes, Project Canvas, Info popovers, and the menu bar used for them. feature request New features (as opposed to bugs in existing features). interpreter Hammer programming language: Parser, tokenizer, interpreter.

Comments

@uliwitness
Copy link
Owner

uliwitness commented Jun 16, 2020

In #30 we mention iPhoto-like bubbles that show suggestions from the IDE (to allow for more exploratory coding without having to read manuals etc.).

These could also be used for certain "warnings" in code. E.g. if you use a command that we know can fail, we could show such a bubble on that line and offer to add the skeleton for error handling there (like if the result = "no such card" then displayMyErrorDialog or whatever).

This would be mainly aimed at encouraging good practices, like catching unused results, unhandled errors, not annotating handlers with the errors they may return etc., but is otherwise very similar to the errors/warnings in Xcode with the "Fix it" buttons next to them.

@uliwitness uliwitness added editor Script editor windows, tool palettes, Project Canvas, Info popovers, and the menu bar used for them. interpreter Hammer programming language: Parser, tokenizer, interpreter. display Platform-specific display code or cross-platform layout code. feature request New features (as opposed to bugs in existing features). labels Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display Platform-specific display code or cross-platform layout code. editor Script editor windows, tool palettes, Project Canvas, Info popovers, and the menu bar used for them. feature request New features (as opposed to bugs in existing features). interpreter Hammer programming language: Parser, tokenizer, interpreter.
Projects
None yet
Development

No branches or pull requests

1 participant