Nathan Ridge

Results 1185 comments of Nathan Ridge

(Transferred to server repo as that's where this feature would need to be implemented.)

I assume the vscode python extension is doing this using the Language Server Protocol's [interactive labels](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#inlayHintLabelPart) feature for inlay hints. See also https://github.com/clangd/clangd/issues/1535 which is on file about making use...

Note, if `printf` is renamed to `myprintf` and `printf_` is renamed to `myprintf_`, this works as intended. It's specifically because `printf` is a known standard-library name, that this doesn't work....

We have one. You can see an before/after example in the [code comments](https://searchfox.org/llvm/rev/b7ff03206d668cd5a620a9d4e1b22ea112ed56e3/clang-tools-extra/clangd/refactor/tweaks/ExtractFunction.cpp#11-23). (Unfortunately we don't have better documentation, though there is some work in progress on that at https://github.com/llvm/clangd-www/issues/82.)...

Again, please provide a complete code example. I can't try to reproduce your problem based on a screenshot of a partial file. Simple examples of "extract function" in C do...

And you are trying to extract the first four statements in `main()`? That does work for me. What clangd version are you using?

> By the way, my development configuration is based on remote development. The clangd running on the remote Linux server Does it work if you try with the same C...

> Also can not work on local environment. Could you post [clangd logs](https://clangd.llvm.org/troubleshooting#gathering-logs) please? Perhaps they contain a clue about the problem.

> The log is attached, please check, thanks. [vscode_clangd_gathering_log.txt](https://github.com/clangd/vscode-clangd/files/12839692/vscode_clangd_gathering_log.txt) The log is showing that there are errors in your source file: ``` { "jsonrpc": "2.0", "method": "textDocument/publishDiagnostics", "params": { "diagnostics":...

> I do not include `` and `` in the main.c source file. I checked my code and collected the log once again. > > [vscode_clangd_gathering_log_c_1.txt](https://github.com/clangd/vscode-clangd/files/12843378/vscode_clangd_gathering_log_c_1.txt) Ok, I see now...