10 Commits

Author SHA1 Message Date
Nicolas Setton
97318dfd33 Add support for powershell
And add a test.

For #40.
2024-01-23 14:21:18 +00:00
Pierre-Marie de Rodat
7e72532dfe Update after a Libadalang API change
For eng/libadalang/libadalang#932
2022-07-27 16:50:00 +02:00
Pierre-Marie de Rodat
45b5c1d43b Remove the dependency on "click"
The subset of click that is actually used matches what the standard
argparse module provides. Not depending on click simplifies the
packaging of adareducer.

TN: V317-010
2022-07-06 17:03:03 +02:00
Pierre-Marie de Rodat
298f0986c5 ada_reducer.gui: protect against ImportError exceptions for curses
On some platforms, importing the "curses" module raises an ImportError
because the system cannot find libncursesw.so.5 (recent systems only
provide libncursesw.so.6).

TN: V317-010
2022-07-05 09:43:18 +02:00
Ghjuvan Lacambre
eafd76dec3 main.py: explain --single-file and --follow-closure 2022-03-02 11:25:08 +01:00
Nicolas Setton
bfa51ef352 Merge pull request #30 from AdaCore/topic/tabs
Fix support for tabs
2022-02-09 13:05:33 +00:00
Nicolas Setton
c2fb9c188a Fix support for tabs
Do this by removing all tabs from files - if the issue disappears
after removal of tabs, give up and ask the user to remove tabs.

Fixes #5
2022-02-09 12:50:44 +00:00
Nicolas Setton
4475f5b086 Fix issue with brute force removals
There could be a case where the brute force removal is successful
in getting rid of a file, but the engine still tries to read this
file from disk later. Add defensive programming against this and
add a test.

Fixes #27
2022-02-09 11:55:15 +00:00
Nicolas Setton
bb3c8df5d8 Avoid eating sources in externally built projects
Add a method in ProjectResolver to query whether a source belongs
to the non-externally-built closure.

Use this to filter out files discovered when --follow-closure
is used to walk the closure.

Add a test.
2022-02-08 14:02:18 +00:00
Nicolas Setton
ec89ff0cc7 Add an "adareducer" script at the toplevel
For the benefit of the development environment, or any
users who only "git clone" this repository and work from it.

Fix the testsuite using this.

Rename the "adareducer" source dir to "ada_reducer"
2022-02-02 16:18:41 +00:00