1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00
Commit graph

36216 commits

Author SHA1 Message Date
Jonah Graham
f7a63377a6
Prepare repo for 11.5.0 (#633) 2023-12-06 18:48:15 -05:00
Jonah Graham
a9e1ddb81e CDT 11.4.0 composites
Part of #548
2023-12-06 10:25:26 -05:00
Jonah Graham
029e4bda78 Prepare repo for 11.4.0 RC2 2023-11-27 11:08:34 -05:00
Jonah Graham
4aa793a651
Use the bundle providing javax.activation package in simrel (#626)
Because javax.activation 1.2.2.v20221203-1659 is in SimRel (for now)
it gets picked by p2 over jakarta.activation-api 1.2.2 which provides
the same packages.

As and when we update to Jave EE 9 (IIUC) we should be able to solve this
in a cleaner way and not rely on the old orbit bundles. Also, if and
when all projects contributing to simrel remove 1.2.2.v20221203-1659 then
we can change too.

The other option is to try to force the jakarta.activation-api 1.2.2 into
simrel and the EPP packages, but if we accidentally end up with both in
a product then other things don't work, e.g. like this error:

<details>
<summary>frame work error details</summary>

```java
!ENTRY org.eclipse.cdt.debug.application 4 0 2023-11-20 15:06:47.456
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.cdt.debug.application [101]
  Unresolved requirement: Require-Bundle: org.eclipse.cdt.dsf; bundle-version="2.4.0"
    -> Bundle-SymbolicName: org.eclipse.cdt.dsf; bundle-version="2.12.0.202211062329"; singleton:="true"
       org.eclipse.cdt.dsf [116]
         No resolution report for the bundle.  Unresolved requirement: Require-Bundle: org.eclipse.cdt.dsf.ui; bundle-version="2.4.0"
    -> Bundle-SymbolicName: org.eclipse.cdt.dsf.ui; bundle-version="2.7.200.202311031553"; singleton:="true"
       org.eclipse.cdt.dsf.ui [119]
         Unresolved requirement: Require-Bundle: org.eclipse.cdt.dsf; bundle-version="2.0.0"
           -> Bundle-SymbolicName: org.eclipse.cdt.dsf; bundle-version="2.12.0.202211062329"; singleton:="true"
  Unresolved requirement: Require-Bundle: org.eclipse.cdt.gdb; bundle-version="7.0.0"
    -> Bundle-SymbolicName: org.eclipse.cdt.gdb; bundle-version="7.2.100.202303140100"; singleton:="true"
       org.eclipse.cdt.gdb [121]
         No resolution report for the bundle.  Unresolved requirement: Require-Bundle: org.eclipse.cdt.dsf.gdb.ui; bundle-version="2.4.0"
    -> Bundle-SymbolicName: org.eclipse.cdt.dsf.gdb.ui; bundle-version="2.8.300.202309151124"; singleton:="true"
       org.eclipse.cdt.dsf.gdb.ui [118]
         Unresolved requirement: Require-Bundle: org.eclipse.cdt.dsf.ui
           -> Bundle-SymbolicName: org.eclipse.cdt.dsf.ui; bundle-version="2.7.200.202311031553"; singleton:="true"
         Unresolved requirement: Require-Bundle: org.eclipse.cdt.dsf.gdb; bundle-version="[7.0.0,8.0.0)"
           -> Bundle-SymbolicName: org.eclipse.cdt.dsf.gdb; bundle-version="7.1.200.202309151124"; singleton:="true"
              org.eclipse.cdt.dsf.gdb [117]
                Unresolved requirement: Require-Bundle: org.eclipse.cdt.dsf
                  -> Bundle-SymbolicName: org.eclipse.cdt.dsf; bundle-version="2.12.0.202211062329"; singleton:="true"
                Unresolved requirement: Require-Bundle: org.eclipse.cdt.native.serial; bundle-version="1.1.100"
                  -> Bundle-SymbolicName: org.eclipse.cdt.native.serial; bundle-version="11.4.0.202311201859"
                     org.eclipse.cdt.native.serial [141]
                       No resolution report for the bundle.                Unresolved requirement: Require-Bundle: org.eclipse.cdt.gdb; bundle-version="7.0.0"
                  -> Bundle-SymbolicName: org.eclipse.cdt.gdb; bundle-version="7.2.100.202303140100"; singleton:="true"
         Unresolved requirement: Require-Bundle: org.eclipse.cdt.native.serial; bundle-version="1.1.100"
           -> Bundle-SymbolicName: org.eclipse.cdt.native.serial; bundle-version="11.4.0.202311201859"
         Unresolved requirement: Require-Bundle: org.eclipse.tm.terminal.control; bundle-version="4.0.0"
           -> Bundle-SymbolicName: org.eclipse.tm.terminal.control; bundle-version="5.5.100.202311142253"; singleton:="true"
              org.eclipse.tm.terminal.control [506]
                No resolution report for the bundle.         Unresolved requirement: Require-Bundle: org.eclipse.cdt.dsf
           -> Bundle-SymbolicName: org.eclipse.cdt.dsf; bundle-version="2.12.0.202211062329"; singleton:="true"
  Unresolved requirement: Require-Bundle: jakarta.activation-api; bundle-version="[1.2.2,2.0.0)"
    -> Bundle-SymbolicName: jakarta.activation-api; bundle-version="1.2.2"
       jakarta.activation-api [30]
         No resolution report for the bundle.  Unresolved requirement: Require-Bundle: org.eclipse.cdt.dsf.gdb; bundle-version="4.2.0"
    -> Bundle-SymbolicName: org.eclipse.cdt.dsf.gdb; bundle-version="7.1.200.202309151124"; singleton:="true"
  Unresolved requirement: Require-Bundle: org.eclipse.cdt.gdb.ui; bundle-version="7.0.0"
    -> Bundle-SymbolicName: org.eclipse.cdt.gdb.ui; bundle-version="7.2.0.202211062329"; singleton:="true"
       org.eclipse.cdt.gdb.ui [122]
         No resolution report for the bundle.  Bundle was not resolved because of a uses constraint violation.
  org.apache.felix.resolver.reason.ReasonException: Uses constraint violation. Unable to resolve resource org.eclipse.cdt.debug.application [osgi.identity; osgi.identity="org.eclipse.cdt.debug.application"; type="osgi.bundle"; version:Version="11.4.0.202311201855"; singleton:="true"] because it is exposed to package 'javax.activation' from resources jakarta.activation-api [osgi.identity; osgi.identity="jakarta.activation-api"; type="osgi.bundle"; version:Version="1.2.2"] and javax.activation [osgi.identity; osgi.identity="javax.activation"; type="osgi.bundle"; version:Version="1.2.2.v20221203-1659"] via two dependency chains.

Chain 1:
  org.eclipse.cdt.debug.application [osgi.identity; osgi.identity="org.eclipse.cdt.debug.application"; type="osgi.bundle"; version:Version="11.4.0.202311201855"; singleton:="true"]
    require: (&(osgi.wiring.bundle=jakarta.activation-api)(&(bundle-version>=1.2.2)(!(bundle-version>=2.0.0))))
     |
    provide: osgi.wiring.bundle: jakarta.activation-api
  jakarta.activation-api [osgi.identity; osgi.identity="jakarta.activation-api"; type="osgi.bundle"; version:Version="1.2.2"]

Chain 2:
  org.eclipse.cdt.debug.application [osgi.identity; osgi.identity="org.eclipse.cdt.debug.application"; type="osgi.bundle"; version:Version="11.4.0.202311201855"; singleton:="true"]
    require: (&(osgi.wiring.bundle=jakarta.xml.bind-api)(&(bundle-version>=2.3.3)(!(bundle-version>=3.0.0))))
     |
    provide: osgi.wiring.bundle; bundle-version:Version="2.3.3"; osgi.wiring.bundle="jakarta.xml.bind-api"
  jakarta.xml.bind-api [osgi.identity; osgi.identity="jakarta.xml.bind-api"; type="osgi.bundle"; version:Version="2.3.3"]
    import: (osgi.wiring.package=javax.activation)
     |
    export: osgi.wiring.package: javax.activation
  javax.activation [osgi.identity; osgi.identity="javax.activation"; type="osgi.bundle"; version:Version="1.2.2.v20221203-1659"]
	at org.eclipse.osgi.container.Module.start(Module.java:463)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1852)
	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1845)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1786)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1750)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1672)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)
```

</details>

The underlying problem here is that the debug application's "product" that
gets converted to a config.ini at CDT build time doesn't expose its
dependencies fully to p2, so we end up with a built product in EPP that
doesn't have everything listed in config.ini.

There is significant maintenance overhead and it is growing to keeping
standalone as it is now working. Other options should probably be considered,
such as using the config of the full product when launching.

Fixes #591
2023-11-21 13:57:24 -05:00
Jonah Graham
1c52b57b85 Prepare repo for 11.4.0 RC1 2023-11-20 16:19:38 -05:00
Jonah Graham
83f09f72d1 Ensure correct version of javax.activation and JAXB end up in final repo 2023-11-20 16:19:38 -05:00
Jonah Graham
ddc8470df6
Prepare repo for CDT 11.4.0 M3 (#618)
Includes updating to latest target platform. This should
also fix #591 but it is hard to tell until after it is
integrated into SimRel and the output checked in EPP.

Fixes https://github.com/eclipse-cdt/cdt/issues/591
Part of #548
2023-11-15 13:03:41 -05:00
Jonah Graham
050770d37a
Add a missing null check since terminal properties can be null (#620)
Removes a redundant map lookup too.

Fixes #617
2023-11-14 18:24:29 -05:00
Jonah Graham
9ba721566d
Convert \b to 0x7f to properly handle backspace in the terminal (#619)
Includes a new system property `org.eclipse.tm.terminal.control.convertBackspace`
to allow us to disable this new behaviour in the field if it turns out that
some terminal/host combination does not like this conversion.

Fixes #392
2023-11-14 17:53:17 -05:00
John Dallaway
f5754e2723 Add GNU linker library grouping option to N&N 2023-11-13 18:32:02 +00:00
John Dallaway
f39707a293 Add GNU C++ linker library grouping option to MBS 2023-11-12 17:05:19 +00:00
John Dallaway
e31815210e Add GNU linker library grouping option to MBS 2023-11-10 13:07:33 +00:00
Jonah Graham
08abfa2957
Avoid unnecessarily storing document in actions (#607)
With the first part of the fix in #603 we recreate the document
regularly (on each context change) therefore we need to let any
consumers of the document fetch the current version of the document
from the editor (by calling getAdapter(IDocument.class)) when
it is needed, rather than caching it.

Fixes #603
2023-11-03 11:53:35 -04:00
Jonah Graham
27bee70634
Save additional exception info (#604)
When a position exception was raised the info was
lost of the underlying exception.

See #603
2023-10-26 11:13:48 -04:00
Jonah Graham
d09d3f8e97 Bump version for 11.4 development 2023-10-26 09:02:14 -04:00
Jonah Graham
4a87d7be70 Fix disassembly view when view is reset
The view can be reset in a couple of ways, by changing debug
context or manually refreshing. With this change in Platform
https://github.com/eclipse-platform/eclipse.platform.ui/pull/963
the CDT violation of the API aronud resetting state of the
document was exposed.

Therefore the solution is to instead of trying to reset the
state of the existing document, create a new one when the
view is reset.

Fixes #603
2023-10-26 09:02:14 -04:00
John Dallaway
52926de56a Add translation unit presentation improvements to N&N 2023-10-21 16:05:13 +01:00
John Dallaway
8e5004827e Provide viewer filter for absent C/C++ translation unit files 2023-10-20 16:38:05 +01:00
John Dallaway
6e3d2da301 Do not handle absent external translation units 2023-10-14 12:46:41 +01:00
John Dallaway
4036cd3084 Decorate absent external translation units 2023-10-12 17:54:35 +01:00
Alexander Fedorov
b0317c09ed Revert "[#592] Managed Build Definitions : prefer "identifier" type of attribute"
This reverts commit 7136606455.
2023-10-11 21:58:54 +03:00
Alexander Fedorov
7136606455 [#592] Managed Build Definitions : prefer "identifier" type of attribute
Add meta information for id-like attributes

Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2023-10-11 20:32:15 +03:00
John Dallaway
e1a8c4683a Sort external translation units by name 2023-10-11 08:47:52 +01:00
Jonah Graham
48df0ae2dc
Update apt before trying to install in GHA workflows (#586)
Fixes https://github.com/eclipse-cdt/cdt/pull/581#issuecomment-1752771968
2023-10-09 19:29:15 -04:00
John Dallaway
5c73848e2a Adorn images for external translation unit elements 2023-09-26 22:40:52 +01:00
Jonah Graham
54568402dc Save changes in CDT.setup and related files
Edits made in these files using the IDE lead to these changes,
therefore commit the changes.
2023-09-25 12:22:43 -04:00
Jonah Graham
4b2f711d4e Force CDT.setup to use specific target platform version
CDT.setup was allowing devs to choose the target platform, but
in reality most choices don't work. Instead force the known
correct value which is what Eclipse Platform does too.

Fixes #571
2023-09-25 12:22:43 -04:00
John Dallaway
8ca56de402 Detect MSYS2 UCRT64 toolchains 2023-09-25 16:02:05 +01:00
Jonah Graham
0d85f6c07b Synchronize cdt.setup's API baseline with cdt-baseline.target
Part of #551
2023-09-25 09:26:41 -04:00
Jonah Graham
c313ce8a8e
Add CDT LSP information to CDT's READMEs and N&N (#566) 2023-09-20 06:38:22 -04:00
William Riley
5250f5a07b
Replace org.freemarker with org.freemarker.freemarker (#547)
Also remove re-exports & add package imports

Fixes #546
2023-09-19 14:02:39 -04:00
Jonah Graham
a498b56c59 CDT LSP 1.0.0 download files
Part of https://github.com/eclipse-cdt/cdt-lsp/issues/209
2023-09-18 18:12:49 -04:00
ewaterlander
147332763b
Swapped arguments (#552)
Fixed swapped arguments in call of new ExtendedScannerInfo().
2023-09-15 17:28:31 -04:00
Jonah Graham
48804f5ed9
Mark unused API for deletion (#559)
Fixes #558
2023-09-15 17:27:33 -04:00
Jonah Graham
5a4320d9e3
Fix NPE if Launch Dialog not open yet (#561)
Some flows (such as open JUnit test case) does a IRunnableContext.run
before the UI is open. Therefore we need to fall back on the platform
progress service to run it since the launch config UI is not ready yet

Fixes #555
2023-09-15 17:26:15 -04:00
John Dallaway
8062151c30 Add AbstractGnuToolPrefixMacro copyright notice 2023-09-15 18:59:10 +01:00
Jonah Graham
78e15207f2 Make note in download.eclipse.org why CDT 11.3.1 isn't in composites
Fixes #551
2023-09-15 10:38:59 -04:00
Jonah Graham
92beadb855 Fix multiple repositories in API baseline
This happened to work before because the contents of
api-baseline.repo was in api-baseline.repo.simrel so
the error in the pom.xml went undetected until
#551 issue meant api-baseline.repo wasn't in
api-baseline.repo.simrel
2023-09-15 09:11:14 -04:00
Jonah Graham
49a7a341f9 Use temporary baseline of unreleased CDT 11.3.1
This is to workaround the missing BREE in CDT 11.3.0, see
#551 for details

Part of #551
2023-09-15 09:10:13 -04:00
Jonah Graham
a92b90a4c8 Bump all bundles that are missing BREE in 11.3.0
Part of #551
2023-09-15 07:24:17 -04:00
Jonah Graham
4afe538d75 Restore BREE headers to all MANIFEST.MF
Fixes #551
2023-09-15 07:13:19 -04:00
Jonah Graham
3bcba2303d Prepare repo for CDT 11.4.0 development
Part of #548
2023-09-14 19:47:15 -04:00
Jonah Graham
c0fb2b7017 Composites for CDT 11.3 release
Part of #420
2023-09-13 10:38:47 -04:00
Jonah Graham
3bfad37b07 Use final URLs for 2023-09 dependencies
Part of #420
2023-09-13 10:34:50 -04:00
Jonah Graham
19161e9df2
Include latest CDT milestone in cdt.target (#541) 2023-09-08 13:54:32 -04:00
Jonah Graham
69bd1cb4cf Add cdt-lsp support to the promote-a-build scripts
Part of https://github.com/eclipse-cdt/cdt-lsp/issues/197
2023-09-08 12:07:05 -04:00
Jonah Graham
4588c7694b Remove standalone publishing from promote-a-build
The CDT project stopped publishing standalone separately
2 1/2 years ago:

https://github.com/eclipse-cdt/cdt/blob/main/NewAndNoteworthy/CDT-10.2.md#cdt-standalone-debugger-part-of-main-download

and as there has been no call for it since then this commit
removes the remnants of the publishing script.
2023-09-08 11:43:27 -04:00
Malte Grave
54a7f61a68 CMake: Fixed the correct path for starting 'cmake-gui'
This PR fixed the wrong source flag which was set by spawning the cmake-gui command.

Closes #532
2023-09-05 13:02:17 -04:00
Jonah Graham
5cedafe3e0
Updated dependencies in preparation for 11.3.0 RC2 (#538)
Part of #420
2023-09-05 12:09:21 -04:00
William Riley
2aa6a64459
Add commons-io (#537)
Fixes #536
2023-09-05 10:15:14 -04:00