1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00
Commit graph

35908 commits

Author SHA1 Message Date
Jonah Graham
4e35290c38 Bug 577097: Remove requirement to have pre-integration-test phase run
The proxy server products need to be built and signed before being
moved to the correct location. Prior to this patch this happened
in pre-integration-test phase, meaning that "mvn package" would
fail to build CDT successfully.

Therefore "pull" rather than "push" proxy-server to individual bundles.
If signing is not enabled, the proxy server product won't be signed,
but that is expected.

Also, to make sure the archiving happens in package phase, we need to
have some duplication so that archiving always is listed after signing.

Change-Id: I09ef2b6384ab6f6573352f85c068756e3792512f
2022-01-11 20:08:09 -05:00
Jonah Graham
3f2649a14d Bug 577097: Integrate o.e.remote releng into CDT
Change-Id: I55fbfcfae1c414ae21807473f4ab290db40b5238
2022-01-11 20:08:03 -05:00
Jonah Graham
8062a11eac Bug 577097: Add o.e.remote features to CDT's p2 repo
Change-Id: Ia5ef4a868d52389aefa3ef800a412ce53628da3e
2022-01-11 20:07:54 -05:00
Jonah Graham
fcc8fa8b5b Bug 577097: Add all file types to .gitattributes
Change-Id: I8ad682ae5edc8d55c5372676a721abe5e1ec32cf
2022-01-11 20:07:48 -05:00
Jonah Graham
7c8bb9f00e Bug 577097: Merge o.e.remote into CDT
Change-Id: I357cd9be2d7f4b4045ccbcb374ea5bfdc7626229
2022-01-11 20:07:20 -05:00
Jonah Graham
f282fdd0dc Bug 577097: Correct feature and bundle provider names
It is now Eclipse CDT providing these, so update to match

Change-Id: I4dec6071c1c3c63b8005587f9f8c1e73a0315a75
2022-01-11 20:06:11 -05:00
Jonah Graham
3ded7afd8a Bug 577097: Align o.e.remote feature versions with CDT
Change-Id: I32a8506bc8a22352adfd43c26f2ca71938d3ea6b
2022-01-11 20:06:00 -05:00
Jonah Graham
c81695c9ce Bug 577097: Add missing entries to build.properties
Change-Id: I2e505c364d3dbdeba850be324488a31a33802cfb
2022-01-11 20:05:38 -05:00
Jonah Graham
3e9dadd642 Bug 577097: Format all o.e.remote code to CDT standard
This is applying the per-project code formatting rules that would
be applied on save in the JDT editor

See also Bug 540373

Change-Id: Ie93f9b640d0f0cfce8711e72fabc87f6a89634fa
2022-01-11 20:05:34 -05:00
Jonah Graham
8980b1f104 Bug 577097: Update BREE to Java 11
Note that due to dependencies, the effective BREE was already
Java 11, this change simply formalizes that

Change-Id: I834766caf02a0ed5e1992b61050ca1bf9c6bb390
2022-01-11 20:05:31 -05:00
Jonah Graham
c1642591e5 Bug 577097: Normalize .settings to CDT standard
Change-Id: I1834c96b5f4c7c93637b343b1aed9d499df31134
2022-01-11 20:05:27 -05:00
Jonah Graham
98c9565dd2 Bug 577097: Rename script file to have an extension
Change-Id: I9d2a18bf6136af6d8ada437ba2a825270120139f
2022-01-11 20:05:19 -05:00
Jonah Graham
dcc4229829 Bug 577097: Normalize features to match requirements of CDT
Change-Id: Ib89a1f867d2f1007211eea0bd419d64ed03fed7a
2022-01-11 20:04:27 -05:00
Jonah Graham
13168b3745 Bug 577097: Move .gitignore where it is supposed to be
Change-Id: I00eb001958855c229a31e21425a3f5b9765d07ad
2022-01-11 20:04:24 -05:00
Jonah Graham
2d35961bcd Bug 577097: Fix line endings
Some of the o.e.remote files had bad line endings. This
commit standardizes them

Change-Id: I96a2a86752b7a500d2095567f972ba51d194ae92
2022-01-11 20:04:22 -05:00
Jonah Graham
928046e272 Bug 577097: Move o.e.remote into a subfolder
Includes removing redundant content that will be provided by CDT:
- .mvn/extensions.xml
- .gitignore
- CONTRIBUTING
- LICENSE
- NOTICE
- root pom.xmls

Note: if you get to this commit when searching history or
doing git blame, try adding --follow to force the history
back before this move.

Change-Id: I42bdbb2cf8e7f07d6608c32eaabf2b54151a1fb1
2022-01-11 20:04:18 -05:00
John Dallaway
82a24fcde9 Bug 575934: Initialize memory data before connecting to target
We must ensure that memory data is initialized before the restoration of
persisted memory monitors is triggered.

Change-Id: Id87809bb4de80785dbcfe444fd782efe41d6d086
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2021-12-28 13:07:07 +00:00
Michael Uhl
ceb39b8735 Bug 577907: IIllegalArgumentException on attach process dialog cause of
project with empty name

Change-Id: Ib45b75e27d8bf83eb90fa1020823190f4cd16e1b
Signed-off-by: Michael Uhl <Michael.Uhl@NashTech.Com>
2021-12-21 12:17:31 -05:00
Jonah Graham
8ac94b675f Bug 575046: Enable CDT update site to the latest release by default
Change-Id: Ib43acc4ecf5b67ee4508bd93928fdfd6807d2507
2021-12-14 11:37:12 -05:00
Jonah Graham
d3ad918c14 [releng] Update help-docs-eclipserun-repo in root pom.xml
and:
- bump versions of all the docs plug-ins.
- improve comment so that next person can do it more easily
- change to using https in the URL

Change-Id: I62bd970f03e1ce081d4655ddbf6c742be2623acd
2021-12-14 11:17:55 -05:00
Jonah Graham
f8b2d01109 [releng] Synchronize CDT.setup for final 4.22 platform release
Change-Id: Ic9654d0309538cd9fc50d95ea27c33e732b693a9
2021-12-14 11:12:46 -05:00
Torbjörn Svensson
a46254a9fa [releng] Update to final repository for 2021-12
Change-Id: I2ebf00dc21fc31c04714f6913f1e823d90bbc849
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-12-14 11:28:41 +01:00
Torbjörn Svensson
7a237aaa0e Fix usage or reserved symbols (<>&) in javadoc
Contributed by STMicroelectronics

Change-Id: Ifdf90e316d7537848bea8253973864f070b19b1c
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-12-05 18:11:29 +01:00
Jonah Graham
71ad45b382 [releng] Update to 2021-12 RC2 deps
Change-Id: Iaf291d047d7517586ca4c1c83b0708de3619632b
2021-11-29 17:58:48 -05:00
Jonah Graham
eaa83fc085 Add missing root LICENSE file
See https://gitlab.eclipse.org/eclipsefdn/emo-team/emo/-/issues/107#note_335851

Change-Id: I3858fd34b41743ed465dbed2df87083f2ac52c53
2021-11-29 17:58:48 -05:00
Jonah Graham
34b9d23951 [releng] Update to 2021-12 RC1 deps
Change-Id: Iec85fc3dee66bd4161087efc02aec727e99dc877
2021-11-22 12:18:10 -05:00
Jonah Graham
1a293f7a5f [releng] Update to 2021-12 M3 deps
Change-Id: Id14797d55be47e9975574f8c5245483e64978365
2021-11-15 20:07:51 -05:00
Alexander Fedorov
2e6a2cfe6d [releng] switch setup to use latest by default
Use eclipse.target.platform.latest
Sync with Target

Change-Id: Ife2508edb72eaa45bfe33618d3cbde47a5d34d6a
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2021-11-15 20:04:39 -05:00
Jonah Graham
13cdd8ada7 Bug 576533: Add support for Mac M1
-framework JavaVM is no longer needed for a while and in
latest Xcode is removed as an option

