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

Unhelpful error messages for Rust #68

Open
petervdonovan opened this issue Jul 8, 2022 · 1 comment
Open

Unhelpful error messages for Rust #68

petervdonovan opened this issue Jul 8, 2022 · 1 comment
Labels
bug Something isn't working diagnostics Error, warning, and info message reporting rust

Comments

@petervdonovan
Copy link
Contributor

The error message "aborting due to previous error; 4 warnings emitted" is unhelpful. Maybe it should be suppressed, or shown only if there are no other error messages.

Perhaps the real problem is "use of a blacklisted/placeholder name baz [foo.rs:61:17]," but that message does not show up consistently (i.e., on the same file, whether it appears seems to be nondeterministic). The user has to go to View > Problems in order to see the other messages. This is particularly confusing because when you use the "Build and Run" command, the program compiles and runs with no issues.

This can be reproduced (unreliably) by opening lingua-franca/test/Rust/src/TimeState.lf in VS Code.

@petervdonovan petervdonovan added bug Something isn't working diagnostics Error, warning, and info message reporting labels Jul 9, 2022
@lhstrh lhstrh added the rust label Jul 11, 2022
@lhstrh
Copy link
Member

lhstrh commented Jul 11, 2022

Tagging @oowekyala as he might be able to help with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working diagnostics Error, warning, and info message reporting rust
Projects
None yet
Development

No branches or pull requests

2 participants