https://github.com/haya14busa/vim-stacktrace
:mag: :bug: :paw_prints: Stacktrace of Vim script
https://github.com/haya14busa/vim-stacktrace
Last synced: about 2 months ago
JSON representation
:mag: :bug: :paw_prints: Stacktrace of Vim script
- Host: GitHub
- URL: https://github.com/haya14busa/vim-stacktrace
- Owner: haya14busa
- License: mit
- Created: 2016-09-29T13:09:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-23T13:21:42.000Z (over 4 years ago)
- Last Synced: 2025-05-05T21:09:59.940Z (about 2 months ago)
- Language: Go
- Homepage:
- Size: 48.8 KB
- Stars: 21
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## vim-stacktrace - Stacktrace of Vim script
[](https://travis-ci.org/haya14busa/vim-stacktrace)
[](https://coveralls.io/github/haya14busa/vim-stacktrace?branch=master)
[](https://goreportcard.com/report/github.com/haya14busa/vim-stacktrace)
[](LICENSE)
[](https://godoc.org/github.com/haya14busa/vim-stacktrace/go/stacktrace)
Illust credit: [いらすとや](http://www.irasutoya.com/) / [tenntenn/gopher-stickers](https://github.com/tenntenn/gopher-stickers)
vim-stacktrace provides a way to get a callstack or build stacktrace by error information (e.g. `v:throwpoint`, error message).
You can create quickfix list or location list from the result.vim-stacktrace helps you to debug Vim script :bug: and to report a helpful error report to issue tracker of Vim plugins :two_hearts:
#### :mag: :bug: Demo :CStacktraceFromhist
`:CStacktraceFromhist` sets selected error stacktrace to quickfix list from message history.

#### :paw_prints: Demo stacktrace#callstack()
`stacktrace#callstack()` returns current callstack.

### Requirements
- Vim 8.0 or above
- "go" command in $PATH### Installation
[dein.vim](https://github.com/Shougo/dein.vim) / [vim-plug](https://github.com/junegunn/vim-plug)
```vim
call dein#add('haya14busa/vim-stacktrace', {'build': 'make'})
``````vim
Plug 'haya14busa/vim-stacktrace', { 'do': 'make' }
```### Proof of Concept: Writing Vim plugin in Go lang for Vim 8.0
vim-stacktrace demonstrates a feasibility to write Vim plugin in Go lang for Vim 8.0.Libraries which helps me to write vim-stacktrace in Go lang.
- [haya14busa/vim-go-client](https://github.com/haya14busa/vim-go-client) for communicating with Vim
- [haya14busa/go-vimlparser](https://github.com/haya14busa/go-vimlparser) for creating rich stacktrace by parsing Vim script without any noticeable delay### :bird: Author
haya14busa (https://github.com/haya14busa)