Skip to content

Commit e12cd9c

Browse files
committed
fix: disable graphviz on windows
1 parent 9b38d10 commit e12cd9c

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/doxygen/doxygen.ts

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

0 commit comments

Comments
 (0)