docs: add FAQ and troubleshooting entries based on common Discord questions#8930
docs: add FAQ and troubleshooting entries based on common Discord questions#8930
Conversation
…stions Analyzed #mise-help Discord channel to identify recurring pain points: - Clarify `mise install` vs `mise use` difference - Explain that `latest` means latest installed, not latest remote - Document `mise trust` issues (accidental ignore, symlinks, non-interactive) - Add `idiomatic_version_file_disable_tools` for ignoring .python-version - Document redact + raw task interaction bug - Add CI/non-interactive shell troubleshooting - Add task tips: namespaced names, sequential deps with wait_for, vars Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tools idiomatic_version_file_disable_tools is deprecated. Idiomatic version files are now disabled by default and opt-in per tool via idiomatic_version_file_enable_tools. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ls now Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
This pull request expands the documentation with new FAQ entries, task configuration tips, and troubleshooting advice for CI environments. Key updates include distinguishing between mise install and mise use, explaining version resolution, and detailing task namespacing and dependencies. Feedback highlights the need to account for platform-specific state directories and to provide more generic environment variable examples for CI systems other than GitHub Actions.
docs/faq.md
Outdated
| added to the ignore list. Check `ls ~/.local/state/mise/ignored-configs/` and remove the | ||
| relevant symlink to un-ignore it. |
There was a problem hiding this comment.
The path ~/.local/state/mise/ignored-configs/ assumes the default XDG state directory on Unix-like systems. This path will differ on Windows or if the user has customized MISE_STATE_DIR. It would be more robust to mention that this is the default state directory or suggest using mise doctor to find the actual state path.
| ```bash | ||
| # Option 1: Use shims (recommended for CI) |
There was a problem hiding this comment.
Option 1 uses $GITHUB_PATH, which is specific to GitHub Actions. For a general troubleshooting guide covering CI environments, it would be beneficial to also provide the standard PATH export used in other systems like GitLab CI or Jenkins.
| ```bash | |
| # Option 1: Use shims (recommended for CI) | |
| # Option 1: Use shims (recommended for CI) | |
| # For GitHub Actions: | |
| echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH | |
| # For other CI systems: | |
| export PATH="$HOME/.local/share/mise/shims:$PATH" |
References
- The product name 'GitLab' must be capitalized as 'GitLab', not 'Gitlab'.
Based on analysis of ~10k messages from #mise-general:
FAQ:
- How activate/shims/exec/env relate (comparison table)
- How mise exec works (common syntax mistake)
- Where mise use writes to (parent config surprise)
- mise is for dev tools, not system packages
Troubleshooting:
- Tool not found after install in scripts
- ~/.bash_profile creation breaks ~/.profile on Ubuntu
Tips:
- Task working directory (dir + {{cwd}})
- env._.path must be an array, not colon-separated
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Greptile SummaryThis documentation-only PR adds several FAQ and troubleshooting entries to mise's docs, derived from analysis of ~3500 Discord
Confidence Score: 5/5Safe to merge — documentation-only changes with no runtime code modifications All content was verified against the codebase (latest semantics in tool_version.rs, hook-env CLI command, mise use --path flag). No P0 or P1 issues found. Previously flagged P1 concerns (contradictory Wrong/Also right examples, misleading idiomatic files section title) have been resolved. The additions are accurate, well-organized, and directly address documented Discord pain points. No files require special attention Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
Q[Need mise-managed tools available?] --> A{Context}
A -->|Interactive terminal| B[mise activate
in ~/.bashrc / ~/.zshrc]
A -->|Script or CI| C{Preferred approach}
A -->|IDE / editor| D[mise activate --shims
or shims on PATH]
B --> E[PATH updated dynamically
on each prompt]
D --> F[Shims resolve at invocation
no hooks or env support]
C -->|Recommended for CI| G[export PATH=~/.local/share/mise/shims:$PATH]
C -->|Single command| H[mise exec -- command]
C -->|After install in same script| I[eval $(mise hook-env)]
G --> J[Tools available for
entire job/session]
H --> K[Env set up for
one invocation only]
I --> L[PATH updated immediately
in current shell process]
Reviews (2): Last reviewed commit: "docs: address PR review feedback" | Re-trigger Greptile |
Task tips (namespaced names, wait_for, dir/cwd, vars) and _.path were already well-documented in their respective pages. Removed duplicates from tips-and-tricks and added a TOML quoting tip to the task grouping section where people are most likely to look. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix contradictory mise exec examples (same command labeled wrong/right) - Retitle idiomatic version files section to match content - Make CI shims example generic (not GitHub Actions specific) - Reference state directory docs instead of hardcoded path Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Hyperfine Performance
|
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2026.4.4 x -- echo |
22.1 ± 0.5 | 21.3 | 25.1 | 1.00 |
mise x -- echo |
22.6 ± 0.4 | 21.6 | 24.2 | 1.02 ± 0.03 |
mise env
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2026.4.4 env |
21.9 ± 0.8 | 20.8 | 27.4 | 1.00 |
mise env |
22.1 ± 0.4 | 21.3 | 23.5 | 1.01 ± 0.04 |
mise hook-env
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2026.4.4 hook-env |
22.8 ± 0.6 | 21.5 | 24.8 | 1.00 |
mise hook-env |
22.9 ± 0.4 | 21.9 | 24.7 | 1.00 ± 0.03 |
mise ls
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2026.4.4 ls |
19.7 ± 0.4 | 18.8 | 22.0 | 1.00 |
mise ls |
20.1 ± 0.5 | 19.2 | 25.2 | 1.03 ± 0.03 |
xtasks/test/perf
| Command | mise-2026.4.4 | mise | Variance |
|---|---|---|---|
| install (cached) | 150ms | 148ms | +1% |
| ls (cached) | 78ms | 78ms | +0% |
| bin-paths (cached) | 82ms | 81ms | +1% |
| task-ls (cached) | 820ms | 801ms | +2% |
Summary
Analyzed ~3500 messages from the #mise-help Discord channel to identify recurring questions and pain points that aren't well-covered in the docs.
FAQ additions (
docs/faq.md):mise installvsmise use— one of the most common points of confusion for newcomerslatestversion semantics — clarifies thatlatestmeans latest installed in config, but latest available in commands likemise installandmise xmise trustissues — covers accidental ignoring, symlinked configs, non-interactive mode silently skipping untrusted configs.python-version— documentsidiomatic_version_file_disable_toolswhich people frequently ask about (especially uv users)Troubleshooting additions (
docs/troubleshooting.md):redact+rawtask interaction — known bug where redacted env vars break raw task outputmise activatein CI/non-interactive shells — consolidates the workarounds people keep asking aboutTips & Tricks additions (
docs/tips-and-tricks.md):wait_foris the answer but people keep asking how to do this[vars]— the vars section is hard to discover, people keep asking about reusable values in tasksTest plan
🤖 Generated with Claude Code
Note
Low Risk
Low risk: documentation-only changes that clarify existing CLI behavior and common setup/script issues, with no runtime or API impact.
Overview
Adds several new FAQ entries clarifying common points of confusion: how
mise installdiffers frommise use, howlatestresolves depending on command/context, howmise trust/ignored configs can cause configs to be skipped, and how/when idiomatic version files are read.Improves task docs by calling out that namespaced task keys containing
:must be quoted inmise.toml.Expands troubleshooting with guidance for scripts/CI where tools aren’t found immediately after
mise install/use(PATH not updated without a prompt), plus notes on~/.bash_profileoverriding~/.profile,redactinteracting withrawtask output, and recommended non-interactive activation approaches (shims/mise exec/hook-env).Reviewed by Cursor Bugbot for commit 6a35c1e. Bugbot is set up for automated code reviews on this repo. Configure here.