Skip to content
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

Display tick #33

Closed
AndreM222 opened this issue Mar 19, 2023 · 7 comments
Closed

Display tick #33

AndreM222 opened this issue Mar 19, 2023 · 7 comments

Comments

@AndreM222
Copy link

image
Can someone help me with this issue when I try to run it
image

@luukvbaal
Copy link
Owner

Could you check if the following patch fixes the issue?

--- a/lua/statuscol/ffidef.lua
+++ b/lua/statuscol/ffidef.lua
@@ -1,6 +1,6 @@
 local ffi = require("ffi")
 ffi.cdef([[
-       uint64_t display_tick;
+       unsigned long int display_tick;
        typedef struct {} Error;
        typedef struct {} win_T;
        typedef struct {

@luukvbaal
Copy link
Owner

luukvbaal commented Mar 19, 2023

Could you check if the following patch fixes the issue?

I'm not sure that it will. Are you on Windows? folke/noice.nvim#229 seems related.

Some googling suggests similar errors can be resolved by adding missing libraries(DLLs) to the path, though I'm not sure what would be the relevant library here.

@luukvbaal
Copy link
Owner

It seems only functions are available through FFI on windows: neovim/neovim#15999?
Won't have access to a windows machine until later this week to test.

@AndreM222
Copy link
Author

Okay thanks 😭😭😭. Yes I am in windows

@luukvbaal
Copy link
Owner

display_tick is only used to avoid some unnecessary work to increase performance. We can fallback to always updating on windows if necessary...

@AndreM222
Copy link
Author

thanks. cant wait to check out your plugin 😁😁😁😁

@luukvbaal
Copy link
Owner

luukvbaal commented Mar 23, 2023

Reverted the workaround: b3d6490. It is fixed in neovim, you will need to rebuild/download a new nightly.

FYI @folke this should also make your workaround in folke/noice.nvim@b10bbbb obsolete for 0.9, if you are interested in removing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants