Installation Issues
Dependencies not found
Dependencies not found
bin/psysh:329-332.Class 'Psy\Shell' not found
Class 'Psy\Shell' not found
psysh binary should handle this automatically.Cannot download manual
Cannot download manual
-
Check internet connection:
- Check firewall/proxy: Ensure GitHub is not blocked
-
Try different downloader: PsySH tries cURL, then falls back to
file_get_contents -
Manual download:
- Download from PsySH releases
- Place in
~/.local/share/psysh/php_manual.php
Runtime Errors
Parse error when entering code
Parse error when entering code
Variable not found
Variable not found
Fatal error crashes PsySH
Fatal error crashes PsySH
pcntl extension):In .psysh.php:Infinite loop cannot be stopped
Infinite loop cannot be stopped
- Force terminate: Press Ctrl+\ (SIGQUIT) or kill from another terminal
-
Enable pcntl for better signal handling:
-
Use timeout: Set execution time limit:
Configuration Issues
Config file not loaded
Config file not loaded
.psysh.php is not applied.Cause: Config file is in wrong location or has syntax errors.Solution:-
Check file location:
-
Verify syntax:
-
Check return value:
-
Use PSYSH_CONFIG environment variable:
Multiple config files warning
Multiple config files warning
Invalid configuration option
Invalid configuration option
src/Configuration.php:62-98:Autoloading Issues
Project classes not found
Project classes not found
-
Trust the project:
-
Manually load autoloader:
-
Check if autoloader exists:
-
Run composer install if missing:
Skipping project autoload warning
Skipping project autoload warning
Local PsySH skipped
Local PsySH skipped
Display Issues
No colors in output
No colors in output
-
Terminal doesn’t support colors:
-
Force color mode:
- On Windows: Use Windows Terminal or ConEmu for better color support
Garbled characters or boxes
Garbled characters or boxes
-
Set terminal encoding to UTF-8:
-
Disable Unicode in PsySH:
Output too wide for terminal
Output too wide for terminal
Readline Issues
No command history
No command history
-
Check readline:
-
Install readline:
-
Configure history file:
Tab completion not working
Tab completion not working
Bracketed paste issues
Bracketed paste issues
Manual/Documentation Issues
Manual not found
Manual not found
Invalid manual file
Invalid manual file
Multiple manual files warning
Multiple manual files warning
Permission Issues
Data directory not writable
Data directory not writable
Cannot save history
Cannot save history
Cannot save trust settings
Cannot save trust settings
Performance Issues
Slow startup time
Slow startup time
-
Large autoload files: Disable autoload warming:
-
Update checks: Disable automatic updates:
-
Too many includes: Reduce default includes:
Slow tab completion
Slow tab completion
Platform-Specific Issues
Windows: Colors not working
Windows: Colors not working
Windows: pcntl not available
Windows: pcntl not available
pcntl extension doesn’t exist on Windows.Solution: This is a Windows limitation. Use fallback signal handler:macOS: Readline behaves differently
macOS: Readline behaves differently
~/.editrc: