Commit e4c6e3c
fix: surface cmake --install output and add permission error hint
When cmake --install fails, the extension now:
1. Streams stdout/stderr to the Output channel via an OutputConsumer
(matching the CPackOutputLogger pattern) so users see CMake's actual
error messages instead of just an exit code.
2. Detects permission-related errors in the output and shows an
actionable hint recommending cmake.installPrefix.
The containsPermissionError() utility is in installUtils.ts (no vscode
dependency) so it is testable in backend unit tests.
Adds 6 new unit tests for permission error detection.
Existing CMake: Install behavior is unchanged.
Co-authored-by: hanniavalera <90047725+hanniavalera@users.noreply.github.com>1 parent 9a39618 commit e4c6e3c
File tree
3 files changed
+55
-3
lines changed- src
- test/unit-tests/backend
3 files changed
+55
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
2687 | 2687 | | |
2688 | 2688 | | |
2689 | 2689 | | |
2690 | | - | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
2691 | 2699 | | |
2692 | 2700 | | |
2693 | 2701 | | |
2694 | 2702 | | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
2695 | 2709 | | |
2696 | 2710 | | |
2697 | 2711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
0 commit comments