Skip to content

Conversation

valentin-pinkau
Copy link
Member

This PR updates the install instructions.
There is no ./start-docker.sh anymore and webknossos now works with apple silicon.

Copy link
Contributor

coderabbitai bot commented Jul 29, 2025

📝 Walkthrough

Walkthrough

The development installation documentation was updated by removing the entire Docker section and associated instructions. MacOS installation steps were revised to eliminate architecture-specific commands and to simplify environment variable exports, standardizing them to use the /opt/homebrew path without conditional logic.

Changes

Cohort / File(s) Change Summary
Development Installation Documentation
DEV_INSTALL.md
Removed Docker section and related commands; revised MacOS instructions by eliminating architecture checks and updating environment variable exports to use /opt/homebrew unconditionally.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~6 minutes

Possibly related PRs

Suggested labels

documentation

Suggested reviewers

  • fm3

Poem

The Docker’s gone, a lighter load,
Mac paths are now a single road.
No Rosetta dance, no arch to check,
Just /opt/homebrew, clear and direct.
Docs refreshed, so hop along—
Install with ease, and sing this song! 🐇

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch update_installation_instructions

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this 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.

@valentin-pinkau valentin-pinkau requested review from fm3 and normanrz July 29, 2025 13:01
Copy link
Member

@fm3 fm3 left a comment

Choose a reason for hiding this comment

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

LGTM, leaving approval to @normanrz

Copy link
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: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8e7c2c0 and 4ef5d38.

📒 Files selected for processing (1)
  • DEV_INSTALL.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: MichaelBuessemeyer
PR: scalableminds/webknossos#8221
File: CHANGELOG.unreleased.md:14-14
Timestamp: 2024-11-25T14:52:23.201Z
Learning: For the `webknossos` project, changelog entries in `CHANGELOG.unreleased.md` should be concise and avoid unnecessary detailed explanations.

Comment on lines 30 to 37
# Set env variables for openjdk and openssl
# You probably want to add these lines manually to avoid conflicts in your zshrc
echo 'if [ $(arch) = "i386" ]; then' >> ~/.zshrc
echo ' export JAVA_HOME=/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home' >> ~/.zshrc
echo ' export PATH="/usr/local/opt/openjdk/bin:$PATH"' >> ~/.zshrc
echo ' export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc
echo ' export LDFLAGS="-L/usr/local/opt/openssl/lib"' >> ~/.zshrc
echo ' export CPPFLAGS="-I/usr/local/opt/openssl/include"' >> ~/.zshrc
echo 'fi' >> ~/.zshrc
echo 'export JAVA_HOME=/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home' >> ~/.zshrc
echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/opt/homebrew/opt/openssl/bin:$PATH"' >> ~/.zshrc
echo 'export LDFLAGS="-L/opt/homebrew/opt/openssl/lib"' >> ~/.zshrc
echo 'export CPPFLAGS="-I/opt/homebrew/opt/openssl/include"' >> ~/.zshrc

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Unconditional /opt/homebrew paths break Intel macOS setups and contradict the Rosetta note below

The new exports hard-code Apple-Silicon-specific paths, so users on Intel Macs (where Homebrew lives under /usr/local/opt) will end up with an invalid JAVA_HOME, PATH, LDFLAGS, and CPPFLAGS.
At the same time, the paragraph at lines 56-57 still tells arm64 users to fall back to an x86_64 shell via Rosetta, implying that Intel is still a supported dev platform. The two parts are therefore inconsistent.

Diff proposal that keeps both architectures working and removes the now-misleading Rosetta paragraph:

-echo 'export JAVA_HOME=/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home' >> ~/.zshrc
-echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zshrc
-echo 'export PATH="/opt/homebrew/opt/openssl/bin:$PATH"' >> ~/.zshrc
-echo 'export LDFLAGS="-L/opt/homebrew/opt/openssl/lib"' >> ~/.zshrc
-echo 'export CPPFLAGS="-I/opt/homebrew/opt/openssl/include"' >> ~/.zshrc
+# Detect Homebrew prefix automatically
+BREW_PREFIX="$(brew --prefix)"
+
+# Java & OpenSSL environment
+echo "export JAVA_HOME=${BREW_PREFIX}/opt/openjdk/libexec/openjdk.jdk/Contents/Home" >> ~/.zshrc
+echo "export PATH=\"${BREW_PREFIX}/opt/openjdk/bin:\$PATH\"" >> ~/.zshrc
+echo "export PATH=\"${BREW_PREFIX}/opt/openssl/bin:\$PATH\"" >> ~/.zshrc
+echo "export LDFLAGS=\"-L${BREW_PREFIX}/opt/openssl/lib\"" >> ~/.zshrc
+echo "export CPPFLAGS=\"-I${BREW_PREFIX}/opt/openssl/include\"" >> ~/.zshrc
@@
-Note: On arm64-based Macs (e.g. M1), you need to run WEBKNOSSOS in an x86_64 environment (Rosetta 2). In case you accidentally started WEBKNOSSOS in an arm64 environment, it is advisable to delete several caches `~/.m2`, `~/ivy2`, `~/.sbt`, `~/.yarn-cache` and run `./clean`. Since Postgres and Redis are isolated processes, they can be run either from arm64 or x86_64 environments.
+# Apple Silicon and Intel are both supported. The automatic `brew --prefix` detection
+# above sets the correct paths for either architecture, so a Rosetta shell is no
+# longer required.

This keeps the doc functional for both chip families and removes obsolete guidance.
Please adjust wording as needed.

Also applies to: 56-57

🤖 Prompt for AI Agents
In DEV_INSTALL.md around lines 30 to 37, the environment variable exports use
hard-coded Apple Silicon paths under /opt/homebrew, which break Intel macOS
setups where Homebrew is installed under /usr/local/opt. To fix this, update the
instructions to conditionally set paths based on the architecture or provide
separate instructions for Intel and Apple Silicon Macs, ensuring both
architectures are supported. Also, remove or update the Rosetta fallback
paragraph around lines 56-57 to avoid confusion and keep the documentation
consistent.

@valentin-pinkau valentin-pinkau merged commit 6b2abbf into master Jul 29, 2025
5 checks passed
@valentin-pinkau valentin-pinkau deleted the update_installation_instructions branch July 29, 2025 13:12
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.

3 participants