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

Handle unhandled exceptions in compiler #60

Open
3 tasks
adamconnelly opened this issue Oct 24, 2020 · 0 comments
Open
3 tasks

Handle unhandled exceptions in compiler #60

adamconnelly opened this issue Oct 24, 2020 · 0 comments
Assignees

Comments

@adamconnelly
Copy link
Owner

adamconnelly commented Oct 24, 2020

Add a general exception handler to the compiler that directs users to GitHub to report an issue. If an exception is thrown and not handled by the application, it's probably fair enough to say it's a bug that should be fixed.

  • Add a general exception handler to the compiler console app.
  • Create a bug issue template and get the exception handler to output a link to report a bug.
  • Could we add something to allow users to automatically create an issue / pre-populate some of the details?

Maybe we output something like this:

<start of stacktrace>
  at Antlr4.StringTemplate.Interpreter.Execute(ITemplateWriter out, TemplateFrame frame)
  at Antlr4.StringTemplate.Interpreter.Execute(ITemplateWriter out, TemplateFrame frame)

Thrift.Net has encountered an error. This is a problem with the compiler and not caused by your code.
Please help us to resolve this by reporting a new issue here: <https://github.com/...>.

We welcome contributions, so please feel free to create a PR to resolve the issue.
You can find out how to contribute here: <link to contribution guide>.

Resources:

@RossAndersonDev RossAndersonDev self-assigned this Nov 6, 2020
RossAndersonDev added a commit that referenced this issue Nov 6, 2020
- Adding exception handling in the console app to catch any unhandled
exceptions.

- Adding an issue template for bug tracking and linking it in the
console output if an unhandled exception occurs.

Part of #60
RossAndersonDev added a commit that referenced this issue Nov 6, 2020
- Adding exception handling in the compiler console app to catch any
unhandled exceptions.

- Adding an issue template for bug tracking and linking it in the
console output if an unhandled exception occurs.

Part of #60
RossAndersonDev added a commit that referenced this issue Nov 6, 2020
- Adding exception handling in the compiler console app to catch any
unhandled exceptions.

- Adding an issue template for bug tracking and linking it in the
console output if an unhandled exception occurs.

Part of #60
RossAndersonDev added a commit that referenced this issue Nov 6, 2020
- Adding exception handling in the compiler console app to catch any
unhandled exceptions.

- Adding an issue template for bug tracking and linking it in the
console output if an unhandled exception occurs.

Part of #60
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

2 participants