Skip to content

KurtWeston/stack-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stack-search

Parse stack traces and automatically open the failing line in your editor

Features

  • 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

How to Use

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

Installation

# Clone the repository
git clone https://github.com/KurtWeston/stack-search.git
cd stack-search

# Install dependencies
pip install -r requirements.txt

Usage

python main.py

Built With

  • python using click

Dependencies

  • click>=8.0.0
  • pyperclip>=1.8.0
  • colorama>=0.4.0

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Parse stack traces and automatically open the failing line in your editor

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages