1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00
Commit graph

35959 commits

Author SHA1 Message Date
Jonah Graham
e874e9b95d
Add lack Dwarf5 support to release notes
Part of #198
2022-12-07 19:54:49 -05:00
Jonah Graham
1fbd271b0c [releng] Use final locations for Platform build
This is the last part of finishing up 11.0.0 release, the Platform
I-Builds will be deleted soon so we point to the same versions
of those dependencies in their permanent locations.

Part of #77
2022-12-07 15:55:29 -05:00
Jonah Graham
fb081b9975 Fixup "CDT 11.0 p2 composites on download.eclipse.org"
This file wasn't saved in my editor before I pushed the
original commit
2022-12-07 14:59:21 -05:00
Jonah Graham
028eabcaa1 CDT 11.0 p2 composites on download.eclipse.org 2022-12-07 14:34:20 -05:00
徐持恒 Xu Chiheng
352630b8ea
ProcessFactory.java : envpToEnvMap() consider null envp (#195) 2022-12-06 16:05:28 -05:00
徐持恒 Xu Chiheng
ac64d4aedc
refactor ProcessFactory to help debugging (#191) 2022-12-06 13:20:38 -05:00
徐持恒 Xu Chiheng
9114ac3ff2
refactor ProcessFactory.java to put all process creations in one function. (#188)
* refactor ProcessFactory.java to put all process creations in one function.

Prerequisite of #187

* add missing $NON-NLS$ tags
2022-12-03 12:06:28 -05:00
徐持恒 Xu Chiheng
f41d5ff25b ignore top directory editor temp files 2022-12-03 11:14:33 -05:00
Jonah Graham
2697b16984
Update information on development builds downloads 2022-12-01 11:46:15 -05:00
Jonah Graham
b7931a827b
Use releases page for current download links
Instead of having to update this page on each
release, add a new release to
https://github.com/eclipse-cdt/cdt/releases
and include the links there.
2022-12-01 11:44:18 -05:00
Jonah Graham
f22c6aec67
Add a link to Noteworthy issues/PRs to N&N doc 2022-12-01 11:30:17 -05:00
Jonah Graham
1087dc5f22 [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
Part of #77
2022-11-29 16:20:31 -05:00
Jonah Graham
74f321cbca Migrate run-dash-licenses from cdt-infra to main CDT repo 2022-11-29 14:15:25 -05:00
Jonah Graham
9ab0f2f256 [releng] 2022-12 RC2 dependency versions
Part of #77
2022-11-29 08:09:57 -05:00
Moritz 'Morty' Strübe
f9e426b5ed Bug: Docker: Do not pull all tags
If the latest tag did not exist locally and no tag was given for an
image, all tags were pulled.
2022-11-28 20:15:09 -05:00
Moritz 'Morty' Strübe
7966c42ecb Bug: Docker: Save correct docker image name
When the docker image was not locally available the name of the image
was not correctly saved
2022-11-28 13:44:10 -05:00
Jonah Graham
1d73f112dc Use mi-async instead of target-async on GDB >= 7.12
target-async is the old name for mi-async. mi-async came
into existence in GDB 7.8, but in later releases it becomes
a warning to use the old name.

Because we already have the version infra for 7.12 we
change to using mi-async from 7.12

A similar change was made for
[cdt-gdb-adapter a while ago](https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/blob/main/src/GDBBackend.ts#L114-L116)

Fixes #176
2022-11-22 11:43:01 -05:00
Jonah Graham
1b19ba20c2 Update to latest Eclipse Platform and Orbit
Includes logging changes/simplification brought on by
https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/issues/588
2022-11-21 19:05:08 -05:00
Jonah Graham
1d0550a9f1 Cosmetics. 2022-11-21 18:57:10 -05:00
Jonah Graham
73fae6d6c1 Add missing @since 2022-11-21 18:57:10 -05:00
Jonah Graham
60f668f259 Resolve deadlock in Jobmanager related code
Because of
[changes](https://www.eclipse.org/eclipse/news/4.26/platform_isv.php#JobManager_Implementation)
in Eclipse Platform where the jobmanager's behaviour changes (within
the API), the consumers of the jobmanager can deadlock due to incorrect
assumptions.

In particular, where we call job.schedule(), the callback can happen
in different threads to the IJobChangeListener's. As CDT was holding
a lock while calling schedule that is also required in those
listeners, we need to no longer lock when calling schedule.

As the code already dealt with the case of when there was a delay
between the job.schedule() and where & when it was run, we can
move the schedule call out of the synchronized block.

Fixes #81
2022-11-21 18:00:03 -05:00
Jonah Graham
afabfd9cc6 Document using DISPLAY when running UI tests 2022-11-21 12:14:05 -05:00
Jonah Graham
5c1f041c6d Add a 90 minute timeout on GitHub actions (instead of 6 hour one) 2022-11-21 11:24:43 -05:00
Jonah Graham
b8bd15844b Bug 571722: Add ALL_FLAGS for scanner discovery
This change adds the ALL_FLAGS that does not limit tool options to
those declared as IOption::isForScannerDiscovery when launching the
compiler to discover compiler built-ins.

This is needed as many other flags, either entered manually in "Other
flags" or some of the existing flags with checkboxes such as "-ansi",
"-fPIC", and "-fstack-protector-all" which all affect scanner discovery
as they can all change what macros are built-in to the compiler.

The current solution has as a drawback that some settings, like -I and -D
then appear twice. For example in the "Includes" node in the "Project
Explorer"

My only reservation about this change is if there is an option
that can be specified successfully at build time, but when used
at scanner discovery time causes the compiler to fail, or return
incorrect results. Therefore I have added a new field,
excludeFromScannerDiscovery to tool options (buildDefinitions
extension point) that allows tool integrators to always exclude
a command line option from ALL_FLAGS. I have also added
a new "Other flags (excluded from discovery)" to the
"Miscellaneous" tab to allow compiler options to be entered
by the user.
2022-11-21 10:46:49 -05:00
Jonah Graham
c4761cfd02 fix code cleanlines 2022-11-18 10:55:40 -05:00
John Moule
4877f526ce Bug 580015: add support for multiple bin parsers #75
Update API and News documentation.
2022-11-18 10:55:40 -05:00
John Moule
c4c63453c3 Bug 580015: add support for multiple bin parsers #75
Fixed build props of new test plugin.

Fixed test, cleanup project afterwards.
2022-11-18 10:55:40 -05:00
John Moule
fc821a41e7 Bug 580015: add support for multiple bin parsers #75
Added remaining project metadata for new gcc test plugin.
2022-11-18 10:55:40 -05:00
John Moule
7759af22d6 Bug 580015: add support for multiple bin parsers #75
Removed ICBuildConfiguration.getBinaryParserId() and
IToolChain.getBinaryParserId(). Replaced with methods that return a list
of IDs.

Updated API changes doc.

Rearranged tests so that the test for IToolChain is in a new gcc test
plugin.
2022-11-18 10:55:40 -05:00
John Moule
c52de83035 Update for major version bump
Update since tags to 8.0.
Remove api filter.
Fix other since tags after removing of api filter.
Remove interface defaults.
Add default implementations where necessary.
Update tests - TBC.
2022-11-18 10:55:40 -05:00
John Moule
234e98d71d Bug 580015: add support for multiple bin parsers
Added ability to return a list of binary parser IDs, rather than a
single ID. This supports build configurations that have multiple
binaries with for example cross toolchains.

Change-Id: I1b7e47bf6a86bbd9f1c6b9646d008bac9479417d
2022-11-18 10:55:40 -05:00
Erwin Waterlander
8c9faa1a50 Indexing source files when multiple toolchains are used.
This change solves the indexing of C/C++ files when multiple
toolchains are used in a single Makefile. This is for the use case in
which one (Linux) gcc compiler plus one or more custom embedded C
compilers (all producing ELF format binaries) are used.

To get proper indexing we need to know for each resource which
toolchain was used. The sub build configuration (via extension point
org.eclipse.cdt.core.buildConfigProvider) extends
StandardBuildConfiguration.java, and overrides method IToolChain
(List<String> commandgetToolChain). tcMap is filled with a map of
toolchains per resource. The primary toolchain keeps pointing to the
gcc toolchain.
2022-11-16 11:26:25 -05:00
John Dallaway
171e7e3047
Fix CHANGELOG-API anchor (#168) 2022-11-15 21:35:27 +00:00
Jonah Graham
e05cdd2f4c
Invite feedback on move to GitHub 2022-11-14 19:12:41 -05:00
Jonah Graham
354054fd68
Not github migration on N&N 2022-11-14 19:10:58 -05:00
Jonah Graham
3f682d7b00 Update to latest Orbit which means new mockito version
Note that FileBasedErrorParserTests had to change because of some
Tycho incompatibility with JUnit's ParameterizedTest. It works
in the IDE, but not in maven.

The correct fix is to resolve the tycho settings, see Bug 569949
for a previous example. It may also be simply resolved by updating
to Tycho 3.0.0. However I want to get this change in as
at the moment CDT.setup is broken and that is impeding developers.
2022-11-14 16:04:19 -05:00
Mat Booth
1d0c77de2c Correct typographical error in remote console translation 2022-11-12 11:04:20 +00:00
Moritz 'Morty' Strübe
2939007bac
Docker: pull image automatically (#96)
* Bug 566810: Pull Docker image if necessary

Change-Id: I948e3a273ae598efe563b150922a7bc4b696d05c
Signed-off-by: Moritz 'Morty' Strübe <moritz.struebe@mathema.de>

* docker.launcher: Add tests

* Docker: Fix NPE

This NPE was triggered when the docker image was deleted in the
background.

Change-Id: I7fe8f9204a2f60a5d2396bbc2ec67c7ae820a60a
Signed-off-by: Moritz 'Morty' Strübe <moritz.struebe@mathema.de>

* Bug 566810 Allow setting any Docker image

Allow setting any docker image as string in the input field. There is no
verification yet. If the docker image exists, it is set accordingly.

Change-Id: Iec21798cf79206151067d1e2f3a7ec933f1d0b7d
Signed-off-by: Moritz 'Morty' Strübe <moritz.struebe@mathema.de>

* Bug 566810 Remove volumes immediately

As it is now possible to insert any string, the volumes added by the
image, should be removed immediately, too.

Change-Id: I6c843a2b1e551372e0dff22185d6152faecd72f3

Signed-off-by: Moritz 'Morty' Strübe <moritz.struebe@mathema.de>
2022-11-11 18:51:36 -05:00
Jonah Graham
1689f1947c Remove .. folder entry in zip file
This resolve the following exception during the build:


!ENTRY org.eclipse.ui.ide 4 4 2022-11-11 09:45:42.503
!MESSAGE Entry is outside of the target dir: ../
!STACK 0
java.io.IOException: Entry is outside of the target dir: ../
	at org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider.initialize(ZipFileStructureProvider.java:190)
	at org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider.getChildren(ZipFileStructureProvider.java:113)
	at org.eclipse.ui.wizards.datatransfer.ImportOperation.importRecursivelyFrom(ImportOperation.java:781)
	at org.eclipse.ui.wizards.datatransfer.ImportOperation.execute(ImportOperation.java:385)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.lambda$0(WorkspaceModifyOperation.java:110)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2380)
2022-11-11 11:34:37 -05:00
Jonah Graham
448c8745e8 Delete dead code. 2022-11-11 11:34:37 -05:00
Jonah Graham
a27d4a3bb7 Mark for removal API not accessed within CDT (or Embed CDT) 2022-11-11 11:34:37 -05:00
Moritz 'Morty' Strübe
848ce9c10b cleanliness.sh: Exit if stash is needed 2022-11-11 11:34:04 -05:00
Moritz 'Morty' Strübe
76fe5e6e2d Make running code cleanliness less painfull
* Only check for modifications in tracked files
* Tell the user to stash stuff, before running
2022-11-11 10:41:08 -05:00
John Dallaway
fa14e99ff8
Workaround EASE 0.9.0 headless startup issue (#156)
We register org.eclipse.cdt.codan.internal.ui.cxx.Startup with EASE to
avoid triggering bug 580960.
2022-11-10 19:37:21 +00:00
Jonah Graham
1893069eb5 Remove unmaintained LSP and DAP support from CDT
Fixes #139
2022-11-09 19:47:22 -05:00
Jonah Graham
939da0a445 Provide Issue and PR templates
Part of #32
2022-11-09 10:56:55 -05:00
Jonah Graham
611ea03ab0 Update wiki.eclipse links to their new locations
I have not updated links in old N&N pages from before CDT 10.
I have not updated non-CDT links.

Part of #32
2022-11-09 10:56:55 -05:00
Jonah Graham
15ee18e027 Stop synchronizing user guides from Wiki
The primary location for these user guides is now the Git repo in HTML
format.

Part of #32
2022-11-09 10:56:55 -05:00
Jonah Graham
dcea86c4a2 Fix old link to IP log
The new link is where the old link redirected to
2022-11-09 10:56:55 -05:00
Jonah Graham
92c9ed1622 Move https://wiki.eclipse.org/CDT/StandaloneDebugger to GitHub
Part of #32
2022-11-09 10:56:55 -05:00