x86 on macOS is no longer supported by recent Xcode, so drop it
from CDT. x86 hasn't been supported in Platform for a while, so
it wasn't actually usable.

Change-Id: I149722b168fe9819ee334d4afd25ae624b1664c5
2021-11-15 15:32:29 -05:00
Jonah Graham
fa8a6279d2 Bug 577074: Fix i18n on import/export language settings
Side effect is that the indentation in the transformer now
works properly, so the extra newlines inserted everywhere
can be removed.

This change was done by changing the output to an OutputStream
instead of a Writer so that the XML handler could set the
encoding to match what was in the settings, i.e.:
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");

The non-translated language IDs are used in preference to the
translated names when importing. The export now puts that ID
(when available) in the output file. The ID is available on
normal user files (C, ASM, C++) and not on object files. The
object files probably don't have languages settings that are
exported, but this code does not exclude them from being exported.

Change-Id: I46de004bb8c6a0ca05210487a5d33390d397c720
2021-11-09 11:01:13 -05:00
Alexander Fedorov
d7c4d08c91 [releng] always place repository before unit elements for .target files
Format both baseline and regular targets

Change-Id: Idc3c4739fdca7c4311981dfc3fe652713bc024a2
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2021-11-06 20:33:51 +03:00
Alexander Fedorov
938453fd23 [releng] Add indents for .target files
Format both baseline and regular targets

Change-Id: I2498e77df38af844e2cbdb10376a3f2917e0b763
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2021-11-06 19:51:05 +03:00
Alexander Fedorov
e5dad24eed [releng] switch setup to use 2021-09 by default
Updated Baseline to 2021-09
Updated Target to 2021-09+

Change-Id: I9dd301b2b759452c743238626ac671008e2cd254
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2021-11-06 18:55:47 +03:00
Mat Booth
6e95a40a57 Bug 560287 - java.lang.CCE: o.e.swt.layout.GridData cannot be cast
Previously custom launch config tabs could cause a Class Cast Exception
in the Launchbar's edit launch config dialog if they did not use the
GridLayout. Since ed1e058 the launchbar dialog no longer tries to give
the tab control GridLayoutData, avoiding the problem and allowing custom
tabs to use whatever layout they wish.

This change updates the launchbar UI tests to Junit 5 and adds a new
SWTbot test to verify the dialog no longer throws a CCE in this case.

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: I05c85cd5f0f5996e46601990b72602383b3fac06
2021-11-05 13:51:07 +00:00
Mat Booth
ed1e05876c Bug 576987 - Unable to scroll when editing a launch config
The current situation is that:
* launch configuration dialog tabs scroll correctly in the standard
  Eclipse platform dialog, but not at all in the Launchbar-specific dialog
* some CDT-supplied launch configuration dialog tabs try to manage their
  own scrolling behaviour to fix scrolling in the Launchbar-specific
  dialog but this breaks scrolling for that tab in the standard Eclipse
  platform dialog.

This change fixes the launchbar-specific editor dialog to use a scrolled
composite instead of a regular composite on which to layout the content
of each tab -- This gives the launchbar's configuration editing dialog
exactly the same scrolling behaviour as the standard Eclipse platform
configuration editing dialog.

And also fixes any CDT-supplied tabs that try to manage their own
scrolling behaviour so now all tabs have the same behaviour when viewed
in the Launchbar-specific dialog as they do when viewed in the standard
Eclipse platform dialog.

Change-Id: I0d7364a24ca48bb125cae9518728b4c93b93545d
Signed-off-by: Mat Booth <mat.booth@gmail.com>
2021-11-04 11:18:50 -04:00
Mat Booth
ef30e37327 Bug 561996 - Remove dependency to com.ibm.icu from CDT DSF GDB
Switch to JRE implementations:
 * com.ibm.icu.text.MessageFormat -> java.text.MessageFormat

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: I823bcea99adad3decdfa29651b934b5902607f70
2021-11-03 18:28:19 +00:00
Christian Walther
f138ad10e8 Bug 575490: "No rule" after removing last source file from root
Include the top-level subdir.mk only when one was actually generated
(i.e. when there are source files there), just like for all other
subdir.mk, otherwise a stale one from earlier when there were source
files that have since been removed may be picked up, causing "No rule to
make target" errors.

