Skip to content

Commit 44406ce

Browse files
authored
Fix handling of "Could not open input path" when calling c++filt (#13279)
* Fix handling of "Could not open input path" when calling c++filt
1 parent 20d1f42 commit 44406ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Extension/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
### Bug Fixes
55
* Fix random IntelliSense process crashes on Linux/macOS when `C_Cpp.intelliSenseCacheSize` is > 0. [#12668](https://github.com/microsoft/vscode-cpptools/issues/12668)
66
* Fix a crash when processing Copilot snippets.
7+
* Fix a crash when using Copilot hover.
78

89
## Version 1.24.0: February 11, 2025
910
### New Feature

Extension/src/LanguageServer/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ async function handleCrashFileRead(crashDirectory: string, crashFile: string, cr
12241224
if (ret?.output === funcStr) {
12251225
ret = await util.spawnChildProcess(filtPath, [funcStr], undefined, true).catch(logAndReturn.undefined);
12261226
}
1227-
if (ret !== undefined && ret.succeeded) {
1227+
if (ret !== undefined && ret.succeeded && !ret.output.startsWith("Could not open input file")) {
12281228
funcStr = ret.output;
12291229
funcStr = funcStr.replace(/std::(?:__1|__cxx11)/g, "std"); // simplify std namespaces.
12301230
funcStr = funcStr.replace(/std::basic_/g, "std::");

0 commit comments

Comments
 (0)