Canonize-Path Exception in msbuild-project-load.ps on "Export Compilation Database" or "Tidy"
See original GitHub issueHello,
I just installed this extension and can’t run “Export Compilation Database” or “Tidy” actions on my project. I have the following error in the output. The error says that there is an invalid character in a path but I don’t know which one. There is no invalid character in my project or file path (e.g.: no accents, no space etc…).
I’m sure it’s something trivial, any idea ?
Thanks
--- CLANG TIDY STARTED ---
Canonize-Path : Exception lors de l'appel de ®IsPathRooted¯ avec ®1¯ argument(s): ®CaractŠres non conformes dans le
chemin d'accŠs.¯
Au caractŠre C:\USERS\VNE\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_AC05EC40\EXTENSIONS\3PLI3YY1.5IC\psClang\msbuild-pr
oject-load.ps1:448 : 29
+ ... ]] $paths = Canonize-Path -base (Get-Location) -child $relPath -ignor ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Canonize-Path], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentException,Canonize-Path
--- CLANG TIDY FINISHED --
```-
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:43 (19 by maintainers)
Top Results From Across the Web
Issues · Caphyon/clang-power-tools
Canonize-Path Exception in msbuild-project-load.ps on "Export Compilation Database" or "Tidy " bug. #933 opened on Feb 22, 2021 by FromtonRouge.
Read more >Generate clang compilation database for a Visual Studio ...
In the submenu search for the Export Compilation Database option. The JSON compilation database will be automatically generated for you.
Read more >How to turn makefile into JSON Compilation Database?
I am using Bear to generate compilation database for VS Code. Though the compile db looks fine, the VS Code is still not...
Read more >Compilation database | CLion Documentation
A compilation database lets CLion detect project files and extract all the necessary compiler information, such as include paths and ...
Read more >JSON Compilation Database Format Specification - Clang
This document describes a format for specifying how to replay single compilations independently of the build system. Background¶. Tools based on the C++ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello @JulienMaille
Please know that we have managed to reproduce the issue and are working on a solution that will be available soon. We will update this thread as progress is made.
Hello again,
I’m pleased to inform you that we’ve fixed this issue, and the required changes have landed on our main development channel. The next Clang Power Tools release (
v7.9
) will deliver this fix.As the fix resides in our PowerShell backend, It is possible to immediately test it yourself, by using the 'PowerShell scripts Update" option from the Clang Power Tools Visual Studio settings. .
If you could give it a test and let us know your results, we would really appreciate it.
Thank you for your patience and help in addressing this issue. Regards, Gabriel