Skip to content

Update folder structure and hatch builds to fix issue #2 #3

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

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

rahlk
Copy link
Contributor

@rahlk rahlk commented Jul 11, 2025

Motivation and Context

Packages installed using uv pip install . work correctly within the uv-managed environment, but their CLI entry points may break when executed via system-wide Python (e.g., pyenv), resulting in ModuleNotFoundError.

This PR improves the developer experience by:

  • Logging a warning if the CLI script is executed from outside the uv environment
  • Adding documentation to clarify how CLI dispatch works with uv and Python environment managers

How Has This Been Tested?

Tested locally with:

  • Flat layout Python project (codeanalyzer/)
  • pyenv 3.12.11 with global Python
  • uv-installed editable package
    Verified that CLI fails outside uv but succeeds with uv run codeanalyzer.

Breaking Changes

None

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the Codellm-Devkit Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

This PR addresses developer confusion when installing packages via uv while using global Python tools like pyenv. It doesn't change installation behavior but improves clarity and avoids false bug reports.

Signed-off-by: Rahul Krishna <i.m.ralk@gmail.com>
@rahlk rahlk self-assigned this Jul 11, 2025
@rahlk rahlk added the bug Something isn't working label Jul 11, 2025
@rahlk rahlk merged commit 601839c into main Jul 11, 2025
@rahlk rahlk deleted the 2-unable-to-run-codeanalyzer-cli branch July 11, 2025 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant