366 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
41c30ab309 Update copyright year (no-tn-check)
Change-Id: Ie2cf22f9729f30d2228572a7296c23889be4c563
2023-01-03 11:39:28 +01:00
Adrien Boulanger
8d588bfb0c S712-022: Python leaks related to FileLocation
Each FileLocation was leaking a File: they were keeping a pointer
to File without using any proxy to release them.
Break the dependency and only create the File from the FileLocation
when needed.

Add a test.

Change-Id: I1df713a7c0e6cc54f7c4912b803247b3189dcd92
2022-04-11 15:54:11 +00:00
Adrien Boulanger
295f334e84 U914-005: Transition from python 3.7 to 3.9
- Fix "is not" warnings
- ReadPlist has been removed
- Fix crash related to wrong __repr__ definition
- Add defensive GIL lock in the hooks
- Following the parso/jedi bumped, update the python completion
to use the new API.

(no-precommit-check)

Change-Id: I2e027361b17d0f0101763901ba3064b204a56799
2022-01-10 15:09:38 +00:00
Anthony Leonardo Gracio
af4c8f2d41 Update copyright year
(no-tn-check)
(no-precommit-check)

Change-Id: Id71d3f84cd6ab219a37821da1460038f4eea525c
2022-01-03 15:09:31 +01:00
Adrien Boulanger
a702e282dd TC16-004: Replace __cmp__ by the full comp/sort API
__cmp__ is not supported by python 3

Change-Id: I0ac93a54c60a583357cc311a6212f58d753ca1eb
2021-03-03 17:33:56 +01:00
Vadim Godunko
dc4569feaf T109-039 Fix compilation failure in dev env
Change-Id: I9cbbb00a0e454d16c4660c78b6384a864e5445ba
2021-03-03 09:06:07 +03:00
Vadim Godunko
d75f5ce0a8 T109-039 Protect calls to Python C API.
Change-Id: I53fa492609cf7c79839992265aa1d341347ca070
2021-02-22 13:28:54 +03:00
Anthony Leonardo Gracio
63c2e9d9c9 Update copyright year
(no-tn-check)
(no-precommit-check)

Change-Id: I50abdaba131d76d914f1df9a53f013ec8f48ca68
2021-01-11 17:22:37 +01:00
Adrien Boulanger
172aaf4eaf TA14-030: Python coverage in GS
Monitor the new environment variable GNATSTUDIO_PYTHON_COV.
This variable must be set to the name of the directory being
tested.

Add --pycov switch in the testsuite CLI.

Create a pycov_data repository containing:
- preferences in the form of .coveragerc
- pycov_startup.xml: when put in $GNATSTUDIO_HOME\startup.xml
enabled all the plugins.
- all the generated file in the form of .coverage.${test_name}

When all the file are generated, run:
$ coverage combine # ignore this if there is only one .coverage*
$ coverage report
$ coverage html    # optional

Change-Id: I4b45243924d939ede5b885ff86541a6d70571b0c
2020-11-04 14:42:43 +01:00
Andry Ogorodnik
fd3caf3477 S903-025 GS acronym has been added into Python API.
no-precommit-check

Change-Id: I785d68130051e8d12f4a6b627cb1ad5b48f903e5
2020-11-04 11:05:12 +01:00
Andry Ogorodnik
5a7e5d0193 TA29-031 Python console local toolbar with Clear button
Also "clear" command has been added for Python console

Change-Id: Ib2e5b2c73fecee4903fb3b8e362d1271cc4b3adf
2020-11-03 16:49:15 +01:00
Andry Ogorodnik
d9993c6c21 S903-025 Rename GPS to GNAT Studio in comments, strings
Depends-On: If8db363de9c59b395772b715a838e3a785b568d7
Change-Id: I509eebd12037a49e0ff751220c7f6911b7480694
2020-10-28 12:03:44 +01:00
Andry Ogorodnik
881ee959f8 SB22-061 Add gps_utils support for gnatstudio/plugins directory
Some customers place their plugins in this directory, so we add
gps_utils -> gs_utils alias immediately after gs_utils has been
loaded.

Change-Id: Icd4a88baf55c41d197e330e1627c2586a86fb5dc
2020-01-13 15:27:04 +01:00
Adrien Boulanger
4f4904c818 Update Copyright 2019 => 2020.
(no-tn-check)

Change-Id: I7b854142151c6fc934c80c14dbe085e8bc7f6bb7
2020-01-07 10:45:26 +01:00
Andry Ogorodnik
48011f905a S904-001 Rename GPS_help.py to GS_help.py
Change-Id: I9b80fdd16968aa96ab95a9087d976b5b4da90f52
2019-11-06 15:29:10 +01:00
Adrien Boulanger
4abdb169cc S904-001 Allow backward compatibility with gps_utils
In the python naming space, create a gps_utils module
which is the copy of gs_utils. This will prevent
breaking client plugins.

Update 2 tests. These tests were pushed during the renaming
Add a test.

Change-Id: Ie9a3aaf78ae8fe16440fb770ddec54a26d4c715d
2019-11-04 17:57:57 +01:00
Anthony Leonardo Gracio
b571ffe879 S904-003: Rename .gps directory and keys6.xml file
And add a mechanism to copy the old .gps directory to .gnatstudio
the first time. Rename keys6.xml to keys.xml when importing the old
.gpr directory.

Change-Id: I1e1ea2c123ae772a547561737e2309d4c081f239
2019-09-11 18:41:03 +02:00
Nicolas Setton
d39a93eff9 S904-002 replace GPS by GNAT Studio in file headers
Change-Id: Icee628af75e0f1bd471a627c987b8024d999eb4b
2019-09-09 12:39:04 +02:00
Anthony Leonardo Gracio
22cf269538 Update copyright year
(no-tn-check)

Change-Id: I27c5f49b41225d056dbc326411dd77b9516a766b
2019-01-03 16:37:00 +01:00
Maxim Reznik
3560f03230 R905-031 Fix get_analysis_unit function
Change-Id: I1e958968d1867184fab5b12b1e59b0e8ce6ec7b8
2018-09-07 13:59:16 +02:00
Andry Ogorodnik
b522aed82d R406-026 Preventing python finalization error
Change-Id: I163227331c3295b94a4d2c0cc047a1210908126b
2018-05-15 18:35:37 +03:00
Adrien Boulanger
e72d312e25 R131-031: Defensive progamming and correct the cleanup
The cleanup function was incomplete leading to constraint error
when running multiple gnathub sessions.

Change-Id: I76f23d6c6ef1c030eeac77fd8a1bec1276807f19
2018-03-28 14:03:33 +02:00
Anthony Leonardo Gracio
3a9ec123bc R212-029: Add new 'mdi_child_selected' hook
Change-Id: Iad500034b8c75f1f1a84a237091b51aa80cec058
2018-02-20 10:28:41 +01:00
Andry Ogorodnik
e09a6c2e21 R126-010 Properties/Traces has been added
Change-Id: Ief2494f6e619d6466e6050d928f328fd192bd134
2018-02-14 11:26:14 +01:00