Troubleshooting
Solutions to common problems when using FSH Lint.
Installation Issues
Section titled “Installation Issues”Cargo Install Fails
Section titled “Cargo Install Fails”Problem: cargo install maki fails
Solutions:
- Update Rust:
rustup update stable- Clear cargo cache:
rm -rf ~/.cargo/registrycargo install maki- Build with verbose output:
cargo install maki -vBinary Not Found
Section titled “Binary Not Found”Problem: maki: command not found
Solution: Add Cargo bin to PATH:
export PATH="$HOME/.cargo/bin:$PATH"Add to .bashrc or .zshrc for persistence.
Configuration Issues
Section titled “Configuration Issues”Config File Not Found
Section titled “Config File Not Found”Problem: FSH Lint can’t find configuration
Solution: Create config in project root:
maki initInvalid Configuration
Section titled “Invalid Configuration”Problem: Configuration file is invalid
Solution: Validate against schema:
maki check --config maki.jsonLinting Issues
Section titled “Linting Issues”Too Many Diagnostics
Section titled “Too Many Diagnostics”Problem: Overwhelming number of errors
Solutions:
- Start with errors only:
maki lint --severity error **/*.fsh- Fix automatically:
maki lint --fix **/*.fsh- Temporarily disable rules:
{ "linter": { "rules": { "style": "off" } }}False Positives
Section titled “False Positives”Problem: Rule incorrectly reports issue
Solutions:
- Disable inline:
// maki-disable-next-line rule-nameProfile: MyProfile- Adjust rule severity:
{ "linter": { "rules": { "style/naming-convention": "off" } }}Performance Issues
Section titled “Performance Issues”Slow Linting
Section titled “Slow Linting”Problem: Linting takes too long
Solutions:
- Exclude large directories:
{ "files": { "exclude": ["**/node_modules/**", "**/build/**"] }}- Limit file scope:
maki lint input/fsh/ --ignore-pattern "**/*.generated.fsh"High Memory Usage
Section titled “High Memory Usage”Problem: FSH Lint uses too much memory
Solution: Process files in batches:
find . -name "*.fsh" -print0 | xargs -0 -n 10 maki lintCI/CD Issues
Section titled “CI/CD Issues”Build Timeout
Section titled “Build Timeout”Problem: CI builds timeout during installation
Solution: Use cached binaries:
- name: Download FSH Lint run: | curl -L https://github.com/octofhir/maki/releases/latest/download/maki-linux.tar.gz | tar xz sudo mv maki /usr/local/bin/Inconsistent Results
Section titled “Inconsistent Results”Problem: Different results in CI vs local
Solution: Pin FSH Lint version:
cargo install maki --version 0.1.0Output Issues
Section titled “Output Issues”No Color in CI
Section titled “No Color in CI”Problem: CI output lacks color
Solution: Force color output:
maki --color always lint **/*.fshGarbled Output
Section titled “Garbled Output”Problem: Output has encoding issues
Solution: Set UTF-8 encoding:
export LANG=en_US.UTF-8maki lint **/*.fshGetting Help
Section titled “Getting Help”If you’re still stuck:
- Check GitHub Issues
- Search Discussions
- Open a new issue with:
- FSH Lint version (
maki --version) - OS and version
- Minimal reproduction example
- Full error output
- FSH Lint version (
Common Error Messages
Section titled “Common Error Messages””Failed to parse FSH file”
Section titled “”Failed to parse FSH file””Cause: Invalid FSH syntax
Solution: Check FSH syntax against FSH spec
”Circular dependency detected”
Section titled “”Circular dependency detected””Cause: Profile inherits from itself
Solution: Review parent relationships
”Unknown rule”
Section titled “”Unknown rule””Cause: Referenced rule doesn’t exist
Solution: Run maki rules to see available rules