Skip to content
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

RPC: Implement an analogue for ch_logfile #9010

Open
w0rp opened this issue Sep 17, 2018 · 3 comments
Open

RPC: Implement an analogue for ch_logfile #9010

w0rp opened this issue Sep 17, 2018 · 3 comments

Comments

@w0rp
Copy link

w0rp commented Sep 17, 2018

Vim 8.0 has a function called ch_logfile for logging all of the activity for channels and jobs to a file conveniently. This makes it easy to figure out where some interaction between some plugin and a program, especially a language server, might be going wrong. It would be very useful to have a similar function in NeoVim. Right now, I often advise users to try and repeat their bugs in Vim instead of NeoVim, so I can see the log file that ch_logfile creates.

@justinmk
Copy link
Member

justinmk commented Sep 17, 2018

#7062 is related.

Nvim does have rich logging already for channels, but the depth (INFO, DEBUG, etc.) is controlled at compile-time. For channels I guess we need runtime controls.

@justinmk justinmk added enhancement feature request channel labels Sep 17, 2018
@justinmk justinmk added this to the 0.3.2 milestone Sep 17, 2018
@justinmk
Copy link
Member

@w0rp could you post a sample of the log output, in particular what events do you expect to be logged?

@justinmk justinmk mentioned this issue Sep 18, 2018
@w0rp
Copy link
Author

w0rp commented Sep 27, 2018

Here are some examples from users reporting ALE issues with ch_logfile.

dense-analysis/ale#1918 (comment)
dense-analysis/ale#1407 (comment)
dense-analysis/ale#1200 (comment)
dense-analysis/ale#1149 (comment)

The output shows jobs starting and stopping, channels opening and closing, messages that are sent back and forth, and so on. All of the above make spotting bugs pretty easy.

@justinmk justinmk changed the title Implement an analogue for ch_logfile RPC: Implement an analogue for ch_logfile Sep 27, 2018
@justinmk justinmk modified the milestones: 0.3.2, 0.3.3 Nov 28, 2018
@justinmk justinmk modified the milestones: 0.4.x, 0.4 Jan 2, 2019
@justinmk justinmk modified the milestones: 0.4, 0.5 Sep 14, 2019
@janlazo janlazo modified the milestones: 0.5, 0.5.1 Dec 26, 2020
@bfredl bfredl modified the milestones: 0.5.1, 0.6 Aug 15, 2021
@clason clason modified the milestones: 0.6, 0.7 Nov 30, 2021
@bfredl bfredl modified the milestones: 0.9, 0.8 Aug 18, 2022
@bfredl bfredl modified the milestones: 0.8, 0.9 Sep 30, 2022
@bfredl bfredl removed this from the 0.9 milestone Apr 7, 2023
@bfredl bfredl added this to the 0.10 milestone Apr 7, 2023
@dundargoc dundargoc modified the milestones: 0.10, backlog Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants