google / google/codeworld

Auto-fix for certain error messages

Open
#1,131 0 comments 0 reactions 0 assignees View on GitHub
discussion
Dominant language
Haskell
Stars
1.3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

Some error messages suggest a fix. For example, "Not in scope" is often accompanied by "Perhaps you meant: " When one of these errors is encountered, one idea is to add a button to the output window that labeled "Fix it" that will automatically make the change.

This does raise the question of what to do if the original source has been edited. The easy answer would be to disable or remove these buttons. But that actually sounds like an annoying experience. A better answer would be to track markers in the source code that follow the location as edits are made, and only disable the button if an edit happened in that region of the code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.