-
Notifications
You must be signed in to change notification settings - Fork 55
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
Errors and notifications #1173
Comments
It would be better to fix this on ALS side. Could you provide a reproducer? |
It happens to me every time I save an erroneous file, with compilation errors. |
Could it be because I'm using |
The notifications make it hard to work in vscode because the output window steals focus from the terminal window any time there's an LSP error. Some repros that cause formatting to fail if they occur anywhere in a file: -- works if you add `null;` between `begin` and `end P;`
procedure P is
begin
end P; -- works if you replace `end B;` with `end A;`
procedure A is
begin
null;
end B; |
From my experience, the extension just goes out of its way to tell you it broke whenever it tries to process an incorrect file. Here's an example: with Ada.Command_Line;
procedure Main is
begin
for Index in 1 .. Ada.Command_Line.Argument_Count loop
declare
Argument : String := Ada.Command_Line.Argument (Index);
begin
if not Argument -- typing in left parenthesis here does it
end;
end loop;
end Main;
It's been like that for 3 years now, except a few months ago the message said "Imprecise fallback used to compute [...]". |
I have the access check issue occur whenever I create a package in Gnat Studio and do not either restart the ALS or gnat studio. |
When working with incomplete or erroneous code I get messages like these in the
Output
viewand a notification
A request has failed. See the output...
.Last error message can be easily reproduced every time you save incorrect code.
Is it possible to suppress the error messages and the notification?
I already know the code has problems and errors: red-wave underlined code, reports in the
Problems
view, basic Ada knowledge ..., so I don't need to see them in the output view nor receive the notification, which are really annoying (cancel the notification, toggle the panel).The text was updated successfully, but these errors were encountered: