codesnap.nvim icon indicating copy to clipboard operation
codesnap.nvim copied to clipboard

Crash without any explanation

Open fdev31 opened this issue 7 months ago • 4 comments

On one machine sharing the same VIM setup, I'm unable to use CodeSnap, I get the following error (captured using neovide, but happens with nvim too):

[...]
❯ ERROR [neovide::bridge::session] 
ERROR [neovide::bridge::session] thread '<unnamed>' panicked at src/copy.rs:39:14:
ERROR [neovide::bridge::session] called `Result::unwrap()` on an `Err` value: Unknown { .. } - "Unknown error while interacting with the clipboard: Error satisfying a paste request"
ERROR [neovide::bridge::session] stack backtrace:
ERROR [neovide::bridge::session]    0:     0x7ba7c5e13880 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h6d42cc84fc840290
ERROR [neovide::bridge::session]    1:     0x7ba7c5e3b463 - core::fmt::write::h5af61a909e3ec64d
ERROR [neovide::bridge::session]    2:     0x7ba7c5e0fe43 - std::io::Write::write_fmt::h5a7b54aa6e4a315d
ERROR [neovide::bridge::session]    3:     0x7ba7c5e136d2 - std::sys::backtrace::BacktraceLock::print::h555579e7396c26ac
ERROR [neovide::bridge::session]    4:     0x7ba7c5e1476f - std::panicking::default_hook::{{closure}}::h9128866118196224
ERROR [neovide::bridge::session]    5:     0x7ba7c5e145da - std::panicking::default_hook::h52e9e7314e0255f6
ERROR [neovide::bridge::session]    6:     0x7ba7c5e15112 - std::panicking::rust_panic_with_hook::h541791bcc774ef34
ERROR [neovide::bridge::session]    7:     0x7ba7c5e14eba - std::panicking::begin_panic_handler::{{closure}}::h6479a2f0137c7d19
ERROR [neovide::bridge::session]    8:     0x7ba7c5e13d99 - std::sys::backtrace::__rust_end_short_backtrace::ha04e7c0fc61ded91
ERROR [neovide::bridge::session]    9:     0x7ba7c5e14b4d - rust_begin_unwind
ERROR [neovide::bridge::session]   10:     0x7ba7c5a979e0 - core::panicking::panic_fmt::h5764ee7030b7a73d
ERROR [neovide::bridge::session]   11:     0x7ba7c5a97db6 - core::result::unwrap_failed::h3ff7104a9ace307a
ERROR [neovide::bridge::session]   12:     0x7ba7c5abc04c - std::sys::backtrace::__rust_begin_short_backtrace::h7944eba8e14689a4
ERROR [neovide::bridge::session]   13:     0x7ba7c5ad1aac - core::ops::function::FnOnce::call_once{{vtable.shim}}::h71e48ea6cfa8d344
ERROR [neovide::bridge::session]   14:     0x7ba7c5e17ddb - std::sys::pal::unix::thread::Thread::new::thread_start::hcc5ed016d554f327
ERROR [neovide::bridge::session]   15:     0x7ba7caba47eb - <unknown>
ERROR [neovide::bridge::session]   16:     0x7ba7cac2818c - <unknown>
ERROR [neovide::bridge::session]   17:                0x0 - <unknown>

I can't build the rust part in debug mode since it's failing too:

warning: [email protected]: oniguruma/src/regparse.c: In function 'onig_st_init_strend_table_with_size':
warning: [email protected]: oniguruma/src/regparse.c:588:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_str_end_key *, st_str_end_key *)' [-Wincompatible-pointer-types]
warning: [email protected]:   588 |     str_end_cmp,
warning: [email protected]:       |     ^~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c:588:5: note: (near initialization for 'hashType.compare')
warning: [email protected]: oniguruma/src/regparse.c:550:1: note: 'str_end_cmp' declared here
warning: [email protected]:   550 | str_end_cmp(st_str_end_key* x, st_str_end_key* y)
warning: [email protected]:       | ^~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c:589:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_str_end_key *)' [-Wincompatible-pointer-types]
warning: [email protected]:   589 |     str_end_hash,
warning: [email protected]:       |     ^~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c:589:5: note: (near initialization for 'hashType.hash')
warning: [email protected]: oniguruma/src/regparse.c:571:1: note: 'str_end_hash' declared here
warning: [email protected]:   571 | str_end_hash(st_str_end_key* x)
warning: [email protected]:       | ^~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'onig_st_init_callout_name_table_with_size':
warning: [email protected]: oniguruma/src/regparse.c:678:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_callout_name_key *, st_callout_name_key *)' [-Wincompatible-pointer-types]
warning: [email protected]:   678 |     callout_name_table_cmp,
warning: [email protected]:       |     ^~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c:678:5: note: (near initialization for 'hashType.compare')
warning: [email protected]: oniguruma/src/regparse.c:637:1: note: 'callout_name_table_cmp' declared here
warning: [email protected]:   637 | callout_name_table_cmp(st_callout_name_key* x, st_callout_name_key* y)
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c:679:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_callout_name_key *)' [-Wincompatible-pointer-types]
warning: [email protected]:   679 |     callout_name_table_hash,
warning: [email protected]:       |     ^~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c:679:5: note: (near initialization for 'hashType.hash')
warning: [email protected]: oniguruma/src/regparse.c:660:1: note: 'callout_name_table_hash' declared here
warning: [email protected]:   660 | callout_name_table_hash(st_callout_name_key* x)
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'names_clear':
warning: [email protected]: oniguruma/src/regparse.c:804:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
warning: [email protected]:   804 |     onig_st_foreach(t, i_free_name_entry, 0);
warning: [email protected]:       |                        ^~~~~~~~~~~~~~~~~
warning: [email protected]:       |                        |
warning: [email protected]:       |                        int (*)(OnigUChar *, NameEntry *, void *) {aka int (*)(unsigned char *, NameEntry *, void *)}
warning: [email protected]: In file included from oniguruma/src/regparse.c:37:
warning: [email protected]: oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, NameEntry *, void *)' {aka 'int (*)(unsigned char *, NameEntry *, void *)'}
warning: [email protected]:    55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
warning: [email protected]:       |                               ^~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/st.h:35:18: note: in definition of macro '_'
warning: [email protected]:    35 | # define _(args) args
warning: [email protected]:       |                  ^~~~
warning: [email protected]: oniguruma/src/regparse.c:789:1: note: 'i_free_name_entry' declared here
warning: [email protected]:   789 | i_free_name_entry(UChar* key, NameEntry* e, void* arg ARG_UNUSED)
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'onig_foreach_name':
warning: [email protected]: oniguruma/src/regparse.c:873:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
warning: [email protected]:   873 |     onig_st_foreach(t, i_names, (HashDataType )&narg);
warning: [email protected]:       |                        ^~~~~~~
warning: [email protected]:       |                        |
warning: [email protected]:       |                        int (*)(OnigUChar *, NameEntry *, INamesArg *) {aka int (*)(unsigned char *, NameEntry *, INamesArg *)}
warning: [email protected]: oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, NameEntry *, INamesArg *)' {aka 'int (*)(unsigned char *, NameEntry *, INamesArg *)'}
warning: [email protected]:    55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
warning: [email protected]:       |                               ^~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/st.h:35:18: note: in definition of macro '_'
warning: [email protected]:    35 | # define _(args) args
warning: [email protected]:       |                  ^~~~
warning: [email protected]: oniguruma/src/regparse.c:846:1: note: 'i_names' declared here
warning: [email protected]:   846 | i_names(UChar* key ARG_UNUSED, NameEntry* e, INamesArg* arg)
warning: [email protected]:       | ^~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'onig_renumber_name_table':
warning: [email protected]: oniguruma/src/regparse.c:901:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
warning: [email protected]:   901 |     onig_st_foreach(t, i_renumber_name, (HashDataType )map);
warning: [email protected]:       |                        ^~~~~~~~~~~~~~~
warning: [email protected]:       |                        |
warning: [email protected]:       |                        int (*)(OnigUChar *, NameEntry *, GroupNumMap *) {aka int (*)(unsigned char *, NameEntry *, GroupNumMap *)}
warning: [email protected]: oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, NameEntry *, GroupNumMap *)' {aka 'int (*)(unsigned char *, NameEntry *, GroupNumMap *)'}
warning: [email protected]:    55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
warning: [email protected]:       |                               ^~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/st.h:35:18: note: in definition of macro '_'
warning: [email protected]:    35 | # define _(args) args
warning: [email protected]:       |                  ^~~~
warning: [email protected]: oniguruma/src/regparse.c:879:1: note: 'i_renumber_name' declared here
warning: [email protected]:   879 | i_renumber_name(UChar* key ARG_UNUSED, NameEntry* e, GroupNumMap* map)
warning: [email protected]:       | ^~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'callout_name_table_clear':
warning: [email protected]: oniguruma/src/regparse.c:1386:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
warning: [email protected]:  1386 |     onig_st_foreach(t, i_free_callout_name_entry, 0);
warning: [email protected]:       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]:       |                        |
warning: [email protected]:       |                        int (*)(st_callout_name_key *, CalloutNameEntry *, void *)
warning: [email protected]: oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(st_callout_name_key *, CalloutNameEntry *, void *)'
warning: [email protected]:    55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
warning: [email protected]:       |                               ^~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/st.h:35:18: note: in definition of macro '_'
warning: [email protected]:    35 | # define _(args) args
warning: [email protected]:       |                  ^~~~
warning: [email protected]: oniguruma/src/regparse.c:1370:1: note: 'i_free_callout_name_entry' declared here
warning: [email protected]:  1370 | i_free_callout_name_entry(st_callout_name_key* key, CalloutNameEntry* e,
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'setup_ext_callout_list_values':
warning: [email protected]: oniguruma/src/regparse.c:1884:56: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
warning: [email protected]:  1884 |     onig_st_foreach((CalloutTagTable *)ext->tag_table, i_callout_callout_list_set,
warning: [email protected]:       |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]:       |                                                        |
warning: [email protected]:       |                                                        int (*)(OnigUChar *, CalloutTagVal,  void *) {aka int (*)(unsigned char *, long int,  void *)}
warning: [email protected]: oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, CalloutTagVal,  void *)' {aka 'int (*)(unsigned char *, long int,  void *)'}
warning: [email protected]:    55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
warning: [email protected]:       |                               ^~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/st.h:35:18: note: in definition of macro '_'
warning: [email protected]:    35 | # define _(args) args
warning: [email protected]:       |                  ^~~~
warning: [email protected]: oniguruma/src/regparse.c:1866:1: note: 'i_callout_callout_list_set' declared here
warning: [email protected]:  1866 | i_callout_callout_list_set(UChar* key, CalloutTagVal e, void* arg)
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'callout_tag_table_clear':
warning: [email protected]: oniguruma/src/regparse.c:1932:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
warning: [email protected]:  1932 |     onig_st_foreach(t, i_free_callout_tag_entry, 0);
warning: [email protected]:       |                        ^~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]:       |                        |
warning: [email protected]:       |                        int (*)(OnigUChar *, CalloutTagVal,  void *) {aka int (*)(unsigned char *, long int,  void *)}
warning: [email protected]: oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, CalloutTagVal,  void *)' {aka 'int (*)(unsigned char *, long int,  void *)'}
warning: [email protected]:    55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
warning: [email protected]:       |                               ^~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/st.h:35:18: note: in definition of macro '_'
warning: [email protected]:    35 | # define _(args) args
warning: [email protected]:       |                  ^~~~
warning: [email protected]: oniguruma/src/regparse.c:1922:1: note: 'i_free_callout_tag_entry' declared here
warning: [email protected]:  1922 | i_free_callout_tag_entry(UChar* key, CalloutTagVal e, void* arg ARG_UNUSED)
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~~~~~~~~
error: failed to run custom build command for `onig_sys v69.8.1`

Caused by:
  process didn't exit successfully: `/home/fab/.local/share/nvim/lazy/codesnap.nvim/generator/target/debug/build/onig_sys-de6d42478628ed6a/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=RUSTONIG_DYNAMIC_LIBONIG
  cargo:rerun-if-env-changed=RUSTONIG_STATIC_LIBONIG
  cargo:rerun-if-env-changed=RUSTONIG_SYSTEM_LIBONIG
  OUT_DIR = Some(/home/fab/.local/share/nvim/lazy/codesnap.nvim/generator/target/debug/build/onig_sys-30558f497ad821ab/out)
  TARGET = Some(x86_64-unknown-linux-gnu)
  OPT_LEVEL = Some(0)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
  CC_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
  CC_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(true)
  CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
  CFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
  CFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=oniguruma/src/regparse.c: In function 'onig_st_init_strend_table_with_size':
  cargo:warning=oniguruma/src/regparse.c:588:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_str_end_key *, st_str_end_key *)' [-Wincompatible-pointer-types]
  cargo:warning=  588 |     str_end_cmp,
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c:588:5: note: (near initialization for 'hashType.compare')
  cargo:warning=oniguruma/src/regparse.c:550:1: note: 'str_end_cmp' declared here
  cargo:warning=  550 | str_end_cmp(st_str_end_key* x, st_str_end_key* y)
  cargo:warning=      | ^~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c:589:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_str_end_key *)' [-Wincompatible-pointer-types]
  cargo:warning=  589 |     str_end_hash,
  cargo:warning=      |     ^~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c:589:5: note: (near initialization for 'hashType.hash')
  cargo:warning=oniguruma/src/regparse.c:571:1: note: 'str_end_hash' declared here
  cargo:warning=  571 | str_end_hash(st_str_end_key* x)
  cargo:warning=      | ^~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c: In function 'onig_st_init_callout_name_table_with_size':
  cargo:warning=oniguruma/src/regparse.c:678:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_callout_name_key *, st_callout_name_key *)' [-Wincompatible-pointer-types]
  cargo:warning=  678 |     callout_name_table_cmp,
  cargo:warning=      |     ^~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c:678:5: note: (near initialization for 'hashType.compare')
  cargo:warning=oniguruma/src/regparse.c:637:1: note: 'callout_name_table_cmp' declared here
  cargo:warning=  637 | callout_name_table_cmp(st_callout_name_key* x, st_callout_name_key* y)
  cargo:warning=      | ^~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c:679:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_callout_name_key *)' [-Wincompatible-pointer-types]
  cargo:warning=  679 |     callout_name_table_hash,
  cargo:warning=      |     ^~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c:679:5: note: (near initialization for 'hashType.hash')
  cargo:warning=oniguruma/src/regparse.c:660:1: note: 'callout_name_table_hash' declared here
  cargo:warning=  660 | callout_name_table_hash(st_callout_name_key* x)
  cargo:warning=      | ^~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c: In function 'names_clear':
  cargo:warning=oniguruma/src/regparse.c:804:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
  cargo:warning=  804 |     onig_st_foreach(t, i_free_name_entry, 0);
  cargo:warning=      |                        ^~~~~~~~~~~~~~~~~
  cargo:warning=      |                        |
  cargo:warning=      |                        int (*)(OnigUChar *, NameEntry *, void *) {aka int (*)(unsigned char *, NameEntry *, void *)}
  cargo:warning=In file included from oniguruma/src/regparse.c:37:
  cargo:warning=oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, NameEntry *, void *)' {aka 'int (*)(unsigned char *, NameEntry *, void *)'}
  cargo:warning=   55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
  cargo:warning=      |                               ^~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/st.h:35:18: note: in definition of macro '_'
  cargo:warning=   35 | # define _(args) args
  cargo:warning=      |                  ^~~~
  cargo:warning=oniguruma/src/regparse.c:789:1: note: 'i_free_name_entry' declared here
  cargo:warning=  789 | i_free_name_entry(UChar* key, NameEntry* e, void* arg ARG_UNUSED)
  cargo:warning=      | ^~~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c: In function 'onig_foreach_name':
  cargo:warning=oniguruma/src/regparse.c:873:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
  cargo:warning=  873 |     onig_st_foreach(t, i_names, (HashDataType )&narg);
  cargo:warning=      |                        ^~~~~~~
  cargo:warning=      |                        |
  cargo:warning=      |                        int (*)(OnigUChar *, NameEntry *, INamesArg *) {aka int (*)(unsigned char *, NameEntry *, INamesArg *)}
  cargo:warning=oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, NameEntry *, INamesArg *)' {aka 'int (*)(unsigned char *, NameEntry *, INamesArg *)'}
  cargo:warning=   55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
  cargo:warning=      |                               ^~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/st.h:35:18: note: in definition of macro '_'
  cargo:warning=   35 | # define _(args) args
  cargo:warning=      |                  ^~~~
  cargo:warning=oniguruma/src/regparse.c:846:1: note: 'i_names' declared here
  cargo:warning=  846 | i_names(UChar* key ARG_UNUSED, NameEntry* e, INamesArg* arg)
  cargo:warning=      | ^~~~~~~
  cargo:warning=oniguruma/src/regparse.c: In function 'onig_renumber_name_table':
  cargo:warning=oniguruma/src/regparse.c:901:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
  cargo:warning=  901 |     onig_st_foreach(t, i_renumber_name, (HashDataType )map);
  cargo:warning=      |                        ^~~~~~~~~~~~~~~
  cargo:warning=      |                        |
  cargo:warning=      |                        int (*)(OnigUChar *, NameEntry *, GroupNumMap *) {aka int (*)(unsigned char *, NameEntry *, GroupNumMap *)}
  cargo:warning=oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, NameEntry *, GroupNumMap *)' {aka 'int (*)(unsigned char *, NameEntry *, GroupNumMap *)'}
  cargo:warning=   55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
  cargo:warning=      |                               ^~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/st.h:35:18: note: in definition of macro '_'
  cargo:warning=   35 | # define _(args) args
  cargo:warning=      |                  ^~~~
  cargo:warning=oniguruma/src/regparse.c:879:1: note: 'i_renumber_name' declared here
  cargo:warning=  879 | i_renumber_name(UChar* key ARG_UNUSED, NameEntry* e, GroupNumMap* map)
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c: In function 'callout_name_table_clear':
  cargo:warning=oniguruma/src/regparse.c:1386:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
  cargo:warning= 1386 |     onig_st_foreach(t, i_free_callout_name_entry, 0);
  cargo:warning=      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                        |
  cargo:warning=      |                        int (*)(st_callout_name_key *, CalloutNameEntry *, void *)
  cargo:warning=oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(st_callout_name_key *, CalloutNameEntry *, void *)'
  cargo:warning=   55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
  cargo:warning=      |                               ^~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/st.h:35:18: note: in definition of macro '_'
  cargo:warning=   35 | # define _(args) args
  cargo:warning=      |                  ^~~~
  cargo:warning=oniguruma/src/regparse.c:1370:1: note: 'i_free_callout_name_entry' declared here
  cargo:warning= 1370 | i_free_callout_name_entry(st_callout_name_key* key, CalloutNameEntry* e,
  cargo:warning=      | ^~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c: In function 'setup_ext_callout_list_values':
  cargo:warning=oniguruma/src/regparse.c:1884:56: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
  cargo:warning= 1884 |     onig_st_foreach((CalloutTagTable *)ext->tag_table, i_callout_callout_list_set,
  cargo:warning=      |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                        |
  cargo:warning=      |                                                        int (*)(OnigUChar *, CalloutTagVal,  void *) {aka int (*)(unsigned char *, long int,  void *)}
  cargo:warning=oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, CalloutTagVal,  void *)' {aka 'int (*)(unsigned char *, long int,  void *)'}
  cargo:warning=   55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
  cargo:warning=      |                               ^~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/st.h:35:18: note: in definition of macro '_'
  cargo:warning=   35 | # define _(args) args
  cargo:warning=      |                  ^~~~
  cargo:warning=oniguruma/src/regparse.c:1866:1: note: 'i_callout_callout_list_set' declared here
  cargo:warning= 1866 | i_callout_callout_list_set(UChar* key, CalloutTagVal e, void* arg)
  cargo:warning=      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c: In function 'callout_tag_table_clear':
  cargo:warning=oniguruma/src/regparse.c:1932:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
  cargo:warning= 1932 |     onig_st_foreach(t, i_free_callout_tag_entry, 0);
  cargo:warning=      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                        |
  cargo:warning=      |                        int (*)(OnigUChar *, CalloutTagVal,  void *) {aka int (*)(unsigned char *, long int,  void *)}
  cargo:warning=oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, CalloutTagVal,  void *)' {aka 'int (*)(unsigned char *, long int,  void *)'}
  cargo:warning=   55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
  cargo:warning=      |                               ^~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/st.h:35:18: note: in definition of macro '_'
  cargo:warning=   35 | # define _(args) args
  cargo:warning=      |                  ^~~~
  cargo:warning=oniguruma/src/regparse.c:1922:1: note: 'i_free_callout_tag_entry' declared here
  cargo:warning= 1922 | i_free_callout_tag_entry(UChar* key, CalloutTagVal e, void* arg ARG_UNUSED)
  cargo:warning=      | ^~~~~~~~~~~~~~~~~~~~~~~~

  --- stderr


  error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/home/fab/.local/share/nvim/lazy/codesnap.nvim/generator/target/debug/build/onig_sys-30558f497ad821ab/out" "-I" "oniguruma/src" "-DHAVE_UNISTD_H=1" "-DHAVE_SYS_TYPES_H=1" "-DHAVE_SYS_TIME_H=1" "-o" "/home/fab/.local/share/nvim/lazy/codesnap.nvim/generator/target/debug/build/onig_sys-30558f497ad821ab/out/c77b18e714869709-regparse.o" "-c" "oniguruma/src/regparse.c" with args cc did not execute successfully (status code exit status: 1).

fdev31 avatar May 14 '25 09:05 fdev31

I'm facing a similar problem... Recently i installed nvim using snap and CodeSnap doesn't work anymore, everytime i try to use it show the following error: vim/loader.lua:0: /snap/core22/current/usr/lib/x86_64-linux-gnu/libm.so.6: version 'GLIBC_2.38' not found (required by /home/messias-olimpio/.local/share/nvim/lazy/codesnap.nvim/lua/generator.so)

messiias avatar May 15 '25 13:05 messiias

This one

I'm facing a similar problem... Recently i installed nvim using snap and CodeSnap doesn't work anymore, everytime i try to use it show the following error: vim/loader.lua:0: /snap/core22/current/usr/lib/x86_64-linux-gnu/libm.so.6: version 'GLIBC_2.38' not found (required by /home/messias-olimpio/.local/share/nvim/lazy/codesnap.nvim/lua/generator.so)

Seems similar but this one is more clear and is probably solved by compiling the generator.so instead of using the pre-built code.

fdev31 avatar May 15 '25 15:05 fdev31

I compiled the generator.so and i'm still having the same problem

messiias avatar May 20 '25 13:05 messiias

This issue will be solved after refactor using https://github.com/codesnap-rs/codesnap

mistricky avatar May 21 '25 13:05 mistricky

@fdev31 Codesnap.nvim v2.0.0-beta.17 has been released. Could you test whether everything works correctly on beta 17? This version introduces some breaking changes, so it's best to completely uninstall your previous Codesnap.nvim installation and follow the v2 README

mistricky avatar Nov 19 '25 04:11 mistricky

@fdev31 Codesnap.nvim v2.0.0-beta.17 has been released. Could you test whether everything works correctly on beta 17? This version introduces some breaking changes, so it's best to completely uninstall your previous Codesnap.nvim installation and follow the v2 README

I'm a brand new user/install and with v2.0.0-beta.17 I get

 /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /home/daUser/.local/share/nvim/lazy/codesnap.nvim/lua/libs/linux-x86_64_generator.so)

carried-away avatar Nov 23 '25 22:11 carried-away

It now works, but some options seem to not do anything. Closing it!

fdev31 avatar Nov 26 '25 18:11 fdev31