Skip to content

docs: add dependency install instructions#103

Merged
pauldelucia merged 2 commits into
dashpay:masterfrom
thephez:readme-dep-updates
Nov 29, 2024
Merged

docs: add dependency install instructions#103
pauldelucia merged 2 commits into
dashpay:masterfrom
thephez:readme-dep-updates

Conversation

@thephez
Copy link
Copy Markdown
Contributor

@thephez thephez commented Nov 27, 2024

Previously not all required dependencies were listed so builds failed for some users. The build was verified on a clean Ubuntu 24.04 VM using these instructions. Actual running of the app could not be tested since the VM lacked GUI support.

Closes #45

Summary by CodeRabbit

  • Documentation
    • Updated README.md to include a new "Dependencies" section outlining essential tools and libraries.
    • Added a new "Application directory" section detailing directory creation on first run across different operating systems.
    • Minor formatting adjustments for improved clarity, including code block formatting for command-line instructions.

Previously not all required dependencies were listed so builds failed for some users
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Nov 27, 2024

Walkthrough

The pull request updates the README.md file for the Dash Evo Tool by adding new sections and details. It introduces a "Dependencies" section under "Prerequisites," specifying the installation of essential tools and libraries, along with commands for installation on various Unix-like systems. Additionally, a new "Application directory" section under "Getting Started" describes the creation of an application directory on the first run, detailing paths for different operating systems. Minor formatting adjustments enhance the document's clarity.

Changes

File Change Summary
README.md Added "Dependencies" section and "Application directory" subsection; minor formatting adjustments.

Assessment against linked issues

Objective Addressed Explanation
New instruction for installing DET (#45)

Possibly related PRs

  • docs: mentions app dir and its location #74: This PR also updates the "Application directory" section in README.md, providing details on the automatic creation of the application directory and the location of the .env file, which aligns with the changes made in the main PR.

Suggested reviewers

  • ogabrielides

Poem

🐇 In the meadow where bunnies play,
The README now shines bright as day.
With dependencies clear and paths defined,
For every coder, joy they'll find!
So hop along, let’s build and run,
With tools in hand, we'll have some fun! 🌼


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@thephez thephez marked this pull request as ready for review November 27, 2024 16:25
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🧹 Outside diff range and nitpick comments (1)
README.md (1)

Line range hint 109-116: Enhance application directory documentation

The section would benefit from additional details about:

  1. Required directory permissions
  2. Common configuration issues and troubleshooting steps
  3. What to do if the .env file needs to be reset

Consider adding:

 | Linux | `/home/<user>/.config/dash-evo-tool/` |
 
+> **Note**: Ensure you have write permissions to the application directory. If you encounter permission errors, you may need to adjust the directory permissions.
+
+#### Troubleshooting
+
+If you encounter configuration issues:
+1. Make a backup of your existing .env file
+2. Copy .env.example to the application directory as .env
+3. Update the configuration as needed
🧰 Tools
🪛 LanguageTool

[grammar] ~19-~19: You’ve repeated a verb. Did you mean to only write one of them?
Context: ...Installation](#installation) - Getting Started - Start the App - [Applicati...

(REPEATED_VERBS)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between e422bb4 and 93f2e22.

📒 Files selected for processing (1)
  • README.md (3 hunks)
🧰 Additional context used
🪛 LanguageTool
README.md

[grammar] ~19-~19: You’ve repeated a verb. Did you mean to only write one of them?
Context: ...Installation](#installation) - Getting Started - Start the App - [Applicati...

(REPEATED_VERBS)

🔇 Additional comments (2)
README.md (2)

16-16: LGTM: Table of Contents updates are accurate.

The new TOC entries properly reflect the added sections while maintaining consistent formatting.

Also applies to: 21-21


209-221: LGTM: Contributing section formatting improvements

The addition of code blocks for git commands improves readability and consistency.

Comment thread README.md
Comment on lines +62 to +68
- Install Protocol Buffers Compiler (protoc). Download the appropriate protoc binary for your
system, unzip, and install:

``` shell
wget https://github.com/protocolbuffers/protobuf/releases/download/v26.1/protoc-26.1-linux-x86_64.zip
sudo unzip protoc-*-linux-x86_64.zip -d /usr/local
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Add architecture-independent protoc installation instructions

The current protoc installation instructions have several limitations:

  1. They assume x86_64 architecture
  2. The version (26.1) is hardcoded without explaining version requirements
  3. No verification steps are included

Consider updating to:

- wget https://github.com/protocolbuffers/protobuf/releases/download/v26.1/protoc-26.1-linux-x86_64.zip
- sudo unzip protoc-*-linux-x86_64.zip -d /usr/local
+ # For Ubuntu/Debian:
+ sudo apt install -y protobuf-compiler
+ # Verify installation:
+ protoc --version  # Should be 3.x or higher

If a specific version is required, please document the minimum version requirement.

Committable suggestion skipped: line range outside the PR's diff.

Comment thread README.md
Comment on lines +51 to +61
### Dependencies

- Install build-essential tools, SSL development libraries, and other required dependencies. On
Ubuntu, use:

``` shell
sudo apt install -y build-essential libssl-dev pkg-config unzip
```

On other Unix-like systems, use the equivalent package management commands.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Document tenderdash-proto dependency requirements

Given that issue #45 specifically mentioned build failures with tenderdash-proto, we should explicitly document any specific requirements for this dependency.

Consider adding:

 On other Unix-like systems, use the equivalent package management commands.

+### Additional Dependencies
+
+Some components have specific requirements:
+
+- **tenderdash-proto**: Requires Protocol Buffers Compiler (protoc) and build tools
+  - Verify installation with: `protoc --version`
+  - If you encounter build errors, ensure all dependencies are properly installed
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
### Dependencies
- Install build-essential tools, SSL development libraries, and other required dependencies. On
Ubuntu, use:
``` shell
sudo apt install -y build-essential libssl-dev pkg-config unzip
```
On other Unix-like systems, use the equivalent package management commands.
### Dependencies
- Install build-essential tools, SSL development libraries, and other required dependencies. On
Ubuntu, use:

Comment thread README.md
Comment on lines +53 to +54
- Install build-essential tools, SSL development libraries, and other required dependencies. On
Ubuntu, use:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Instructions need platform-specific dependency commands

The README currently only provides Ubuntu-specific instructions for installing dependencies, with a vague reference to "equivalent package management commands" for other Unix-like systems. However, the codebase shows the tool supports multiple platforms (Windows, macOS, Linux). Specific instructions should be added for:

  • macOS (using Homebrew)
  • Windows (using vcpkg or similar)
  • Other major Linux distributions (Fedora, RHEL, etc.)

The following sections need platform-specific commands:

  • Build essential tools installation
  • SSL development libraries
  • pkg-config (Windows equivalent)
  • Protocol buffer installation (currently shows Linux x86_64 specific commands)
🔗 Analysis chain

Verify instructions on other platforms

While the instructions have been verified on Ubuntu 24.04, we should ensure they work on other common platforms.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for platform-specific installation instructions in issues/PRs

# Search for platform-specific installation issues
gh issue list --search "in:title installation" --json number,title,body --jq '.[] | select(.body | contains("Ubuntu") or contains("Debian") or contains("macOS") or contains("Windows"))'

# Search for related PRs
gh pr list --search "in:title installation" --json number,title,body --jq '.[] | select(.body | contains("Ubuntu") or contains("Debian") or contains("macOS") or contains("Windows"))'

Length of output: 372


Script:

#!/bin/bash
# Let's check the README.md and documentation for platform-specific installation instructions
rg -A 5 -B 5 "Install|Dependencies|Requirements" README.md docs/ || true

# Also search for any platform-specific mentions
rg -i "ubuntu|debian|macos|windows|linux" README.md docs/ || true

# Check if there are any platform-specific installation scripts
fd -e sh -e bat -e ps1 "install|setup" || true

Length of output: 3071

Copy link
Copy Markdown
Member

@pauldelucia pauldelucia left a comment

Choose a reason for hiding this comment

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

Do you want to do anything about CodeRabbit suggestions? If not, I will merge it in. (or you can if you're able)

@pauldelucia pauldelucia merged commit 2565719 into dashpay:master Nov 29, 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.

new instruction for installing DET

2 participants