question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Canonize-Path Exception in msbuild-project-load.ps on "Export Compilation Database" or "Tidy"

See original GitHub issue

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 --
```-

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:43 (19 by maintainers)

github_iconTop GitHub Comments

5reactions
hero101111commented, Nov 10, 2021

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.

3reactions
hero101111commented, Nov 19, 2021

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. image.

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found