How to run explainshell locally on Windows?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
Hướng nghiên cứu
Start with runserver.py and the code that reads DB_PATH; reproduce the view error using the Windows setup with DB_PATH unset. Trace the logged “something went wrong...” failure, then use explainshell/db_check.py and the manager stats command to check the database behavior. Done means the server no longer attempts to use an invalid None path when DB_PATH is unset.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Thanks for the great tool!
I'm learning Bash and I think explainshell is even more useful on Windows, where there are no man / info pages (without WSL / MSYS). So here is an adapted version:
Running explainshell locally on Windows with uv:
# From an elevated session (to install in %ProgramFiles%)
winget install --interactive Git.Git # If it's not installed yet)
winget install --interactive jqlang.jq
winget install --interactive GNU.Wget2
winget install --interactive ezwinports.make
winget install --interactive Meta.Zstandard
# Already had wget2, so I've just symlinked it instead of looking for an actual port.
New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\.local\bin\wget.exe" -Value `
"$env:ProgramFiles\WinGet\Packages\GNU.Wget2_Microsoft.Winget.Source_8wekyb3d8bbwe\wget2.exe"
gh repo clone idank/explainshell
cd explainshell
# Worked even with Python 3.14.7
uv venv
.venv\Scripts\activate.ps1
uv pip install --compile-bytecode -r requirements-dev.txt
make download-latest-db # from Git Bash
Set-Item -Path env:$DB_PATH -Value 'explainshell.db'
python runserver.py # directly, instead of `make serve`
# These also work:
python explainshell\db_check.py
python -m explainshell.manager show stats
# Afterwards:
Remove-Item -Path env:DB_PATH
While setting this up I noticed that if $DB_PATH is not set, the server still tries to use None and views seem to work, but they throw an error something went wrong... this was logged and will be checked. So would be nice to fix it.
- Ngôn ngữ chính
- Python
- Star
- 14.3k
- Fork
- 851
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của idank/explainshell
-
`test -s` shows all optionsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
idank/explainshell#367 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
idank/explainshell#365 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
idank/explainshell#354 · 2 bình luận · 4 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
idank/explainshell#343 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
idank/explainshell#327 ·
Tất cả issue của idank/explainshell
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
spec-kitty/spec-kitty#5319 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
backend::vllm diffusion multimodal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
openai/openai-agents-python#5229 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày