Parse stack traces and automatically open the failing line in your editor
- Parse stack traces from stdin, file, or clipboard input
- Detect and extract file paths and line numbers from multiple languages (Python, Node.js, Go, Rust, Java)
- Support for both absolute and relative file paths with workspace detection
- Interactive selection menu when multiple stack frames are detected
- Open files in VS Code, Vim, Emacs, Sublime Text, or custom editor via environment variable
- Smart detection of stack trace format (language-agnostic parsing)
- Color-coded output showing detected files and line numbers
- Support for common stack trace variations (with/without columns, different separators)
- Dry-run mode to preview detected locations without opening editor
- Configuration file support for default editor and path mappings
- Handle Docker/container paths with configurable path translation
- Copy detected file:line to clipboard as fallback
Use this project when you need to:
- Quickly solve problems related to stack-search
- Integrate python functionality into your workflow
- Learn how python handles common patterns with click
# Clone the repository
git clone https://github.com/KurtWeston/stack-search.git
cd stack-search
# Install dependencies
pip install -r requirements.txtpython main.py- python using click
click>=8.0.0pyperclip>=1.8.0colorama>=0.4.0
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.