ayamir / nvimdots

A well configured and structured Neovim.
BSD 3-Clause "New" or "Revised" License
2.91k stars 458 forks source link

gd/D 不能跳转到定义 #337

Closed goodpaperman closed 1 year ago

goodpaperman commented 1 year ago

Neovim version

NVIM v0.8.1 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3

Operating system/version

CentOS Linux release 7.9.2009 (Core)

Terminal name/version

GNU bash, version 4.2.46

$TERM environment variable

xterm-256color

Branch info

main (Default/Latest)

Fetch Preferences

SSH (use_ssh = true)

How to reproduce the issue

gD on function

Expected behavior

jump to function definition

Actual behavior

popup an error

图片

Additional information

efm-langserver installed already

ayamir commented 1 year ago

what's the type of the file? efm only provide format/lint function. You need to use :Mason to install lsp on your own. https://github.com/ayamir/nvimdots/wiki/Prerequisites#tools-for-plugins

goodpaperman commented 1 year ago

mason show following errors:

图片 图片

wget version:

$ wget --version
GNU Wget 1.14 built on linux-gnu.

+digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl 

Wgetrc: 
    /etc/wgetrc (system)
Locale: /usr/share/locale 
Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc" 
    -DLOCALEDIR="/usr/share/locale" -I. -I../lib -I../lib -O2 -g -pipe 
    -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
    --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic 
Link: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
    -fstack-protector-strong --param=ssp-buffer-size=4 
    -grecord-gcc-switches -m64 -mtune=generic -lssl -lcrypto 
    /usr/lib64/libssl.so /usr/lib64/libcrypto.so /usr/lib64/libz.so 
    -ldl -lz -lz -lidn -luuid -lpcre ftp-opie.o openssl.o http-ntlm.o 
    ../lib/libgnu.a 

Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.

need update?

ayamir commented 1 year ago

obviously you need a higher version wget

goodpaperman commented 1 year ago

upgrade wget to 1.21, lua-lang-server download & install ok, but clangd still failed:

图片

can I pre-download this package and put it to the right place to avoid wget downloading ?

ayamir commented 1 year ago

Maybe, the download destination is here. image

goodpaperman commented 1 year ago

it works:

图片

mason now has only 1 problem: MasonInstall clang-format failed, see detail above

CharlesChiuGit commented 1 year ago

try pip3 install wheel

goodpaperman commented 1 year ago

no effect:

图片 图片
goodpaperman commented 1 year ago

upgrade python 3.6.8 to 3.8,module wheel can find now, but compile still failed:

图片
ayamir commented 1 year ago

maybe you can install clang-format manually too...

goodpaperman commented 1 year ago

from error message: "Host GCC version must be at least 5.1, your version is 4.8.5"

it seems gcc need a upgrade, that is a big project, can I indicate a lower version of clang-format to walk aroud gcc upgrade ?

ayamir commented 1 year ago

try just download binaraies here

goodpaperman commented 1 year ago

clang-format runs ok:

图片

and installed ok after restart nvim:

图片