clang-power-tools: Canonize-Path Exception in msbuild-project-load.ps on "Export Compilation Database" or "Tidy"
Hello,
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 --
```-
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 1
- Comments: 43 (19 by maintainers)
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
Hello @anoymouserver
Thank you for providing us with more information and a sample project for this issue. We will make good of it in trying to resolve the underlying problem.
Regards, Gabriel.
@JulienMaille I’ve tried the project you’ve linked and everything works.
I can’t see any improvements after updating the powershell scripts