-
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
Can't make clangd work with tramp [not enough info yet] #667
Comments
Much better, this tells me that the template still needs work. Or perhaps you didn't read it thoroughly? Think with me: If I put that line like that in my Emacs right now do you think that I will be able to see the supposed bug as it happened to you? For one, I don't even have
Tell me what's unclear. |
Joao; I just open a remote file in a project and made
So basically just installed eglot and did that. As there is not ccls in the remote server eglot asked for a server name and I inserted clangd (that is installed and working). As simple as that. |
You're not following. That works for some people but not you. For example, the automatic tests use TRAMP and those tests are passing as far as I know. Why is this discrepancy? We dont' know! How can we know? Well, you can turn off your computer, put it in a cardboard box, pack it nicely, also send the network, your passwords and everything, and send it over the mail to my address, along with instructions on how to put everything together. Then I can see the problem happening in front of me, debug it, and shout AHA I'VE FOUND THE BUG. Do you prefer that? Should I send my address? If we don't have that, all you have are our powers of intelligence to figure out a way so that I can reproduce the problem as it happened to you. Do you think there's enough information in your bug report to help me do that? I think not. Sometimes users like you get lucky. Maybe I or someone else have lots of time available and try to guess what happened to you. But I don't have time now, and I think that users of a package can do something since they have the computer where the bug happens in front of them. Every OSS software package I know operates on a system like this. I took this example from RollupJS, for example. Even Emacs has such a system, just read the So please try to understand my position. I suppose you're a programmer, right? If you were me, what would you do? |
But don't take it from me. Read this: https://stackoverflow.com/help/minimal-reproducible-example |
Looking at the backtrace it seems that the problem comes from the
but Sorry, but I can't be more specific. For me all are minimal-reproducible-example because |
The question is not you telling me your config is minimal. I need recipe that is minimal, complete, and reproducible. Just as the stack overflow article explains. Look, I'm not saying no-one is ever going to look at this. Maybe you'll get lucky, maybe they will. I'm not saying there is not bug, I'm even saying that likely it is a bug. But it's hard to work from this, and I'm not being paid to work on this (if you happen to be rich and want to sponsor a full investigation on this let me know, I might change my mind :-) ).
Who knows? All those files are in your computer! As I explained, I'm going to close this one. It doesn't have the requisites to be an issue in the new way I'm trying to organize this bug tracker. You're welcome to open a discussion in https://github.com/joaotavora/eglot/discussions or keep discussing even with the close state (i.e. I'm not locking the issue). |
At least with the minimal, reproducible settings of this test. Maybe if we knew something more about the setup of the user who submitted this report we would be able to concoct a failing test, but we don't. * eglot-tests.el (subr-x): Require it (eglot--make-file-or-dir): Return expanded file name. (eglot-tests--lsp-abiding-column-1): New helper. (eglot-lsp-abiding-column): Use it. (eglot--tramp-test): Fix `skip-unless` condition. (eglot--tramp-test-2): New test.
... It works at least within the minimal, well-controlled reproducible settings of this test. Maybe if we knew something more about the setup of the user who submitted this report we would be able to concoct a failing test, but we don't. * eglot-tests.el (subr-x): Require it (eglot--make-file-or-dir): Return expanded file name. (eglot-tests--lsp-abiding-column-1): New helper. (eglot-lsp-abiding-column): Use it. (eglot--tramp-test): Fix `skip-unless` condition. (eglot--tramp-test-2): New test.
This is actually the same thing I see in #662 (same error and everything). @Ergus, what platforms are you testing this on (i.e. the client running Emacs and server running clangd)? I noticed this on a Windows 10 client SSHing to a Linux server, but it's possible this happens on all platforms. I've been working on narrowing this down to something easy to reproduce, since I think it's a bug in Emacs. I mentioned it briefly in the other issue, but the issue seems to be some sort of race condition when copying the stderr output to the "events" buffer. If I remove the relevant code from |
Thanks @jimporter, let's continue in #662, where I see you have a nice and short recipe. |
…orks ... It works at least within the minimal, well-controlled reproducible settings of this test. Maybe if we knew something more about the setup of the user who submitted this report we would be able to concoct a failing test, but we don't. * eglot-tests.el (subr-x): Require it (eglot--make-file-or-dir): Return expanded file name. (eglot-tests--lsp-abiding-column-1): New helper. (eglot-lsp-abiding-column): Use it. (eglot--tramp-test): Fix `skip-unless` condition. (eglot--tramp-test-2): New test.
…RAMP works ... It works at least within the minimal, well-controlled reproducible settings of this test. Maybe if we knew something more about the setup of the user who submitted this report we would be able to concoct a failing test, but we don't. * eglot-tests.el (subr-x): Require it (eglot--make-file-or-dir): Return expanded file name. (eglot-tests--lsp-abiding-column-1): New helper. (eglot-lsp-abiding-column): Use it. (eglot--tramp-test): Fix `skip-unless` condition. (eglot--tramp-test-2): New test.
…RAMP works ... It works at least within the minimal, well-controlled reproducible settings of this test. Maybe if we knew something more about the setup of the user who submitted this report we would be able to concoct a failing test, but we don't. * eglot-tests.el (subr-x): Require it (eglot--make-file-or-dir): Return expanded file name. (eglot-tests--lsp-abiding-column-1): New helper. (eglot-lsp-abiding-column): Use it. (eglot--tramp-test): Fix `skip-unless` condition. (eglot--tramp-test-2): New test.
... It works at least within the minimal, well-controlled reproducible settings of this test. Maybe if we knew something more about the setup of the user who submitted this report we would be able to concoct a failing test, but we don't. * eglot-tests.el (subr-x): Require it (eglot--make-file-or-dir): Return expanded file name. (eglot-tests--lsp-abiding-column-1): New helper. (eglot-lsp-abiding-column): Use it. (eglot--tramp-test): Fix `skip-unless` condition. (eglot--tramp-test-2): New test. #667: joaotavora/eglot#667
... It works at least within the minimal, well-controlled reproducible settings of this test. Maybe if we knew something more about the setup of the user who submitted this report we would be able to concoct a failing test, but we don't. * eglot-tests.el (subr-x): Require it (eglot--make-file-or-dir): Return expanded file name. (eglot-tests--lsp-abiding-column-1): New helper. (eglot-lsp-abiding-column): Use it. (eglot--tramp-test): Fix `skip-unless` condition. (eglot--tramp-test-2): New test. GitHub-reference: per joaotavora/eglot#667
[ ] Server used: clangd
[ ] Emacs version: 28.1
[ ] Eglot version: 20210410.1942
[ ] Eglot installation method: package.el
[ ] Using Doom: NO
LSP transcript (mandatory, unless Emacs inoperable)
Backtrace (mandatory, unless no error message seen or heard):
Minimal configuration (mandatory)
The text was updated successfully, but these errors were encountered: