Caphyon / clang-power-tools

Bringing clang-tidy magic to Visual Studio C++ developers.
http://www.clangpowertools.com
Apache License 2.0
484 stars 57 forks source link

Issue: Visual Studio 2022 encounters the error "The filename or extension is too long. #1374

Closed harrisonGPU closed 2 weeks ago

harrisonGPU commented 1 month ago

Issue

Enviroment

Problem

When I use the Export Compilation Database feature, I encounter this issue. Even after shortening the path or setting the LongPathsEnabled value to 1 in the Windows Registry Editor, the problem still persists.

image

mariru27 commented 1 month ago

Hi @TSWorld1314,

Could you let us know which version of Clang Power Tools you are currently using? Additionally, please provide the complete output log. Make sure to set the verbosity level to 2

Kind regards, Marina

harrisonGPU commented 1 month ago

Hi @TSWorld1314,

Could you let us know which version of Clang Power Tools you are currently using? Additionally, please provide the complete output log. Make sure to set the verbosity level to 2

Kind regards, Marina

Hi @mariru27 Here is my version: image But I don't know how to set verbosity level to 2 and dump it.

mariru27 commented 1 month ago

You can find verbosity level in Clang Power Tools settings (from toolbar/context menu): image

harrisonGPU commented 1 month ago

Hi @mariru27 I still not find this selection. image

mariru27 commented 1 month ago

In your case is set to 0 image

harrisonGPU commented 1 month ago

Okay, I have already set it to 2, but when I use the Export Compilation Database feature, I don't find any log.

  1. image

  2. image

  3. image

mariru27 commented 1 month ago

If you don't find any details in output, you can download the previous Clang Power Tools version from here, please let me know if you have the same issue

harrisonGPU commented 1 month ago

I still have this problem, but I think it might be a system problem, not this extension issue.