In some cases (from bug 303953), the removal would be noticed and the
stale subdir.mk be overwritten by a correct empty one, avoiding the
error, but not in the following cases:
- When CommonBuilder.performCleanning() decides that a full rebuild is
needed, regenerateMakefiles() is called instead of generateMakefiles(),
which doesn't get the delta.
- When the refresh in which Eclipse notices the removed source file
happens as part of a build (one that probably failed because the
makefiles weren't updated yet), the next build after that apparently
does not get the delta containing the removal anymore.

Change-Id: Id15b424f02dd5c513d2124620c0c8699d61874fd
Signed-off-by: Christian Walther <walther@indel.ch>
2021-11-02 12:45:10 +01:00
Christian Walther
3afae27158 Bug 575702: Nondeterministic makefile ordering
Several parts of makefile output were generated by iterating over
HashMaps, which do not have a deterministic iteration order. Use
TreeMaps instead to output in sorted order. This is possible now that
the API function with return type HashMap is no longer public API and
can be changed to return Map instead.

Benchmark files for affected tests are updated to the new ordering.
This would not be strictly necessary: the tests would also succeed
without, since org.eclipse.cdt.managedbuilder.testplugin.
ManagedBuildTestHelper.compareMakefiles() uses a reordering-tolerant
comparison. However, recording the new (now hopefully stable) order
makes future development on makefile generation easier by avoiding
spurious diff output when tests fail due to changes to other parts of
makefiles.

Change-Id: I20f2e51bd5b9e3bcc5da245d781ca5b4a34fc0b2
Signed-off-by: Christian Walther <walther@indel.ch>
2021-11-02 10:47:17 +01:00
Christian Walther
32a6ad1f4d Bug 575702: Nondeterministic makefile ordering (prelude)
This fixes a small and rarely hit in practice regression regarding
nondeterministic ordering in makefile output introduced in 15c29eb (bug
505882).

Multiple values for a build output variable were previously output in
definition order. Now they are generated by iterating over a HashSet,
which does not have a deterministic iteration order. Use a TreeSet for
output in a consistently sorted order instead.

Output variables with multiple values are rare (most tools generate one
output file of a particular type) and this case was not exercised in the
existing unit tests. Modify one such that it does (even if in a somewhat
contrived situation). Of note, ${OUTPUT} cannot be used in the
commandLinePattern for such a tool because it squashes the multiple
values into a single quoted file name - misuse ${FLAGS} instead.

Change-Id: Iaa28525c21d74c87dd4d72a03e334ed0e5576727
Signed-off-by: Christian Walther <walther@indel.ch>
2021-11-02 10:40:32 +01:00
Mat Booth
a957e8121d Bug 575145 - Importing CMake/Meson Projects
Add API to o.e.tools.templates.ui that hooks into the smart import
feature and allows easy implementation of configurators for various
CDT project types.

Project types that have a IGenerator may use this API to offer smart
import functionality by registering their implementation using the
org.eclipse.ui.ide.projectConfigurator extension point.

This change includes project import implementations for Meson and
CMake project types.

For these project types users can use the normal project import
workflow for their existing non-Eclipse CMake projects instead of
using the New Project Wizard. As an additional benefit, users
can now also import more than one project at a time, even nested
projects.

Change also includes SWTBot tests to exercise the feature.

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: I96589e86bee561aa200a4a4487549305765d6409
2021-10-31 11:21:35 +00:00
Mat Booth
172d3a25dc Bug 576957 - Incorrect javadoc links in doc.isv bundle
Since fd9382d CDT has required Java 11, this change fixes the Javdoc
shipped as part of the doc.isv bundle to link to Java 11 classes
instead of Java 8 classes.

Fixes the following warning seen during the build: "javadoc: warning
The code being documented uses modules but the packages defined in
https://docs.oracle.com/javase/8/docs/api/ are in the unnamed
module."

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: I1d02742222686e3284bcc200fd6a5b4c3099695b
2021-10-29 11:41:39 -04:00
Torbjörn Svensson
126cf32803 [test] Remove projects from workspace even on failures
If these tests fail, they cause a series of metadata corruption that
will render most/all test executed after as unreliable. Usually, there
is about ~150 test cases that fail without reason when one of these
fails.

Contributed by STMicroelectronics

Change-Id: Ic71ace8b6a55c49dd729d40385b245f12dbd6d85
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-10-28 21:20:14 +02:00
Torbjörn Svensson
6688a93e5f Remove unneeded pom.xml and maven attribute
Tycho will automatically generate the content of the pom.xml, so no
need to define it explicitly.
The maven attribute reports an error in the problem view that cannot be
fixed without manually removing the attribute. Left from an earlier
version of the plugin?

Contributed by STMicroelectronics

Change-Id: I733f2b048e8d80eca8bceee1526734b4c4dbd75b
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-10-25 18:57:28 -04:00
Jonah Graham
c12f9e28c0 [releng] Require target platform bundles as minimum version
Without setting dependent plug-ins to minimum version to match the
target platform we are aiming for we can imply (and therefore let install)
CDT into older versions of Eclipse where CDT does not actually work.

This can be exposed in very odd ways, such as IllegalAccessError, when
platform has allowed API changes.

However, rather than update every single bundle in CDT, only the
o.e.cdt.core/ui bundles are being updated as this should achieve the
desired result without every other bundle needing to be touched.

See Bug 536448

Change-Id: I6f57e19044facd65a9214204efc9c8b2c2201590
2021-10-25 18:56:15 -04:00
Jonah Graham
c13962fcd7 [releng] Update to latest dependencies (2021-12 M2)
This includes requiring older version Hamcrest as the org.hamcrest
bundle was recently update in Orbit to a new major version that
isn't compatible.

Change-Id: I7cb23f0be058d1404b93b1a76cbfe8182a3ded14
2021-10-25 18:56:15 -04:00
Jonah Graham
e60ef74ebb Bug 576884: Ignore unsuitable adapter when the UI layer isn't running
When the UI layer is running the correct terminate adapter is returned,
when the UI layer is not running, the Launch.terminate code is a valid
fallback, and the org.eclipse.debug.internal.core.commands.TerminateCommand
is not an appropriate adapter to use.

Change-Id: I3c4c273b78b4e5bc9fe521b4a24ef5443852d3c0
2021-10-25 18:56:15 -04:00
Torbjörn Svensson
994ea12856 Bug 574131: Make the graceful exit time configurable
Contributed by STMicroelectronics

Change-Id: I8ca32b2440ef1cc81bf5b9ddd70b6b4222a29261
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-10-25 21:59:02 +02:00
Mat Booth
8db32cb918 Bug 561998 - Remove dependency to com.ibm.icu from CDT DSF GDB UI
Switch to JRE implementations:
 * com.ibm.icu.text.MessageFormat -> java.text.MessageFormat

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: Ib21c4c31cdc28bf70df2688a403afcf25a81cadc
2021-10-25 04:23:08 -04:00
Torbjörn Svensson
38d45364cf Bug 505882: Drop internal IManagedBuildGnuToolInfo interface
The interface has no use as it's hardcoded to be an instance of
ManagedBuildGnuToolInfo in the GnuMakefileGenerator anyway.

Contributed by STMicroelectronics

Change-Id: I0e9130ef485d103e7114e0d122015c062253b4bb
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-10-24 13:16:52 -04:00
Torbjörn Svensson
81a85f8ae9 Bug 505882: Remove deprecated functions
Contributed by STMicroelectronics

Change-Id: Ib811a02cc97ee8afd2343b82b1c7e2e76f9ed0e6
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-10-24 13:16:52 -04:00