Skip to content

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

@uliwitness

Description

@uliwitness

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    displayPlatform-specific display code or cross-platform layout code.editorScript editor windows, tool palettes, Project Canvas, Info popovers, and the menu bar used for them.feature requestNew features (as opposed to bugs in existing features).interpreterHammer programming language: Parser, tokenizer, interpreter.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions