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

35992 commits

Author SHA1 Message Date
Jonah Graham
989fba22fd [releng] Update comparator repo for 2022-12 M1 2022-10-03 12:42:37 -04:00
Jonah Graham
1d462315c1 Save canonical version of these files
Eclipse seems to change these files regularly to have
Service-Component last, so commit them that way.
2022-10-03 12:42:37 -04:00
Jonah Graham
b577257db1 Correct @since tags
Since tags should be major + minor only. maintenance releases
can't change API which is why it doesn't need to be specified.
2022-10-03 12:42:37 -04:00
Jonah Graham
e204bee657 [releng] Update to 2022-12 M1 target platform 2022-10-03 12:42:37 -04:00
Jonah Graham
705712ccfd [releng] Update to latest Tycho
I think this is required to allow Java 17 to work properly.
2022-10-03 12:42:37 -04:00
Jonah Graham
f0c2358276 Migrate New and Noteworthy from Wiki to GitHub
This commit migrates all the N&N content from
https://wiki.eclipse.org/CDT/User/NewInCDT to GitHub.

For newer releases (>= CDT 10.0) the entire content has
been rewritten in GitHub flavour Markdown. For older
releases, the N&N page has simply been saved in a
rendered format.
2022-10-02 20:46:56 -04:00
Jeff Johnston
e5fde4ad58
Replace deprecated ViewerObservables with ViewerProperties (#76)
- fix ContainerTab and ContainerPropertyTab
- fixes #73
2022-09-26 21:29:52 -04:00
Jonah Graham
e47a150db8 Remove old m2e connectors
With m2e upgrading to 2.0 in 2022-09, the old m2e connectors
don't work anymore and generally aren't needed either.
2022-09-26 14:31:13 -04:00
15knots
9c8986b3b1
Merge pull request #72 from 15knots/main
make the cmake error parser public API
2022-09-14 23:44:23 +02:00
Martin Weber
3d62e1696c make the cmake error parser public API
Change-Id: I2ab5d659e01ace32dbd61ffada18e2f8f47bc5cf
Signed-off-by: Martin Weber <11367029+15knots@users.noreply.github.com>
2022-09-13 20:20:14 +02:00
Jonah Graham
0610c366b7 Bug 579666: Document that fields in newui.AbstractPage have been removed 2022-09-09 20:18:47 -04:00
Jonah Graham
81785221b4 Bug 579666: Make fields private/non-API that were previously marked for removal 2022-09-09 20:18:47 -04:00
Torbjörn Svensson
3af7d50c4a Improve dark theme on Windows
Switch to CTabFolder/CTabItem for newui.
This changeset is a breaking change but on a review of existing
adopters/extenders of CDT no one is actually accessing these fields.

Change-Id: Ic1ef0f242c1d2932726f3a6d4c9df9558312764a
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
Also-by: Jonah Graham <jonah@kichwacoders.com>
2022-09-09 20:18:47 -04:00
Jonah Graham
93fbce4f2c Bump cdt.ui major version for CDT 11.0 development 2022-09-09 20:18:47 -04:00
Jonah Graham
0c6fb15274 Run the archiving of artifacts first
If the build fails before any test reports are generated, at least
save the artifacts that are there before failing the build due to no
test files.
2022-09-09 20:18:47 -04:00
Jonah Graham
2c3f1110ca
Bug 580365: Explicitly use bash for standalone debugger shell scripts (#69)
The scripts assume that /bin/sh is bash, but it isn't on all installs,
in particular Ubuntu: https://wiki.ubuntu.com/DashAsBinSh

Change-Id: I8ea05b2ffd1fd41b3aa1e6b395e43fc15a15321f
2022-09-09 17:10:08 -04:00
Jonah Graham
c84e47a711
Don't error when stack service in unavailable (#61)
The only time the stack service is unavailable is:
1. Stack service hasn't been started yet
2. Stack service has been shutdown
3. Stack service never gets created

All of these cases are configuration error, except (2). In (2) the
stack service isn't available to do source lookup, so instead
of an error, simply return no file (aka null)

Fixes #53
2022-09-09 14:50:00 -04:00
John Dallaway
4a8cf1c6e9
Accommodate ELF executables with any file suffix (#68)
Issue #65
2022-09-08 08:43:17 +01:00
Jonah Graham
b51804c7ed
Fix issues link in markdown 2022-09-07 15:26:37 -04:00
Martin Weber
d1a43d5417 avoid StringIndexOutOfBoundsException on close. Fixes #66
Signed-off-by: Martin Weber <11367029+15knots@users.noreply.github.com>

Change-Id: I816b8ee5852e6b25011a611c07c54d0a814a74d8
2022-09-07 15:25:38 -04:00
Moritz 'Morty' Strübe
52483c01c2
Docker: Allow setting a mapping for docker paths (#46)
* Docker: Allow setting a mapping for docker paths

Bug 579944 introduced using Windows paths, to allow putting your project
into the WSL's file system.
While Docker for Windows (the commercial version) supports Windows
paths, this does not work with a OSS-docker installed in the WSL.
It is now possible to provide a path mapping to work around this.

Co-authored-by: Jeff Johnston <jjohnstn@redhat.com>
2022-08-30 15:40:28 -04:00
Jonah Graham
c0e9b347a2
Part of #32: Document the redirects for eclipse.org/cdt to GitHub (#60) 2022-08-22 20:36:41 -04:00
Jonah Graham
45f7fd7079 Correct path to promote script 2022-08-22 19:31:40 -04:00
Jonah Graham
8b0ea1fd07 Default to not publish standalone
As we don't publish it anymore normally, make that the default
2022-08-22 18:10:12 -04:00
Jonah Graham
4d41a5df89 Use standard filename extension for releng template
This file is hardly (if ever) used anymore, but lets make it
fit in well with the rest of CDT
2022-08-22 18:09:22 -04:00
Jonah Graham
10dbee9110 Make shell scripts executable 2022-08-22 17:55:50 -04:00
Jonah Graham
15a96b3915 Update references of git.eclipse.org to github 2022-08-22 17:43:40 -04:00
Jonah Graham
5d40878d1b [releng] Prepare for CDT 10.7.1 downloads 2022-08-22 17:43:40 -04:00
Jonah Graham
b334b94bae [releng] Migrate promote build releng to main CDT repo 2022-08-22 17:43:40 -04:00
Jonah Graham
42a7aa82d6
Update FAQ instruction on running test suite (#58)
as a result of the conversation on PR #54 we identified the FAQ
on this item was out of date.

https://github.com/eclipse-cdt/cdt/pull/54#issuecomment-1222596313
2022-08-22 16:59:31 -04:00
Davin McCall
6445ec4890
Bug 580325 - constexpr evaluation of builtins for clrsb, clz (#52)
Adds constexpr evaluation for some additional compiler builtins. This is
probably the last lot few builtins that can reasonably be
constexpr-evaluated in CDT.
2022-08-22 12:18:26 -04:00
Christian Walther
ef195dbb73 Fix flaky tests in BuiltinSpecsDetectorTest
testAbstractBuiltinSpecsDetector_EnvChangesGlobal did not properly clean
up after itself, which caused
testAbstractBuiltinSpecsDetector_EnvChangesConfiguration_1,
testAbstractBuiltinSpecsDetector_EnvChangesConfiguration_2, and
testAbstractBuiltinSpecsDetector_EnvChangesGlobal to fail when run for
the second time in the same session.

Running tests twice is not useful, but happens in Eclipse with a launch
configuration set to run all tests in
org.eclipse.cdt.managedbuilder.core.tests/tests - once directly and once
through AllLanguageSettingsProvidersMBSTestSuite. I have not found any
way of running every test exactly once in the GUI.
2022-08-22 12:17:50 -04:00
Christian Walther
5f3cd7ac20 Fix flaky test testPersistentProperties
Don't sleep for a hardcoded time but wait for the actual condition.
1000 ms was often insufficient on my system.
2022-08-22 12:17:50 -04:00
Ed Merks
ccdd9b2c99
Simplify the API baseline target (#42)
Also simplify the corresponding API baseline targlet in the setup

https://github.com/eclipse-cdt/cdt/issues/39
2022-08-22 11:54:05 -04:00
githubaf
9ce74a7145
Do not mark "removing unused section" lines as errors (#19)
gcc linker outputs "removing unused section" to stderr when the option "--print-gc-sections" is used. That is fine. 

Eclipse CDT reports all these lines as errors however and the build seems to have failed, which is wrong.
The was a bug report Bug 539927: Do not mark "Removing unused section" lines as errors and a fix
To fix this bug a change was made 2020-12-02 05322656c6
-CDTGNULinkerErrorParser.regex.LdMode=(.*[/\\\\])?ld(\\.exe)?: (mode .*)
+CDTGNULinkerErrorParser.regex.ldInfo=(.*[/\\\\])?ld(\\.exe)?: ((mode|Removing unused section) .*)

That does however not solve problem entirely, as the output of gcc linker is "removing", not "Removing", i.e. the word "removing" starts with a lower-case "r"
To fix that problem both R and r should be accepted.
2022-08-22 11:42:57 -04:00
Jonah Graham
323057845e
Remove parallel in Jenkinsfile #55 (#56)
Until we can resolve the resource deadlock, stop
building in parallel.
2022-08-22 09:15:03 -04:00
Torbjörn Svensson
2089c1d314 Fixed links in md files
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-08-17 13:31:28 +02:00
Torbjörn Svensson
5aee96dfb4 Fix widget is disposed error during shutdown
After building a project and shuting down eclipse, the build console
will have a propertyChange event fired that will attempt to modify the
stream and background color that will trigger a use-after-dispose error
from SWT. This changeset ensures that the action is only taken on
non-disposed widgets.

Contributed by STMicroelectronics

Change-Id: I872c28da1b2fca7ec39f5b12d9d1ec398e559814
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-08-16 16:04:11 +02:00
Torbjörn Svensson
054e494e10 Bug 580113: Do not reuse ICommandLauncher
Each command should have it's own command launcher. The alternative is
to ensure that the previous command has finished prior to launching the
next one, but that's harder to acchieve as it's up to the consumer of
Builder to fullfill.

Contributed by STMicroelectronics

Change-Id: I17038220ccd7c1767328ecfce92f28d8205c1d56
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-08-16 16:03:27 +02:00
Torbjörn Svensson
4a1e0f467b Bug 580113: Expose concurrent invocations
The class CommandLauncher holds an internal state of the process and
it's command line. To avoid corrupting the internal state, only allow
executing new commands if the previous command is finished.

Contributed by STMicroelectronics

Change-Id: If41816f6b642953776a4fea3df9f341a17712222
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-08-16 16:03:27 +02:00
John Dallaway
a9c3819565
Bug 580286: Accommodate extra flags with internal builder (#31) 2022-08-15 18:56:10 +01:00
Ed Merks
9695d54244
Update CONTRIBUTING.md (#41)
I've added the badge-styled link to the configuration.  I've commented out the section with detailed steps because the configuration automates all those steps and because the page opened by the link also has all these instructions.

The description on that page has a description specific to CDT.

It comes from here:

455f7fc25a/releng/CDTConfiguration.setup (L37-L49)

Best to use the properties view to edit this content so that the XML is properly escaped.
2022-08-13 14:33:09 -04:00
Alexander Fedorov
455f7fc25a
Merge pull request #40 from merks/issue-39
Improve CDT's setup
2022-08-12 22:15:30 +03:00
Ed Merks
4e40dda89f Improve CDT's setup
Include a configuration, simplify the targlet for the target platform,
and enhance the working sets based on folder structure.

https://github.com/eclipse-cdt/cdt/issues/39
2022-08-12 12:04:56 +02:00
Alexander Fedorov
0bbf9af467
Merge pull request #38 from merks/issue-37
Filter nested projects from org.eclipse.cdt.root
2022-08-12 12:36:51 +03:00
Ed Merks
97227b1886 Filter nested projects from org.eclipse.cdt.root
https://github.com/eclipse-cdt/cdt/issues/37
2022-08-12 09:39:25 +02:00
Jonah Graham
511a920e01
Add org.apache.commons.io to CDT's p2 site (#25)
See https://github.com/eclipse-cdt/cdt/issues/21
2022-08-11 17:08:54 -04:00
Ed Merks
5481522e1f
Bug 580505 - Fix and improve CDT.setup (#34)
Don't install org.eclipse.pde.api.tools.ee.feature.feature.group because
it's no longer in the latest update site, and that causes problems like
this one as noticed by a user:

https://www.eclipse.org/forums/index.php?t=msg&th=1111320&goto=1854139&#msg_1854139

Move all the tasks up to the project level.

Include a * requirement on the CDT targlet so that all projects are
imported by the targlet task with no need for a separate import task.
Probably many of the explicitly listed requirements are no longer needed
because all requirements of all projects in the clone are resolved now
automatically.  Also ensure that all platforms are resolved so that all
of CDT fragments are imported.

Move the Git clone task before the modular targlet task so that the
clone is available during the first resolution.

Add an EclipseIni task so that the CDT.setup is redirected into the
local clone's version such that you can modify that setup and test it
locally via Help -> Perform Setup tasks (and so that Navigate -> Open
Setup -> CDT opens the editable workspace version).

https://bugs.eclipse.org/bugs/show_bug.cgi?id=580505
2022-08-11 12:07:53 -04:00
Jonah Graham
984de1306e Update shields URLs for new Jenkins' job structure 2022-08-11 11:39:00 -04:00
Jonah Graham
08d1275db2 Add simple instructions on connecting GitHub and EF accounts 2022-08-11 11:21:47 -04:00