1029 Commits

Author SHA1 Message Date
Anthony Leonardo Gracio
11672bc929 Update copyright year for GS sources
(no-issue-check)
2026-01-05 12:41:13 +00:00
Anthony Leonardo Gracio
269fff6b1e Add missing defensive code 2025-05-16 09:00:37 +00:00
Vadim Godunko
29661563eb Replace String_Access by Virtual_String 2025-04-25 13:53:38 +00:00
Vadim Godunko
ddc5afbd28 Rename Get_Chars into Get_Chars_S 2025-02-11 06:10:31 +00:00
Vadim Godunko
d4206d2e19 Use Virtual_String for category name of the messages. 2024-11-13 12:59:34 +00:00
Vadim Godunko
5408d1e122 Rename Get_Attribute function. 2024-11-13 12:59:34 +00:00
Vadim Godunko
cce69b3b56 Remove duplicate dependency from gtkada. 2024-07-16 06:04:02 +00:00
Maxim Reznik
7673c5ae45 Rewrite the output parser to trim CR (16#0D#) from text.
Fixes #341
2024-07-10 14:42:07 +00:00
Maxim Reznik
46a162d24e Avoid extra quotes around an argument with spaces
because it doesn't work. For example running
`gprbuild -XCOMFLAGS="-O3 -g"` fails with the error:

> gcc: error: unrecognized debug output level '"'

Fixes #261
2024-07-03 16:47:10 +00:00
Pierre-Marie de Rodat
9d5d31d7be Allow gnatbench to stub the dependency over GNATCOLL.Python
Introduce a simple unit to define a type used to lock Python's GIL.
GNATbench sources will only have to stub it.
2024-06-25 15:54:01 +00:00
Boulanger
948f4ece61 Fix GIL issue related
See comment from dictobject.h:
bpo-40839: Before Python 3.10, it was possible to call
PyDict_GetItem() with the GIL released.

eng/ide/gnatstudio#192

(cherry picked from commit 62f2e884be)
2024-06-24 13:52:49 +00:00
Nicolas Setton
fb0b9f3c7b Progress matcher: add support for CRLF
Adjust our regexps that match phase and progress indication
to support CRLF-style line terminators in addition to LF.

No test added here: this is being caught by gps-gnatsas__progress
in the integration testsuite.

Follow-up on #325
2024-06-14 10:42:46 +00:00
Anthony Leonardo Gracio
5942a1127d Execute Build Targets in current directory
When a directory is not explictly specified by the user
use GS's current directory to execute build targets, instead
of the project's root directory.

This is needed since users might change the current directory
themselves, using the GPS.cd Python function for instance.

For eng/ide/gnatstudio#129
2024-05-02 15:54:44 +00:00
Anthony Leonardo Gracio
8bf5275ff2 Add proper Alire BuildTargets to build/clean projects
Instead of using the gprbuild-based ones. This is done
through a new aliasing system implemented for Build Targets, via
the new GPS.BuildTarget.set_as_alias API.

For eng/ide/gnatstudio#30
2024-04-25 14:57:23 +00:00
Vadim Godunko
aa393bfd54 Remap path to the project file to remote path. 2023-11-20 12:58:16 +00:00
Boulanger
fa47104c97 Fix regressions related to GNATSAS renaming
Modify GPS.BuildTarget.execute to allow file to be either a string
or a GPS.File.

Fix toplevel menu generation order.

eng/ide/gnatstudio#54

(cherry picked from commit 3868078a7f)
2023-09-26 10:42:26 +00:00
Boulanger
0e409d4274 New actions and avoid having a GNATSAS build mode
- Don't use a special build mode for gnatsas (update Object_Dir
computation to reflect it)
- Add action to load and display SAM baseline
- Replace calls of cpm_bridge by gnatsas review

(cherry picked from commit ac195ba8d8)
2023-09-26 10:42:26 +00:00
Boulanger
d76b8aef1c Don't clean the Messages view when generating the report
(cherry picked from commit 804be6f3a6)
2023-09-26 10:42:26 +00:00
Anthony Leonardo Gracio
41c30ab309 Update copyright year (no-tn-check)
Change-Id: Ie2cf22f9729f30d2228572a7296c23889be4c563
2023-01-03 11:39:28 +01:00
Anthony Leonardo Gracio
03d73baf89 V920-016: Fix exception when computing main menus
By using a vector container instead of a fixed-sized array.

Change-Id: I37248392a4f7aa4c182d3f18bd6f81ab0d7e829e
2022-09-22 14:39:02 +02:00
Andry Ogorodnik
82bbb8dcd3 V504-020 Fixing menu name defined by custom target
Change-Id: I5ebce31647212d4bd54e0f274183ee1eaee3f76b
2022-05-06 11:32:07 +00:00
Adrien Boulanger
1804f192f3 S712-022: Fix over-referenced Python object by Ada
Add free for Callback_Data/Subprogram_Type/List_Instances
Fix ownership transfer issue for Monitored_Command.
Fix over-referenced on widget by python (Editor_Overlay)

Add a test.

Change-Id: I5f6447e37928535f2b7085bcd1b102ee28e31c33
2022-03-31 12:34:25 +00:00
Anthony Leonardo Gracio
ca1221cddf V225-007: Don't include suffix for non-native executables
We should only include the suffix when the executable is built for
the host platform or if the Executable_Suffix is set for the project.

This fixes issues that might appear with the %T macro extension
for non-native projects.

Change-Id: I34d17a6264de98ca21a577b2d6d0434879ff2d73
2022-02-28 13:53:27 +00:00
Anthony Leonardo Gracio
7a7bb08ec7 Avoid warnings in dev mode
(no-tn-check)

Change-Id: I7348090640bd606c4eebbcb7e37031fc276fa0b0
2022-02-21 16:38:13 +00:00
Maxim Reznik
1fa5c29543 V131-007 Fix issue with custom executable suffixes
and debugger initialization action.

Change-Id: I8e0d46911a80be04775e757628efcad81d90d09a
2022-02-11 16:23:15 +00:00