Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Started documentation update. #1056

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

ewaterlander
Copy link
Contributor

  • Put Core Build and Managed Build items in separate topics.
  • Added two images to Creating a CMake project.
  • Added new pages about creating a CBS Makefile project, using existing code, and the launch bar.
  • Renamed "Creating a simple application" to "Creating a Managed Build System Makefile project" and replaced two images.
  • Removed "Creating a Makefile project", because it was duplicate information.

Fixes #992

@ewaterlander
Copy link
Contributor Author

Hi @jonahgraham @jld01 @betamaxbandit ,

Would you like to review this change? It is not finished yet. I'm going to add topics about Building, Running, and Debugging. You can start adding comments.

I separated CBS and MBS.

image

Copy link

github-actions bot commented Jan 23, 2025

Test Results

   600 files   -    34     600 suites   - 34   13m 17s ⏱️ - 22m 50s
10 206 tests  - 1 217  10 183 ✅  - 1 097  23 💤  - 120  0 ❌ ±0 
10 244 runs   - 1 194  10 221 ✅  - 1 076  23 💤  - 118  0 ❌ ±0 

Results for commit dfcb2fa. ± Comparison against base commit 0fcf41a.

This pull request removes 1217 tests.
org.eclipse.cdt.debug.gdbjtag.core.tests.jtagdevice.GDBJtagDeviceContributionTest ‑ testGdbJtagDeviceContribution
org.eclipse.cdt.debug.gdbjtag.core.tests.launch.GDBJtagLaunchTest ‑ testGdbJtagLaunch[gdb]
org.eclipse.cdt.debug.gdbjtag.core.tests.launch.GDBJtagLaunchTest ‑ testGdbJtagLaunch[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithQuotes[gdb]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithQuotes[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSpecialSymbols[gdb]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSpecialSymbols[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSymbols[gdb]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSymbols[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithTabs[gdb]
…

♻️ This comment has been updated with latest results.

@jonahgraham
Copy link
Member

I'll have a look soon - in the meantime since I don't have an auto comment, the docs are available from this build in https://github.com/eclipse-cdt/cdt/actions/runs/12933695063?pr=1056 (docs link near the bottom)

Copy link
Member

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks very good, I think how you have split it up is very useful.

@jld01 jld01 self-requested a review January 23, 2025 21:17

== Launch Bar

CBS projects rely on the *LaunchBar*. Make sure the launch bar plugin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CBS projects rely on the *LaunchBar*. Make sure the launch bar plugin
Core Build System (CBS) projects rely on the *Launch Bar*. Make sure the _LaunchBar UI_ feature

Comment on lines 33 to 34
This tutorial describes how to use existing code for Core Build System
projects.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This tutorial describes how to use existing code for Core Build System
projects.
This tutorial describes how to create a new Core Build System
project for use with existing code.

Comment on lines 39 to 43
=== Using an existing CMake project

To create an empty CMake project select the template *Empty or Existing CMake
Project* in the *New C/{cpp} Project* wizard.
Copy link
Contributor

@jld01 jld01 Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to clarify the distinction between a "CMake project" (IDE independent source code) and a "CMake project" (metadata created by CDT).


image:cbs_empty_cmake_project.png[Empty or Existing CMake Project]

Then in the *New CMake Project* wizard deselect *Use default location*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Then in the *New CMake Project* wizard deselect *Use default location*
In the *New CMake Project* wizard deselect *Use default location*

Comment on lines 54 to 56
=== Using an existing Makefile project

Create a Makefile project as described in
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, distinguish the two uses of "Makefile project" here.

Comment on lines 60 to 61
In the *New Makefile Project* wizard deselect *Use default location*
and set the location of the existing code, and deselect *Create Hello
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In the *New Makefile Project* wizard deselect *Use default location*
and set the location of the existing code, and deselect *Create Hello
In the *New Makefile Project* wizard deselect *Use default location*,
set the location of the existing code, and deselect *Create Hello

Comment on lines 41 to 42


Copy link
Contributor

@jld01 jld01 Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think multiple empty lines (here and elsewhere) are being interpreted as the end of the numbered list. So the next numbered list item will be item "1" again. Try a single empty line only.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had some problems with keeping numbered lists together too, I ended up having to add + at the beginning of the blank lines to show list continuation. See https://docs.asciidoctor.org/asciidoc/latest/lists/continuation/#list-continuation

Copy link
Contributor

@jld01 jld01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments on your work-in-progress, @ewaterlander. Great to see the documentation being updated.

@ewaterlander
Copy link
Contributor Author

I added three new topics: Building, Running, and Debugging a project. Now the change is complete. I will process the comments on Monday. Thanks. Have a nice weekend!

@ewaterlander
Copy link
Contributor Author

Hi,
I processed the comments.

@ewaterlander
Copy link
Contributor Author

Hi @jld01 and @jonahgraham ,

Could you have a look again? I think the work is done now.

kind regards,
Erwin

Copy link
Contributor

@betamaxbandit betamaxbandit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ewaterlander ,
thanks for updating the docs.
I've made a few suggestions.
Cheers John

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build Settings tab has recently changed a lot
See #1046 (comment)

== Using existing code

This tutorial describes how to create a new Core Build System
(CBS) project for use with existing code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It assumes existing code is located in a directory containing source files. Note, CDT project files are written into this directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Comment on lines 36 to 37
Using existing code is done by creating a new **empty** project on top of the
existing code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[I think this task is quite unintuitive for the new user, so it's worth labouring the point about project files, directories etc]
Using existing code is performed by creating a new empty CDT project in the top directory containing the existing source files. With this method, new project files are created, but no new project directory is created.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


image:cbs_empty_cmake_project.png[Empty or Existing CMake Project]

In the *New CMake Project* wizard deselect *Use default location*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Consider replacing "deselect" with "uncheck". Feels a little more user friendly. There are a couple more occurrences of this below]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @betamaxbandit's comments are worth addressing now, or in a follow-up. I have a TODO in the CDT 12 N&N to update the screenshot:

TODO: Before release add the final screenshot for the build settings here. I am not including it now because the UI keeps changing.

But there is some flexibility on that file being updated because it can happen after our last build. The screenshots in the online help need to be updated before final build to populate https://help.eclipse.org/latest/index.jsp and built-in help

I have created #1064 and added updating doc/org.eclipse.cdt.doc.user/images/cbs_build_settings_tab_cmake.png to the check-list.

@ewaterlander
Copy link
Contributor Author

Hi,
I will address the new comments tomorrow. I don't mind doing it in this PR or a follow up PR.

@jld01
Copy link
Contributor

jld01 commented Jan 29, 2025

Could you have a look again? I think the work is done now.

Thanks for the updates, @ewaterlander.

* Put Core Build and Managed Build items in separate topics.
* Added two images to Creating a CMake project.
* Added new pages about creating a CBS Makefile project, using
  existing code, launch bar, building, running, and debbuggin
  a project.
* Renamed "Creating a simple application" to "Creating a Managed Build
  System Makefile project" and replaced two images.
* Removed "Creating a Makefile project", because it was duplicate
  information.

Fixes eclipse-cdt#992
@ewaterlander
Copy link
Contributor Author

Hi @jonahgraham and @betamaxbandit ,

I updated the image and addressed the comments.

@ewaterlander
Copy link
Contributor Author

I squashed and rebased the commit. After rebasing I lost some time, because Eclipse-Committers did not properly refresh the work area, which cause build errors in my environment. :(

@jonahgraham
Copy link
Member

I squashed and rebased the commit. After rebasing I lost some time, because Eclipse-Committers did not properly refresh the work area, which cause build errors in my environment. :(

That is frustrating - I think the other day I had a fail to refresh properly error, I couldn't reproduce it and I am not sure what happened.

@jonahgraham
Copy link
Member

Thanks @ewaterlander

@jonahgraham jonahgraham merged commit c8e47b3 into eclipse-cdt:main Jan 30, 2025
5 checks passed
@jonahgraham jonahgraham added this to the 12.0.0 M3 milestone Jan 30, 2025
@ewaterlander ewaterlander deleted the getting_started branch January 30, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The CDT user manual chapter "Getting Started" needs to be updated.
4 participants