Nathan Ridge
Nathan Ridge
> not only for display, e.g. > > ``` > TabWidth: 8 > ``` > > it still display 4 spaces width for tab. This needs to be configured in...
One option here could be for the server to send `textDocument/publishDiagnostics` for `.clang-format` similarly to the way it does for `.clangd` [here](https://searchfox.org/llvm/rev/171f7024cc82e8702abebdedb699d37b50574be7/clang-tools-extra/clangd/ClangdServer.cpp#331).
Similar to https://github.com/clangd/clangd/issues/1235, and I think the solution approach ought to be the same: apply the project's `clang-format` settings, whatever they are, to inserted snippets.
In the meantime, if you have format-on-save enabled, then saving the file after accepting the snippet should automatically correct the brace placement.
A few questions to try to narrow the issue down: * Does this happen with all files? Or all files in a particular project? Or a specific file / files...
> the recompile after making change takes about 2~3secs Are you using clang as your compiler, or something else? A possible diagnostic step that might produce some interesting information would...
@sigasigasiga please post verbose clangd logs to help figure out what's going on
> The same log as a file can be found here [buggy-lsp-log.txt](https://github.com/clangd/clangd/files/15129623/buggy-lsp-log.txt) > > The log was recorded with the following scenario: > > 1. I opened `header1.hpp`, the C++...
> * The command for `header2.hpp` contains it zero times > > * this I don't understand why, will require additional investigation I have a theory for why: the "transfer...
@zkyer you have an `-march` flag in your compile command, have you tried removing it as the post you're quoting suggests?