-
Notifications
You must be signed in to change notification settings - Fork 200
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
Fix #715: fix eglot-extend-to-xref under Windows #933
Conversation
Thanks, but can you explain how you reached the conclusion that there is a casing problem here? When exactly is one filename with a given casing inserted into the hash table only to be retrieved with a different casing? Give a simple example. |
For feature From the log attached to this issue, we can see that it's the casing mismatch problem(between lsp server and emacs). So just normalize the key for set/get to/from hash table eglot--servers-by-xrefed-file. |
Where can I see this? Can you point it out specifically? You wrote in that issue:
But the difference between the two representations of the same file (presumably) is much more than just casing. So I must be missing something. |
When Emacs visit the stdio.h, the And in Lines 2347 to 2351 in 777a716
Lines 2379 to 2380 in 777a716
|
Ah, thanks, so it's only the drive letter? |
Yes, Emacs just downcase the driver letter under Windows. |
Ok. Then I don't think this is the right solution, as it has the potential
to create new bugs on case sensitive file systems.
…On Wed, Apr 27, 2022, 09:57 Shiwei Wang ***@***.***> wrote:
Ah, thanks, so it's only the drive letter?
Yes, Emacs just downcase the driver letter under Windows.
—
Reply to this email directly, view it on GitHub
<#933 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC6PQZ6DU4VATKXIF4D5QLVHD6QZANCNFSM5ULR4RLQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It seems |
this pr can not fix #715, as gopls does not follow the fs displayed case(ex gopls return C:/go/src, and fs explorer display C:/Go/src. So I close it. |
By downcase 'buffer-file-name' as hash key