mattboehm / vim-unstack

Vim plugin for parsing stack traces and opening the files
286 stars 15 forks source link

supporting old style Go error format #22

Closed freehaha closed 10 years ago

freehaha commented 10 years ago

Hi,

This old format is used in golang runtime/debug.Stack() and is now deprecated but some library still use it. I wonder if you think unstack should include this extractor?

call add(extractors, unstack#extractors#Regex('\v^[ \t]*(.+):(\d+) \(0x\d+\)$', '\1', '\2'))
freehaha commented 10 years ago

hmm, I guess I can just set the extra extractor in my .vimrc

mattboehm commented 10 years ago

Yep, sorry I missed this comment (I need to stop watching so many repos I no longer care about.) If the format were still in use, I'd definitely add it but as it's deprecated I think it's best to add the extra extractor. Let me know if you run into any issues.