fix: disable graphviz on windows

This commit is contained in:
Amin Yahyaabadi 2021-09-19 04:55:54 -05:00
parent 9b38d106c8
commit e12cd9ca9c
3 changed files with 27 additions and 3 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,31 @@ export async function setupDoxygen(version: string | undefined, _setupCppDir: st
switch (process.platform) {
case "win32": {
await setupChocoPack("doxygen.install", version)
await setupChocoPack("graphviz", version)
// TODO fails on windows?
// await setupChocoPack("graphviz", version)
/**
* Graphviz v2.49.0 [Approved] graphviz package files install completed. Performing other installation steps.
* graphviz not installed. An error occurred during installation: Item has already been added. Key in dictionary:
* 'Path' Key being added: 'PATH'
*
* Chocolatey installed 0/0 packages.
* See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
* The process cannot access the file 'C:\ProgramData\chocolatey\lib\Graphviz\.chocolateyPending' because it is being used by another process.
*
* 18 | execa.sync("choco", ["install", "-y", name, `--version=${version}`, ...args])
* 19 | } else {
* > 20 | execa.sync("choco", ["install", "-y", name, ...args])
* | ^
* 21 | }
* 22 |
* 23 | const binDir = "C:/ProgramData/Chocolatey/bin/"
*
* at makeError (node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11)
* at Function.Object.<anonymous>.module.exports.sync (node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:194:17)
* at setupChocoPack (src/utils/setup/setupChocoPack.ts:20:11)
* at setupDoxygen (src/doxygen/doxygen.ts:11:27)
* at Object.<anonymous> (src/doxygen/__tests__/doxygen.test.ts:8:25)
*/
addPath("C:/Program Files/Graphviz/bin")
const binDir = "C:/Program Files/doxygen/bin"
addPath(binDir)