Troubleshooting¶
Common Issues¶
Socket Mode Connection Errors
Ensure
pet-serveris running:pet-server -p 8765Verify port availability and network connectivity
Check firewall settings if connecting remotely
Subprocess Mode Errors
Ensure
petcommand is available in PATH:which petVerify coq-lsp installation includes the
petbinaryCheck that the
petprocess can access your Rocq/Coq files
File Path Issues
Use absolute paths or ensure working directory is correct
Check file exists and has proper Coq/Rocq syntax
Ensure workspace is set correctly with
client.set_workspace()
Installation Issues
Ensure coq-lsp is properly installed with both
petandpet-serverInstall
lwtandlogsbeforecoq-lsp(required for both modes)Verify installation:
pet --versionandpet-server --version
Performance Considerations
Socket mode: Better for multiple clients or long-running sessions
Subprocess mode: Better for single-client usage or automation
Choose the appropriate mode based on your use case