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

35860 commits

Author SHA1 Message Date
Jonah Graham
9cc97ac406 Error message if launcher is null when trying to watchProcess
Part of #125
2022-11-04 08:24:54 -04:00
Jonah Graham
7e142b4a34
Add missing link to CDT 11 2022-11-04 08:21:36 -04:00
Jonah Graham
8ab702fec8 Lower missing PDE unknown-identifier to warning for this bundle
Because the reference is to a TCF defined identifier, make
this just a warning because CDT does not have TCF in its
target platform.
2022-11-04 08:19:23 -04:00
Jonah Graham
211bdec58e Remove old, non-universal welcome screen content
Fixup for 8fd15a66d1
2022-11-04 08:19:23 -04:00
Jonah Graham
673a34b150 Remove reference to icon that has never existed
It would be nice to have an icon here, but it has been
fine not having it for 14 years, so just remove reference
to clean up error.

Fixup for e5ae2a94a7
2022-11-04 08:19:23 -04:00
Jonah Graham
2d516a3c54 Correct descriptorTypeId for default launch type
This is mostly a no-op change, but fixes the error
about incorrect reference.

The descriptorUI extension used an ID that never existed,
and the code in ConfigSelector just fell back on
DefaultDescriptorLabelProvider it none were found, so
the user visible change here is nothing.

Fixup for 8f8c2e02b6
2022-11-04 08:19:23 -04:00
Jonah Graham
324d069099 Fix marker definition in example plug-in
Fixup for 5b47187366
2022-11-04 08:19:23 -04:00
Jonah Graham
bcff6bdba8 Remove incomplete extension definition in example plug-in
When DSF was first contributed, the PDA code was copied and
adapter from platform:

https://github.com/eclipse-platform/eclipse.platform.debug/tree/master/org.eclipse.debug.examples.core

This extension was never migrated to the DSF example.

Fixup for 5b47187366
2022-11-04 08:19:23 -04:00
Jonah Graham
dd33a517a3 Display correct icon/label for various source lookup containers
The adaptable type that was listed doesn't exist.

This is only used to get the correct icon/label for these
type of adapters, so the effect is minor.

Fixup for 9aee6c4850
2022-11-04 08:19:23 -04:00
Jonah Graham
95bb7afb47 Display proper icon for core launches
Core launches were missing their icon in the Debug View

Fixup for e9beafae10
2022-11-04 08:19:23 -04:00
Jonah Graham
e4d4d8c02c Remove view definition for test view that never existed
Fixup for 5b47187366
2022-11-04 08:19:23 -04:00
Jonah Graham
1f19cff227 Make missing identifiers and classes in plugin.xml errors
Subsequent commits fix the errors
2022-11-04 08:19:23 -04:00
Jonah Graham
75c779fc1d Remove non-functioning Qt plug-ins
Fixes #123
2022-10-29 18:56:47 -04:00
Jonah Graham
10e95a1825 Fix race condition in multithread test
The long sleep at the end of each thread is to make sure that
while the test code is waiting for an event the "other" thread
doesn't finish. 3 seconds is not long enough for this.

This is similar to why we need dsf.gdb.tests.timeout.multiplier
for other tests. Especially on the build machines the tests
can run much slower causing the sleep to be insufficient.

Increasing this to 30 seconds doesn't make the test suites
take any longer, when they are all passing.

Fixes #119
2022-10-27 20:33:26 -04:00
Jonah Graham
949d46c630 Delete abstract class with no concrete subclasses 2022-10-25 22:56:02 -04:00
Jonah Graham
306708f5cb Remove projects from workspace at test startup
Various tests are not cleaning up properly after
themselves, causing test failures on subsequent
tests. Therefore start each test by deleting
all projects.

In addition, some tests were creating their test
projects in their constructor. As all the constructors
run before all the tests as part of test discovery
it means that projects were being created in
constructor and interfering with other tests
later. With the deleting of all projects in @AfterEach
these tests would have started failing. Therefore,
change these tests to create their projects
and do other initialize tasks in the setUp method.

For older JUnit3 style tests:
This substantially slows down tests as many tests
rely on sharing the project between multiple tests and
recreating those projects on each run is slow.
Therefore this is not applied universally to
all JUnit3 tests.

For tests that are affected, those tests are moved
to JUnit5 base test.

Part of #117
2022-10-25 22:56:02 -04:00
Jonah Graham
ad478cecc1 Provide a way to wait on background build settings update job
Part of #117
2022-10-25 22:56:02 -04:00
Jonah Graham
23d44d05a4 Restore completion filter after testing preference
On GitHub actions the org.eclipse.cdt.ui.tests.text.contentassist2
tests are running after ProposalFilterPreferencesTest and
ProposalFilterPreferencesTest was changing the default
filter and not restoring it.

Part of #117
2022-10-25 22:56:02 -04:00
Jonah Graham
d345323f49 Fix CDescriptorOldTests.testDescriptorCreation instability
This old test had a race condition. The failing test was trying
to verify that CDTPROJECT_ADDED was received, but if there
was a delay in the startup then another event would come in
later. So for this test use the first received event,
for the remaining tests use the last received event.

Part of #117
2022-10-25 22:56:02 -04:00
Jonah Graham
128de5d6cd Add missing abstract keyword to abstract tests
Part of #117
2022-10-25 22:56:02 -04:00
Jonah Graham
a827d71f52 Add additional diagnostic to error message
It may be that this test fails regularly because
another test is not cleaned up properly.
Make sure there are no unexpected projects in
the workspace.

Part of #117
2022-10-25 22:56:02 -04:00
Jonah Graham
d5620689b5 Enable the profile in the GH Actions to verify standalone builds
Follow up from c1269a9990
2022-10-25 22:29:07 -04:00
Jonah Graham
30166dea86 Bump org.eclipse.cdt.core major version
Due to the removal of previous API done in:

- PR #103
- commit 4de9516e97
2022-10-25 22:28:51 -04:00
Jonah Graham
5fac32e3f8 Fix the dprintf tests when running on gdbserver
Because dprintf goes to stdout, need to make sure buffers are
fully flushed before we check output.
2022-10-25 22:21:38 -04:00
Alexander Fedorov
fd256d59d5
Merge pull request #107 from eclipse-cdt/setup_workspace_fix
CDT.setup working set definitions: fix swapped LSP and LLVM
2022-10-25 19:41:19 +03:00
Alexander Fedorov
6610de9e66
Merge pull request #106 from eclipse-cdt/setup_add_shortcut_to_configuration
org.eclipse.cdt.target should have shortcut for CDTConfiguration.setup
2022-10-25 19:36:40 +03:00
John Dallaway
1590791e76
Eliminate deprecated GDBBackend methods for CDT 11 (#112) 2022-10-25 13:40:13 +01:00
Mat Booth
c1269a9990 Fix build failure in standalone debugger application
* Correct the requirements according to the latest target platform
* Move to requiring Java 17
* Enable the profile in the Jenkinsfile to verify it builds
2022-10-25 10:20:37 +01:00
15knots
eb1d5d116d
Merge pull request #111 from 15knots/main
Do not overwrite custom build system ID with MBS ID
2022-10-24 20:39:19 +02:00
Martin Weber
88021dc82a Do not overwrite custom build system ID with MBS ID
Signed-off-by: Martin Weber <11367029+15knots@users.noreply.github.com>
2022-10-21 22:04:54 +02:00
Mat Booth
4de9516e97 Bug 580314 - Remove deprecated methods from core build
Deprecated methods in CommandLauncher and CBuildConfiguration
are now removed.
2022-10-21 15:38:58 +01:00
Jonah Graham
6cd2e97470 Bug 580873: Remove error checking on dprintf parameters
The parser for dprintf parameters was much too simplistic and
prevents real uses cases from operating.

It is not necessary to remove the , between the arguments to
dprintf, so don't try to split on that anymore. That also
means we can't check for and error on mismatch between format
specifiers and number of arguments.

e.g. "===> XML_EVENT_TEXT(%s)\n", (char *)strtok(Text,"\n")
should be permitted.

The alternative would be to write a more complete parser for
both the printf specification and the arguments. Well out of
scope and unnecessary.

Some inputs may now be accepted by the GUI and then when
inserted with GDB fail. These errors are displayed in the
GUI already anyway.
2022-10-20 10:27:58 -04:00
Mat Booth
4020a7f550 Fix development buid download links
Correct some wrong links for downloading development builds of CDT in
the Downloads.md document.
2022-10-20 12:54:47 +01:00
Moritz 'Morty' Strübe
a60fc2b1b4 Add sanity checking and doc to do_format_code.sh
This should lower the hurdle to make the CI happy.
2022-10-19 12:15:21 -04:00
Jonah Graham
3b3f29c93a Don't synchronize on Boolean/Integer object
This fixes numerous warnings like this:
Boolean is a value-based type which is a discouraged argument
for the synchronized statement
and:
Integer is a value-based type which is a discouraged argument
for the synchronized statement
2022-10-19 10:53:09 -04:00
Jonah Graham
161b57f9ed Tests for dprintf GDB functionality
Bug 400628 was originally completed without any new tests.
To make it easier to test that Bug 580873 works, this commit
adds in some missing tests.
2022-10-19 10:53:09 -04:00
Jonah Graham
34381cd253 Bump Major version of o.e.cdt.dsf.gdb for CDT 11.0.0 2022-10-19 10:53:09 -04:00
Jonah Graham
ca7a2f6bb8 Fix formatting 2022-10-19 10:53:09 -04:00
Mat Booth
7edb711c7c Fixes launchbar icons looking blurry on hidpi screens
The launchbar way of compositing images for the buttons was preventing
the use of higher quality icons on hidpi dislays, making the launchbar
buttons look blurry or pixelated compared to other toolbar buttons.

Instead we can get a nicer result with a custom widget on which we can
directly draw a button border plus the hidpi version of the icon.

Also included is an attempt at a 2x hammer build button icon, which
should look a bit nicer on hidpi screens.
2022-10-19 08:41:15 +01:00
Alexander Fedorov
4887cd3bc6 CDT.setup working set definitions: fix swapped LSP and LLVM
Fix working set predicate patterns for "CDT LLVM" and "CDT LSP"
2022-10-18 10:05:31 +03:00
Alexander Fedorov
bb00ccad08 org.eclipse.cdt.target should have shortcut for CDTConfiguration.setup
Added shortcut to CDTConfiguration.setup in order to resolve validation
problems in CDT.setup
2022-10-18 09:42:56 +03:00
Mat Booth
1783120eb7 Improve the CMake project wizard template
Fixes out-of-the-box deprecation warnings, the template now specifies a
minimum CMake version of 3.10

Allows project names containing spaces by using freemarker syntax to
remove them where necessary in the CMakeLists.txt file.

Demonstrates how to implement the common idiom of configuration header
files.
2022-10-18 00:08:44 +01:00
Mat Booth
95fb6ee72e [releng] Fix up usages of tycho-source-plugin
Migrate usage of deprecated tycho-source-feature-plugin plugin
to the tycho-source-plugin:feature-source goal.

Eliminate duplicate invokations of the
tycho-source-plugin:plugin-source goal.
2022-10-17 14:25:11 +03:00
Jonah Graham
1d9de8fd1e Fix fragment name
Two bundles were called DSF-GDB test fragment,
rename this one to be more explicit
2022-10-10 19:34:08 -04:00
Jonah Graham
f6a61c8c79 Make a small note about GitHub actions
Probably more info is needed, but I want as much as possible
for the tests to be self documenting, so expect additional
comments in PRs that explain what is happening.
2022-10-10 19:33:23 -04:00
Jonah Graham
56ee2c3bb1 DSF-GDB tests in GitHub Actions
- Fix the running so that the correct gdb is used.
- Only run DSF tests if dsf directories have been modified
- Default to using gdb,gdbserver on the PATH when running
  tests
- Remove double reporting of test results
2022-10-10 08:44:28 -04:00
Jonah Graham
9a22ad7097 Add GitHub actions to Build and Test CDT 2022-10-09 16:24:41 -04:00
Jonah Graham
7adcdbe7d9 Migrate API changelog from HTML into Markdown
Managing the API changelog in HTML has been rather burdensome, getting
the formatting correct and doing things like having numbered lists
added unneeded burden to the process.

This change moves all the old content to markdown and
places it prominently next to the other NewAndNoteworthy content.

Also included here is some fine tuning to the related documentation
about API.

Part of #32
2022-10-09 13:24:47 -04:00
Jonah Graham
06c8b01d83 GitHub Action for Code Cleanliness Check
This commit runs GitHub actions for code cleanliness.
Because this includes compare and replace build,
this verifies that the commit is buildable and
clean.

The natives are not rebuilt here (yet) because
the GitHub actions runner does not have the
cross compiler tools installed.

Part of migration to GitHub - Issue #32
2022-10-09 12:14:53 -04:00
Jonah Graham
89677a612e Add some links for CDT indexer FAQ 2022-10-07 13:57:02 -04:00