Troubleshooting
Overview
This guide covers common issues you might encounter while using entkapp v5.3.1 and provides solutions to resolve them.
General Issues
Analysis is taking too long
- Cause: Large codebase, disabled caching, or too many active plugins.
- Solution:
- Ensure
cache: trueis set in your config. - Disable unnecessary plugins in
enabledPlugins. - Check that
node_modulesand build folders are in your.gitignore.
- Ensure
False positives (Code flagged as dead but is used)
- Cause: Dynamic imports, reflection, or framework-specific "magic" usage.
- Solution:
- Use
// entkapp-ignorecomments above the flagged code. - Add the file or symbol to the
ignorelist inconfig.json. - Ensure you have the correct ecosystem plugin enabled (e.g.,
nextjsfor Next.js projects).
- Use
False negatives (Dead code not flagged)
- Cause: The code is being referenced in a way the analyzer doesn't recognize (e.g., in a string that happens to match a filename).
- Solution:
- Ensure all entry points are correctly identified.
- Edit / make a config file under /entkapp/config.json
CLI Errors
"Command not found: entkapp"
- Solution: Ensure you have installed the package locally (by
npm install -g entkapp@latest) or you are usingnpx entkapp@latest.
"Critical Operational Pipeline Failure"
- Cause: Usually a permission issue, a corrupt cache, or an unhandled edge case in a plugin.
- Solution:
- Run with
--verboseto see the full stack trace. - Try clearing the cache:
rm -rf .entkapp/cache. - Ensure the engine has write permissions to your project directory.
- Run with
Plugin Issues
"Plugin must implement name getter"
- Cause: You are using a custom plugin designed for older versions that hasn't been updated.
- Solution: Update your plugin class to include a
get name()method.
"Dependency resolution failed"
- Cause: Complex tsConfig paths or missing workspace symlinks.
- Solution:
- Verify your
tsconfig.jsonpaths. - Ensure you have run
npm installorpnpm installin your monorepo.
- Verify your
Automated Healing Issues
"Healing proposing incorrect changes"
- Solution:
- Review the proposed changes in dry-run mode first.
- Ensure your test suite is comprehensive, as the healer relies on tests for verification.
- Use more specific
ignorerules to protect sensitive code areas.
"Rollback failed"
- Cause: Git state was modified during the healing process.
- Solution: Ensure your working directory is clean before running with
--fix.
Monorepo Issues
"Package not found in workspace"
- Cause: Incorrect workspace configuration or symlink issues.
- Solution:
- Verify your
pnpm-workspace.yamlorworkspacesfield inpackage.json. - Run
pnpm installornpm installto ensure symlinks are correctly created.
- Verify your
Getting Help
If you can't find the solution here:
- Check the GitHub Issues.
- Run with
--verboseand share the logs. - Consult the API Documentation for programmatic issues.