You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that RA can't distinguish well between the output of Rust compiler and the output of the program. When I print a string similar to the Rust diagnostic message, VS Code reports it as a Rust error.
I found this problem because I was writing a diagnostic engine similar to Rustc's, and these red lines kept appearing in my test files.
To reproduce this issue in VSCode, you need to use the run button on the main function.
The text was updated successfully, but these errors were encountered:
This is probably because the problem matcher used to show rustc errors in the editor window doesn't know how to distinguish compiler output from program output.
I didn't find a way to tell VS Code how to match correctly. I'm not very familiar with VS Code extensions, but I think there's not much more we can do here.
rust-analyzer version: 0.3.1194-standalone (67920f7 2022-09-04)
rustc version: rustc 1.61.0 (fe5b13d68 2022-05-18)
It seems that RA can't distinguish well between the output of Rust compiler and the output of the program. When I print a string similar to the Rust diagnostic message, VS Code reports it as a Rust error.
I found this problem because I was writing a diagnostic engine similar to Rustc's, and these red lines kept appearing in my test files.
To reproduce this issue in VSCode, you need to use the
run
button on the main function.The text was updated successfully, but these errors were encountered: