-
Notifications
You must be signed in to change notification settings - Fork 23
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
Report compiler crash #202
Comments
Here is a program that crashes Flix:
it would be nice if VSCode could report that somehow. |
I’m not completely sure how to crash the compiler. By using
|
@mlutze What do we actually want here? A pop-up or what? |
Yes, I think a pop-up would be appropriate, as long as the stacktrace is printed somewhere. |
Does the language server return some error code? |
Can the popup link to the crash report? |
I only think it returns it as a failure (https://github.com/flix/flix/blob/master/main/src/ca/uwaterloo/flix/api/lsp/LanguageServer.scala#L356-L357)
I'll look into this. |
@sockmaster27 There is a lot of text above, but it is not too important. Here is the main task. We currently return a JSON object with I would like to change this so that status can be one of three:
When a We probably want to introduce an enum in both the compiler and VSCode. Does it make sense? This is not too high priority. |
This doesn't appear to work anymore. Is there something else I can use to test it? |
@mlutze @JonathanStarup Do we have any know program that crashes the compiler? @sockmaster27 https://github.com/flix/flix/issues?q=is%3Aissue+is%3Aopen+label%3Abug |
Found one 👍 |
No description provided.
The text was updated successfully, but these errors were encountered: