-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
lsp: multi-byte paths in URIs not decoded correctly #2781
Comments
What is the value of your What error do you see? |
i am not set g:go_def_mode, it maight be default. |
You might try setting adding However, vim-go should work with chinese characters in file names. Can you please add |
Also, what version of |
oh! It solved.Thanks!!!!i don't know how to see the version of gopls , i might be latest.
|
Are you saying that adding I don't see any chinese characters in the file paths in the debug output and it looks incomplete, too; I'd expect to see several other messages. 🤔 You can run It looks like I'm going to need a clear and simple replication path to be able to help you figure out why |
my gopls version is v0.3.4 |
my file path is "~/SynologyDrive/go/src/github.com/q107580018/studyGo/p7/11_路由和路由组/main.go" |
you can also see my github |
Jumping to definitions may work by using a different value for I am not able to duplicate the problem you're describing. I cloned your repository into a clean GOPATH, opened The You might try cleaning your cache by running |
If you're still having problems after cleaning your caches, will you please provide some specific examples (e.g. a specific location within your repository from which you'd like to jump, but it's failing)? |
Looking at the lsp debug output you provided, it looks like you're trying to jump from within gin-tonic:
Can you confirm? Which version of gin-gonic are you using? That is not within your repository, though, so I'm not sure why the chinese characters in the filepath would come into play. Can you clarify? |
I did a comparison experiment. |
I try running |
Ok. I might see a problem in vim-go's conversion of URIs to multi-byte characters. I'm constructing some tests and will put some attention to this soon; the problem I've found is the source of the problem with jumping to definitions that you're encountering. edit: typos |
@q107580018 Thank you for bringing this to my attention. The fix should be on master now; you should be able to jump to definitions from and to files that contain multi-byte characters using the default |
Does Godef not support Chinese file paths?
when i use godef in chinese paths, It not useful。
Is there any other way to solve it?
Configuration (MUST fill this out):
vim-go version:
v1.22
vimrc
you used to reproduce:vimrc
Vim version (first three lines from
:version
):v8.2
Go version (
go version
):1.14
Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: