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
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
I get this error sometimes when generating a compilation database, seems to happen after I delete the build artifacts or directory.
Removing
-option Constant
seems to fix it.