-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
-Z ast-json ICEs on Windows #15846
Comments
Huh, this happened to me in #14940, but it should have been fixed in #14945. Looks like it's the same problem. cc @alexcrichton |
@sinistersnare, can you try running this test and see what happens? |
Yup, still got an ICE with -Z ast-json Here is the output
(if you want me to use gdb, please tell me which commands to use) |
Ah I meant if you could run the test itself (omit |
Ah yeah, forgot to say, the test passes... |
Can you get a backtrace in gdb? |
if i type Can i get a backtrace for a non-crashing program? |
|
Oh I'm curious about the backtrace with |
Got it!
|
I no longer get this error, so I will close this :) |
… r=Veykril editor/code: add option to suppress error notifications Fixes rust-lang/rust-analyzer#14193 - Added the `rust-analyzer.showRequestFailedErrorNotification` configuration option, which defaults to `true` - If `rust-analyzer.showRequestFailedErrorNotification` is set to `true`, the current behavior is preserved. - If `rust-analyzer.showRequestFailedErrorNotification` is set to `false`, no error toasts will be displayed for any of the failed requests caused by panics in r-a. This _only_ applies to events that are triggered "implicitly", such as `textDocument/hover`. To test this, you can manually introduce a panic in one of the language server LSP handlers for non-command events. I added an explicit `panic!()` in the `textDocument/hover` event handler: #### `rust-analyzer.showRequestFailedErrorNotification` set to `true` (default) [2023-11-07 17-17-48.webm](https://github.com/rust-lang/rust-analyzer/assets/1665677/d0408ab8-79d1-42cf-a4e7-94e99d9783ec) #### `rust-analyzer.showRequestFailedErrorNotification` set to `false` [2023-11-07 17-16-49.webm](https://github.com/rust-lang/rust-analyzer/assets/1665677/0496d8d0-fb53-4bc6-a279-1a47f412dbdb)
hey, i tried running this code with the -Z ast-json flag and the following is output:
Running on rust from a few days ago:
this is on git bash, on windows 7 64bit. Need any other information?
The text was updated successfully, but these errors were encountered: