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

Sort dependencies problems #1183

Open
bracke opened this issue Feb 23, 2024 · 0 comments
Open

Sort dependencies problems #1183

bracke opened this issue Feb 23, 2024 · 0 comments
Assignees

Comments

@bracke
Copy link
Contributor

bracke commented Feb 23, 2024

with dependencies like:

with Chapter_1;
with Chapter_3;
with Chapter_2;

Using the sort dependencies action (clicking on the lamp bulb icon) will sort them but also insert an extra empty line inbetween:

with Chapter_1;

with Chapter_2;

with Chapter_3;

With dependencies like:

with Ada.Integer_Text_IO, Ada.Text_IO, Ada.Float_Text_IO;
with Ada.Command_Line;
with Ada.Calendar;
with Ada.Numerics.Elementary_Functions;
with Random_Booleans;

Using the sort dependencies action will sort them, but insert copies of each line that mentions more than one package:

with Ada.Calendar;
with Ada.Command_Line;
with Ada.Integer_Text_IO, Ada.Text_IO, Ada.Float_Text_IO;
with Ada.Integer_Text_IO, Ada.Text_IO, Ada.Float_Text_IO;
with Ada.Numerics.Elementary_Functions;
with Ada.Integer_Text_IO, Ada.Text_IO, Ada.Float_Text_IO;

with Random_Booleans;

This is in VSCodium with Ada & Spark extension v24.0.4 on Tuxedo Linux.
GNAT 10.5.0
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

Kind regards
Bent Bracke

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

No branches or pull requests

2 participants