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

Improve readme and CDT Cloud update logo #109

Merged
merged 10 commits into from
Mar 25, 2024

Conversation

planger
Copy link
Contributor

@planger planger commented Mar 15, 2024

What it does

This change refocuses the README to better resonate with potential users by presenting the extension's features and usage more clearly. We aim to maintain essential information for contributors, ensuring a balance between user orientation and developer guidance.

Also we update the CDT Cloud logo, fixed broken links, and adapted wrong information in the CONTRIBUTING guide left over from Theia.

How to test

Note that the link to the screenshot only works after this is merged. Otherwise we would need to use a relative link, which may not work when displayed in the marketplace or on open-vsx.org.

Review checklist

Reminder for reviewers

This change refocuses the README to better resonate with potential users
by presenting the extension's features and usage more clearly. We aim to
maintain essential information for contributors, ensuring a balance
between user orientation and developer guidance.

Also we update the CDT Cloud logo, fixed broken links, and adapted wrong
information in the CONTRIBUTING guide left over from Theia.
README.md Show resolved Hide resolved
CONTRIBUTING.md Outdated
Comment on lines 39 to 40
merged and maintained as part of this project, you should talk with the team
through an issue. Simply choose the issue you would want to work on, and tell everyone
Copy link
Contributor

Choose a reason for hiding this comment

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

I got confused here by the idiom 'talk through something.' Maybe

Suggested change
merged and maintained as part of this project, you should talk with the team
through an issue. Simply choose the issue you would want to work on, and tell everyone
merged and maintained as part of this project, you should talk with the team
by posting on an issue. Simply choose the issue you would want to work on, and tell everyone


#### Reminder for reviewers

- as a reviewer, I agree to behave in accordance with [the review guidelines](https://github.com/theia-ide/theia/blob/master/doc/pull-requests.md#reviewing)
- as a reviewer, I agree to behave in accordance with [the code of conduct](https://github.com/theia-ide/theia/blob/master/doc/pull-requests.md#reviewing)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any similar text we could link to outside of the theia-ide organization?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Darn, I meant to point to the CoC of this repo. Thanks for catching that!

- **Multiple Format Display**: Shows memory data in different formats, provided your debug adapter supports the `ReadMemoryRequest`.
- **Address Navigation**: Easily jump to and scroll through memory addresses.
- **Variable Highlights**: Marks variable memory ranges.
- **Edit Memory**: Allows in-place memory editing, if the debug adapter supports the `WriteMemoryRequest`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's get #108 in to make this completely true :-).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, you are right. I'm an optimist, but I'm completely fine to leave this PR open until #108 is merged.

Copy link
Contributor

Choose a reason for hiding this comment

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

I am sure it will come for the next release one or the other way. ;-)

@planger
Copy link
Contributor Author

planger commented Mar 15, 2024

Thank you for the fast review @colin-grant-work! I accepted your suggestion and fixed the link. Happy to leave this open until #108 is merged to not promise something before it is actually merged :-)

@planger
Copy link
Contributor Author

planger commented Mar 15, 2024

Also, I'd love to get @jreineckearm's feedback anyway.

Copy link
Contributor

@jreineckearm jreineckearm left a comment

Choose a reason for hiding this comment

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

Looks good! A couple of comments.

CONTRIBUTING.md Outdated
can discuss it. If such a feature request already exists, please add a comment
You may want to see a feature or have an idea. You can
[file a request](https://github.com/eclipse-cdt-cloud/vscode-memory-inspector/issues/new/choose)
and we can discuss it. If such a feature request already exists, please add a comment
or some other form of feedback to indicate you are interested too. Also in this
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
or some other form of feedback to indicate you are interested too. Also in this
or some other form of feedback to indicate you are interested, too. Also in this

Nit

README.md Outdated

## The Memory Provider
- **Multiple Format Display**: Shows memory data in different formats, provided your debug adapter supports the `ReadMemoryRequest`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Multiple Format: I don't think we have that yet in the data contents area. Maybe name it Configurable Memory Display and mention the Multiple Format Display for hover-over?

README.md Outdated
## The Memory Provider
- **Multiple Format Display**: Shows memory data in different formats, provided your debug adapter supports the `ReadMemoryRequest`.
- **Address Navigation**: Easily jump to and scroll through memory addresses.
- **Variable Highlights**: Marks variable memory ranges.
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
- **Variable Highlights**: Marks variable memory ranges.
- **Variable Highlights**: Colors memory ranges for variables.

- **Multiple Format Display**: Shows memory data in different formats, provided your debug adapter supports the `ReadMemoryRequest`.
- **Address Navigation**: Easily jump to and scroll through memory addresses.
- **Variable Highlights**: Marks variable memory ranges.
- **Edit Memory**: Allows in-place memory editing, if the debug adapter supports the `WriteMemoryRequest`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I am sure it will come for the next release one or the other way. ;-)

README.md Outdated
- **Address Navigation**: Easily jump to and scroll through memory addresses.
- **Variable Highlights**: Marks variable memory ranges.
- **Edit Memory**: Allows in-place memory editing, if the debug adapter supports the `WriteMemoryRequest`.
- **Memory Management**: Enables saving and restoring memory data for specific address ranges.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we explicitly mention the file format?

README.md Outdated
- **Variable Highlights**: Marks variable memory ranges.
- **Edit Memory**: Allows in-place memory editing, if the debug adapter supports the `WriteMemoryRequest`.
- **Memory Management**: Enables saving and restoring memory data for specific address ranges.
- **Custom Views**: Create and customize as many memory views as you need.
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
- **Custom Views**: Create and customize as many memory views as you need.
- **Customized Views**: Create and customize as many memory views as you need.

README.md Outdated
## Getting Started

1. **Install**: Add the extension to VS Code.
2. **Debug Session**: Start with a debug adapter that has the [`ReadMemory` request](https://microsoft.github.io/debug-adapter-protocol/specification#Requests_ReadMemory) capability.
Copy link
Contributor

Choose a reason for hiding this comment

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

We should point users to the global Debug Types setting to enable this for any adapter that supports the ReadMemory request.

image

@planger
Copy link
Contributor Author

planger commented Mar 18, 2024

@jreineckearm Thank you for your feedback! I think I addressed all your comments and accepted all suggestions.

@jreineckearm
Copy link
Contributor

Thanks for the updates! Looks good to me!

@planger
Copy link
Contributor Author

planger commented Mar 18, 2024

Thanks everyone for their review and suggestions! @colin-grant-work Can you please take another look and, if you're fine with this change, give your approval? Thank you!
I'll wait for #108 to be merged before I merge this change.

@jreineckearm
Copy link
Contributor

jreineckearm commented Mar 19, 2024

@planger , @colin-grant-work , as discussed today we should add a terminology section and a screenshot to highlight some of the terminology usage. See #100 (comment) for a summary of that call.

I'd recommend to use this PR for those additions. I am happy to draft something and add it here. But it's getting late now. I'll try to provide a write up tomorrow.

@jreineckearm
Copy link
Contributor

Apologies for taking longer than expected. The next comment is a proposal for the wording between "Configuration" and "Contributing". I'll prepare a screenshot next.

@jreineckearm
Copy link
Contributor

Memory Format Settings

The Memory Format settings allow to configure how data that is read from the target system is interpreted and displayed.
Use the following to retarget the view to your needs and the inspected memory architecture:

  1. Bytes per MAU: The number of Bytes that form the Minimum Addressable Unit. It commonly is fixed number for a specific target hardware. Use for example a value of 1 for byte-addressable architectures.
  2. MAUs per Group: The number of MAUs that form a Group considering the selected Endianess. Use for example a value of 2 to form a 4-byte value consisting of 2 2-byte MAUs.
  3. Groups per Row: Number of Groups to display in a row. This can be a fixed number of Groups. Or the value Autofit to let the Memory Inspector calculate the best utilization of space in the Data column.
  4. Group Endianess: The order of MAUs within a Group. The value can be Little Endian or Big Endian.

The following terminology is used:

  • Byte: A data unit of 8 Bits.
  • MAU (Minimum Addressable Unit): A Minimum Addressable Unit of memory. It consists of one or more Bytes represented by a single address.
  • Group: A group of MAUs that forms a data value. Groups are the Memory Inspector's default granularity to edit memory contents.
  • Row: A row in the Memory Inspector display containing multiple Groups.
  • Endianess: The order of displaying MAUs within a Group.

@jreineckearm
Copy link
Contributor

Realized now that we should wait with a screenshot until we have the terminology change PR in.

@planger
Copy link
Contributor Author

planger commented Mar 21, 2024

Thanks @jreineckearm! I've added your section to the readme and also updated the screenshot to how it'll likely look like after renaming words to MAUs.

@jreineckearm
Copy link
Contributor

Thanks @planger , may need to do another review iteration of the text and formatting. Already spotted at least one typo in the text I provided. :-)
The link to the screenshot seems to be broken on the branch. Gives me a 404 when I click it.

@planger
Copy link
Contributor Author

planger commented Mar 21, 2024

The link to the screenshot seems to be broken on the branch. Gives me a 404 when I click it.

Yes, this link only works after we've merged this change as the image then should become available under the given URL. I preferred to use absolute URLs over relative ones, as this should be safer than something relative when showing the screenshot in the readme of the published extension on the VSX registries.

Edit: but the link actually was wrongly pointing to master even though the branch is main in this repo. Fixed with 2f8d50b.

Just realized the branch is going to be named `main` in this repo.
Copy link
Contributor

@jreineckearm jreineckearm left a comment

Choose a reason for hiding this comment

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

Found a tiny typo. Waiting for #111 before taking a screenshot to highlight the Memory Format option impact.

README.md Outdated Show resolved Hide resolved
Co-authored-by: Jens Reinecke <[email protected]>
@jreineckearm
Copy link
Contributor

image

@planger , could you please let me know if attached (modified) screenshot works as a visual reference for the various options?
Unfortunately, a little harder to explain endianess in a single one and wouldn't want to put too many screenshots into one sections.

@planger
Copy link
Contributor Author

planger commented Mar 22, 2024

@jreineckearm I like it! Thank you!
Just two suggestions for minor tweaks:

  1. It could help to not use Autofit in this screenshot but set it to a concrete value (e.g. 2). This would make it easy to understand, given that there would then be the same number of groups in a row (e.g. 2).
  2. I'm myself not sure about this one, but we could put an example in the text (enumeration in the readme) for the Group Endianess setting. This example could match a specific group in the screenshot to show how the row would be like with Little Endian and Big Endian.

@jreineckearm
Copy link
Contributor

Thanks for the feedback, @planger !
Agree with both items. Hope those two images work better. :-)

image

image

@jreineckearm
Copy link
Contributor

And another one with the item number. But probably a bit too much.

image

Copy link
Contributor

@jreineckearm jreineckearm left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good to me. :-)

@planger
Copy link
Contributor Author

planger commented Mar 25, 2024

@jreineckearm Thank you for the images! Imho they look great. I've now used the one with the number regarding endianness. Imho it is more consistent, but I don't have a strong opinion. I cropped the first image a bit to better align both screenshots and avoid a light border.

As you can't preview it on Github because of the absolute link, I put a screenshot below:

image

Please let me know what you think!

@jreineckearm
Copy link
Contributor

I cropped the first image a bit to better align both screenshots and avoid a light border.

Thanks! I must have missed that border. IMO good to go with that.

@planger
Copy link
Contributor Author

planger commented Mar 25, 2024

Thanks @jreineckearm!

@colin-grant-work
Copy link
Contributor

My approval stands - merge at your convenience.

@planger planger merged commit 950ee01 into eclipse-cdt-cloud:main Mar 25, 2024
5 checks passed
@planger planger deleted the improve-readme branch March 25, 2024 14:52
@planger planger mentioned this pull request Mar 25, 2024
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.

4 participants