-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
resumeNotification not called within same tick: Error #116
Comments
Interesting, this only happens if the file import flutter material? Could you also share the output of coc itself |
This error does not occur when I am not running my android emulator. |
That’s weird |
I restarted my avd Pixel emulator (I had tried this before) and now the plugin seems entirely different. I'm not even sure what to say. 10 minutes ago there was not much code-highlighting - errors were underlined. Now the errors are highlighted bold red (which looks much nicer lol). Maybe some part of the avd pipeline was caching something? I'm not sure if it's related, but now I have to save a file twice sometimes for error messages to appear - but the highlight seems to still show. At the moment, I can't recreate my issue. Maybe my issue is already solved? How do I capture coc's output? |
The bold red is the default coc uses indeed
You have to save the file before it shows you the diagnostics? That doesn't sound correct. This sounds like you have some kind of configuration issue.
Use |
Do you also have another lsp client installed? I found the exact error you posted for vim-lsc |
Diagnostics load when the file opens. Sometimes after saving (10% of the time?) diagnostics are hidden. But the bold red remains and is visual queue enough to save again. It's not ideal, but it doesn't really bother me
I'm not sure if there's a command for this, but if I cat ~/.vim/bundle/coc.vim/package.json it says coc.nvim version 0.0.80
It's likely
Yes. It is common to use both coc and lcs, correct? .vimrc snippet
When I remove This is interesting, but for me things are working well enough and I'm happy. Let me know if you want me to test something. Thanks for finding the cross-reference |
Not sure but it sounds like it is at least overkill haha.
Alright feel free to open a new issue if there is something that needs improving :) |
So, after toying with lsc the error is happening consistently, as originally described (all coc diagnostics disappear after saving most of the time). I removed
If I open |
Just for the record, you're no longer seeing |
Correct. The lsc folders are gone from my .vim/bundle folder. I'm not sure why coc was working fine, nor why reinstalling lsc broke it again. For now I'm trying to do a clean install with only coc |
Ow you reinstalled lsc and that's when it broke again 🙈 Then I'm gonna close this again, I don't think it's normal to run both at the same time and can definitely imagine that that would give problems. Still strange though that it sorta breaks but still works half of the time. |
No, lsc is gone. I should actually say that coc broke after I uninstalled lsc, lol Then I reinstalled lsc and it was still broken. So now I've removed everything. All I have in my vimrc for dart is:
|
This looks like an issue with coc.nvim's use of resumeNotification (which seems to come from nvim), so I might open an issue there. It could also be an issue with how coc-flutter is implementing coc. |
Why do you think it has something to do with that? |
I assumed I installed coc-flutter on my Void linux machine, and it works well. It is using underlines instead of bold red font (config?), but I don't see any issues otherwise. |
The resume notification error is unrelated and you can ignore it (we are looking into it still but other then showing the error it doesnt cause any issues) Good to hear you got it working. I personally use the following: highlight CocErrorHighlight guibg=#660000 guifg=None gui=italic
highlight CocWarningHighlight guibg=#666600 guifg=#ffa600 gui=bold,underline
|
@gronka Seems like bug fo coc-flutter, please test with #117 |
Let's reopen to make track easier |
Thanks! The resumeNotification error is gone, but the main issue persists (coc diagnostics disappear after 70% of saves). With flutter.trace.server set to verbose, the log doesn't show much. This log looks the same on both my popos and void laptops:
@iamcco fyi, the diagnostics always load on file open. So, I can still use coc-flutter even though it's janky. I can make keybinds for coc#refresh() and :CocRestart which can get me through for now. What I'm saying is it would be nice if this worked, but it's not a major issue for me so you can leave this as low priority.
It works on my Void laptop. It's still broken on my Popos laptop. I use a github repo to sync my dotfiles, so vimrc and such are exactly the same. So, maybe it's a Pop os issue Popos (based on ubuntu) will be releasing their next version in a month (alongside the ubuntu update) - maybe that will fix it. There is a high chance I will install void since I have fewer issues on void. I tried updating from node v10.something to v15.12.0, which didn't help. |
|
It doesn't fix it. It updates the diagnostics each time I run it. Oh lol I just read that coc#refresh is for updating completion. I assumed it refreshed everything. Well, that's a bit odd. It refreshes my errors as well. |
What happens if the diagnostics are missing and you do |
This also refreshes the diagnostics. |
Setting Maybe tomorrow I'll try another coc plugin, which should determine if this is an issue with coc or coc-flutter |
when
|
All this definitely sounds like it’s going wrong at coc’s end. I also noticed you’re running quite an old version of node, is the other machine where it works correctly using a newer version perhaps? |
When I launch vim on a dart file that imports flutter/material, I get the message "Starting device daemon...". Then, the coc errors in my code load. Finally, I get this error message on the bottom of my screen:
[lsc:Error] Error from message handler: 'Vim(call):E117: Unknown function: win_execute'
After I save, all error highlights in code disappear. I assume lsc has crashed and it's cache is wiped at this point.
To Reproduce
call
vim *.dart
This is occurring on all of my dart files that import flutter/material
Expected behavior
I expect no error message.
I expect errors to refresh on file save instead of disappearing.
Desktop (please complete the following information):
Linux pop-os 5.8.0-7642-generic #47
161400714920.04~82fb226-Ubuntu SMP Tue Feb 23 02:56:27 UTC x86_64 x86_64 x86_64 GNU/LinuxNVIM v0.4.4
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-aKIhK1/neovim-0.4.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-aKIhK1/neovim-0.4.4/build/config -I/build/neovim-aKIhK1/neovim-0.4.4/src -I/usr/include -I/usr/include/lua5.1 -I/build/neovim-aKIhK1/neovim-0.4.4/build/src/nvim/auto -I/build/neovim-aKIhK1/neovim-0.4.4/build/include
Compiled by [email protected]
The same error seems to occur with VIM - Vi IMproved 8.1 (2018 May 18, compiled Apr 15 2020 06:40:31), but there is no error message. On vim when I call
:CocCommand workspace.showOutput
nothing happensOutput channel:
Config
This error occurs when my config is blank. But I also tried it with these settings:
The text was updated successfully, but these errors were encountered: