Caphyon / clang-power-tools

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

Cannot overwrite variable kJsonCompilationDbPath because it is read-only or constant. #1329

Open Mulling opened 8 months ago

Mulling commented 8 months ago

I get this error sometimes when generating a compilation database, seems to happen after I delete the build artifacts or directory.

Set-Variable : Cannot overwrite variable kJsonCompilationDbPath because it is read-only or constant.
At clang-power-tools\ClangPowerTools\ClangPowerToolsShared\Tooling\v1\psClang\jsondb-export.ps1:5 char:3

Removing -option Constant seems to fix it.

mariru27 commented 8 months ago

Hi @Mulling,

Thank you for bringing this issue to our attention and for your suggested solution I'll keep you posted on when the release containing this fix will be made available

Kind regards, Marina