Troubleshooting Bob Shell
Find solutions to issues you might encounter when using Bob Shell.
Authentication
Certificate errors
Error: Unable to verify certificate
Cause: You are on a corporate network with a firewall that intercepts and inspects SSL/TLS traffic. This requires a custom root CA certificate to be trusted by Node.js.
Solution: Set the NODE_EXTRA_CA_CERTS environment variable to the absolute path of your corporate root CA certificate file:
export NODE_EXTRA_CA_CERTS=/path/to/your/corporate-ca.crtIDE integration
Connection fails
Error: Bob Shell cannot connect to the IDE.
Cause: The Bob Shell Companion extension might not be installed or running, or Bob Shell might be running outside the workspace directory.
Solution:
- Install the Bob Shell Companion extension in your IDE.
- Navigate to your workspace directory in the terminal.
- Start Bob Shell from the workspace directory.
- Run
/ide enablein Bob Shell.
Connection fails in dev container
Error: Bob Shell cannot connect to the IDE when running inside a dev container.
Cause: The Bob Shell port is not forwarded from the dev container to the host machine.
Solution:
-
Get the Bob Shell port from the terminal inside the dev container:
echo $BOB_SHELL_CLI_IDE_SERVER_PORTExample output:
42991 -
Open the Command Palette in your IDE and select Forward a Port.
-
Add the port shown in step 1 (for example,
42991). -
Start Bob Shell:
bob -
Enable IDE integration:
/ide enableOr check the connection status:
/ide status
Failed to connect to IDE companion extension
Error: 🔴 Disconnected: Failed to connect to IDE companion extension
Cause: The Bob Shell Companion extension is not installed, not enabled, or not running in your IDE.
Solution:
- Verify the Bob Shell Companion extension is installed and enabled in your IDE.
- Open a new terminal in your IDE.
- Run
/ide enablein Bob Shell.
Connection lost unexpectedly
Error: 🔴 Disconnected: IDE connection error. The connection was lost unexpectedly
Cause: The IDE connection was interrupted due to a network issue or IDE restart.
Solution:
- Run
/ide enableto reconnect. - If the issue persists, restart your IDE.
Directory mismatch
Error: 🔴 Disconnected: Directory mismatch
Cause: Bob Shell is running in a different directory than the workspace open in your IDE.
Solution:
- Navigate to the same directory that's open in your IDE.
- Restart Bob Shell from that directory.
No workspace folder open
Error: 🔴 Disconnected: To use this feature, please open a workspace folder
Cause: No folder or workspace is open in your IDE.
Solution:
- Open a folder or workspace in your IDE.
- Restart Bob Shell.
IDE integration not supported
Error: IDE integration is not supported in your current environment
Cause: Bob Shell is not running from within a supported IDE's integrated terminal.
Solution: Run Bob Shell from within a supported IDE's integrated terminal.
Configuration issues
.bobignore not working
Error: Bob Shell ignores files you want it to access, or accesses files you want it to ignore.
Cause: The .bobignore file might have conflicting patterns, incorrect pattern order, or be in the wrong location. Changes might not have taken effect yet.
Solution:
- Check your
.bobignorefile for conflicting patterns. - Ensure more specific patterns (like negations with
!) come after general patterns. - Restart your Bob Shell session after making changes to
.bobignore. - Use absolute paths if relative paths aren't working as expected.
- Verify the
.bobignorefile is in your project root directory.
Settings not applying
Error: Bob Shell settings changes do not take effect.
Cause: The settings file might be in the wrong location, have invalid JSON syntax, or be overridden by higher-priority configuration sources. Changes might not have taken effect yet.
Solution:
-
Check the settings file location:
- Project settings:
.bob/settings.jsonin your project directory - User settings:
~/.bob/settings.jsonin your home directory
- Project settings:
-
Verify the JSON syntax is valid (use a JSON validator).
-
Remember the configuration precedence order:
- Command-line arguments (highest priority)
- Environment variables
- Project settings
- User settings
- System defaults (lowest priority)
-
Restart Bob Shell after changing settings files.
Custom instructions not loading
Error: Custom instructions are not being applied to Bob Shell sessions.
Cause: Custom instruction files might be in the wrong location, have incorrect file extensions, or not be loaded into the current context.
Solution:
-
Verify files are in the correct location:
- Workspace-wide:
.bob/rules/in your project root - Mode-specific:
.bob/rules-{modeSlug}/in your project root
- Workspace-wide:
-
Check that files have the correct extensions (
.md,.txt, or.xml). -
Use
/memory refreshto reload all context files. -
Use
/memory showto verify the current context.
Command running issues
Command not found
Error: command not found: bob
Cause: Bob Shell is not correctly installed or not in your system's PATH.
Solution:
-
Verify Bob Shell is installed:
which bob -
If not found, reinstall Bob Shell using the installation instructions.
-
Check that your shell's
PATHincludes the Bob Shell installation directory.
Shell mode not working
Error: Shell mode (! command) does not run commands.
Cause: You might not be typing ! at an empty prompt, lack necessary permissions, or the command itself might be invalid.
Solution:
- Verify you're typing
!at an empty prompt. - Check that you have the necessary permissions to run shell commands.
- Try running the command directly in your terminal first to verify it works.
Performance issues
Slow response times
Error: Bob Shell responds slowly to requests.
Cause: Network connectivity issues, too many files loaded as context, or large binary files included in the context.
Solution:
- Check your network connection.
- Reduce the number of files in context by using
.bobignore. - Avoid including large binary files or directories like
node_modules/. - Consider using more specific file references with
@instead of loading all files.
High memory usage
Error: Bob Shell consumes excessive memory.
Cause: Too many files loaded as context, large directories not excluded, or circular imports in memory files.
Solution:
- Limit the number of files loaded as context.
- Use
.bobignoreto exclude large directories. - Restart Bob Shell periodically during long sessions.
- Check for circular imports in your memory files.
Tips for debugging Bob Shell
Enable debug mode
To see detailed logging information, start Bob Shell with the debug flag:
bob --debugOr set the debug flag in your settings:
{
"general": {
"debug": true
}
}Verify your version of Bob Shell
Run the following command to see your version of Bob Shell:
Interactive session:
/aboutNon-interactive session:
bob --versionReview logs
Check Bob Shell logs for error messages:
- Logs are typically stored in
~/.bob/logs/ - Look for recent error messages or stack traces
- Share relevant log excerpts when reporting issues