-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some way to look at formatted error under cursor #39
Comments
In the current version you can see formatted errors inside vim quick fix list. I tend to use
I even have a simple command for that
Handy for very long error messages |
Hey @coot thanks for the tip, but sorry if I'm not understanding correctly. Are you saying that when psc-ide-vim populates the quickfix list, you can display it pretty-printed? I haven't been able to get that to happen... from what I understand quickfix can only contain a single line per error, and strips out newline characters (there also seems to be a max line-length, so very long errors get cropped). |
Yes, that's true. The common workaround for that is to put each line in a single entry and only put the filename and line number in the first one. vim will render it like this:
The |
Long error messages (especially type errors) passed to syntastic become quite hard to read, since it seems that psc-ide-vim strips them of newlines during processing.
It would be great to have some easy way to look at the error under the cursor in a pretty-formatted way. Either by passing it to syntastic this way, or through a psc-ide-vim specific command.
Not sure how hard this is -- it seems that it may be a shortcoming of Syntastic/location lists vim-syntastic/syntastic#1700
Thanks for the fantastic plugin!
The text was updated successfully, but these errors were encountered: