emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.76k stars 875 forks source link

Something gets stuck on "Parsing is_mem_fun_pointer_impl.hpp (LL)..." #4563

Closed johngavingraham closed 2 hours ago

johngavingraham commented 2 hours ago

Thank you for the bug report

This does not appear to happen after M-x lsp-start-plain, but I don't know what that means in terms of what's at fault/how to find/fix the problem.

Bug description

I'm having problems with lsp-mode hanging when editing C++ files. At the moment it seems to consistently get stuck on the message in the title, so I'm hoping that'll provide some insight - a copy of that file on my machine is attached, it's from boost 1.83.0-5.fc40 on a fedora system, except GitHub doesn't accept *.hpp as an attachment, so I've made it into one bit block in a markdown file.

is_mem_fun_pointer_impl.hpp.md

Steps to reproduce

Have boost installed on Fedora 40, be editing C++ that eventually #includes .

Expected behavior

Not hanging forever.

Which Language Server did you use?

clangd (default installed when lsp asks me)

OS

Linux

Error callstack

No response

Anything else?

No response

johngavingraham commented 2 hours ago

Closed as after trying some random things, it looks like it's a semanticdb problem (or at least only occurs when semanticdb is on, and I'm happy to try turning it off for a bit).