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

Bad indentation by default #1188

Open
hw762 opened this issue Mar 22, 2024 · 3 comments
Open

Bad indentation by default #1188

hw762 opened this issue Mar 22, 2024 · 3 comments
Assignees

Comments

@hw762
Copy link

hw762 commented Mar 22, 2024

The default indentation setting of the vscode plugin generates bad indentation warnings:

with Interfaces.C.Strings;
package body rlcore is
    package cstr renames Interfaces.C.Strings;
    procedure InitWindow (width, height : Integer; title : String) is
    begin
        ffi.InitWindow (int (width), int (height), cstr.New_String (title));
    end InitWindow;
-- ...

I made sure that the formatter is provided by Ada & Spark.

@AnthonyLeonardoGracio
Copy link
Collaborator

Hello,

Do you have GNAT style warnings enabled for your project?

Regards,

@AnthonyLeonardoGracio AnthonyLeonardoGracio self-assigned this Mar 22, 2024
@hw762
Copy link
Author

hw762 commented Mar 23, 2024

I am not sure. I used alr init to initialize the project, and used default setting from the extension.

@AnthonyLeonardoGracio
Copy link
Collaborator

Would it be possible to fill a reproducer (i.e: a .zip archive containing your Alire project)? That would be very helpful for us.

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants