qnvim icon indicating copy to clipboard operation
qnvim copied to clipboard

Texteditor.FollowSmybolUnderCursor breaks previous file.

Open tom-anders opened this issue 4 years ago • 7 comments

Say I am in fileA.cpp and use Texteditor.FollowSmybolUnderCursor with the shortcut provided in your example qnvim.vim file. This takes me to fileB.cpp as expected. However, when I go back to fileA.cpp (via QtCreator.GotoPreviousInHistory) the fileA.cpp will appear as empty and I have to restart QtCreator to see its contents again. Let me know if you can reproduce this or need more details.

tom-anders avatar Feb 26 '20 12:02 tom-anders

This is even clearer if you do FollowSymbolUnderCursorInNextSplit, you will see that the old file suddenly is emptied after the new split appears

tom-anders avatar Feb 26 '20 12:02 tom-anders

Also, sometimes it works the first time, but then the bug appears everytime after that

tom-anders avatar Feb 26 '20 13:02 tom-anders

Thanks! Unfortunately I'm currently out of time to work on qnvim issues. I expect to work on a Qt project soon and if that happens then I can work on qnvim again.

Meanwhile please feel free to provide pull requests, any help is appreciated.

sassanh avatar Feb 27 '20 10:02 sassanh

Any updates on this?

@Shatur95 I've seen you did some work on this repo recently, have you maybe already looked at this bug?

tom-anders avatar Jun 07 '20 19:06 tom-anders

@tom-anders, currently I trying to make QtCreator from Neovim instead of making Neovim from QtCreator :D Nightly versions of Neovim have very fast LSP that can provide similar experience. And for working with CMake as in IDE I made a plugin. But If I will back to QtCreator, I will try to fix.

Shatur avatar Jun 07 '20 20:06 Shatur

Unfortunately I'm not working with Qt Creator these days and do not have any time right now, I'm looking forward to see a Qt Creator made from Neovim though :)

sassanh avatar Jun 07 '20 21:06 sassanh

@tom-anders Does it always happen for you? I just checked it several times quickly and it didn't happen for me, in case you are using a prebuilt version I suggest building it yourself from latest version, I think some instabilities have been resolved without being released yet.

sassanh avatar Jun 07 '20 21:06 sassanh

Closing as no more information is provided.

sassanh avatar Dec 18 '23 07:12 sassanh