notskm / vscode-clang-tidy

MIT License
49 stars 25 forks source link

Please add some log in vscode output #1

Closed jackalcooper closed 4 years ago

jackalcooper commented 4 years ago

First, thanks for your work on this extension. Is it possible to add some log information in VS Code's output panel (View -> Output)? I could only get the diagnostics from limited files. It would be great if there is some logging so it is easier to figure out what goes wrong.

Thanks again.

notskm commented 4 years ago

Yeah, I can add some log some information.

Could you please provide some more detail about the problem you ran into? Directory layout, filenames of problematic files, any other information you think may be relevant.

notskm commented 4 years ago

I'm logging the clang-tidy command invocation and the raw clang-tidy output now, see #2. It's available in master, but not released yet. Let me know if there's any other info you'd like to see in the logs.

notskm commented 4 years ago

Released in version 0.2.0.

jackalcooper commented 4 years ago

I just found out that the official clangd vscode extension by LLVM now integrates clang tidy and clang format altogether if you are using LLVM 9.

jackalcooper commented 4 years ago

check this out: https://clang.llvm.org/extra/clangd/Features.html#clang-tidy-checks

notskm commented 4 years ago

Yeah, I've seen that. I love the idea of clang-tidy being part of language servers. Unfortunately, clangd doesn't work as well as other language servers for me. It has been a little while since I've tried it, though.

For now, I think there's still plenty of value in this extension.

jackalcooper commented 4 years ago

I see. I also found the integration not that useful since it didn't give me any useful information about my code.