Coc.nvim: Error Message

Created on 21 May 2019  路  6Comments  路  Source: neoclide/coc.nvim

Is there a way to show a better error message in typescript files ?
I know that recently typescript since the 3.0 version ships with an improved error message.
However although I'm using the 3.4 version I can't see any improvement.
this is the error:

AddNewKeypadScreen_tsx___Volumes_BACKUP_Projects_piosoft_BlackStar_BlackStar_src_screen__-_NVIM

In vscode the error is the same but you can hover over with the mouse and scroll down until you can understand what the error is. In the above picture I can't really understand at the first sight what is happening and apparently there is no way to expand that message.

question

Most helpful comment

but something that doesn't require the mouse would be better

Sure, there is coc#util#float_jump() can be used for jump to floating window, mostly I use <C-w>p for jump to last opened window then <C-f> to scroll.

All 6 comments

You can scroll the floating window by use mouse when your have set mouse=a, but in your case it's all message so no need to scroll.
So what's your suggestion to make it more readable?

Thanks. Mouse was not working because I was using nvim inside a tmux session. Tried outside tmux and I can scroll the message as I do in vscode. The message in the screenshot is not the whole message, part of the text is at the very bottom and it contains the relevant issue giving me the name of the wrong property.
I'm not sure what to suggest but something that doesn't require the mouse would be better, maybe a shortcut that show the message in the classic vim QuickList without truncating it, or a new window at the bottom that you can focus and scroll ?

but something that doesn't require the mouse would be better

Sure, there is coc#util#float_jump() can be used for jump to floating window, mostly I use <C-w>p for jump to last opened window then <C-f> to scroll.

Wow, I didn't know about that. Amazing. Works like a charm. Thank you very much.
Closing.

but something that doesn't require the mouse would be better

Sure, there is coc#util#float_jump() can be used for jump to floating window, mostly I use <C-w>p for jump to last opened window then <C-f> to scroll.

@chemzqm When I try <C-w>p it jumps to the window correctly, but it only lasts for a split second before disappearing. Any ideas what could be going on?

I suspect the window is being removed because I am no longer hovering over the affected code.

@hamza-tm Can't reproduce, try minimal vimrc.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaskRay picture MaskRay  路  3Comments

chemzqm picture chemzqm  路  3Comments

FrankLA0203 picture FrankLA0203  路  3Comments

LinArcX picture LinArcX  路  4Comments

skylite21 picture skylite21  路  3Comments