microsoft / microsoft/vscode-cpptools
Natvis error loading xml on Mac Darwin x64 20.1.0
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
Type: Debugger
Describe the bug
- OS and Version: Darwin x64 20.1.0
- VS Code Version: 1.51.1 commit: e5a624b
- C/C++ Extension Version: v1.1.3
- Other extensions you installed (and if the issue persists after disabling them): Cmake Tools, yes
- Natvis parse error on Mac when use < > on natvis files
To Reproduce
Please include a code sample and launch.json configuration.
Steps to reproduce the behavior:
- download (https://github.com/aleksey-nikolaev/natvis-collection/blob/master/qt5.natvis), or create a natvis file using < >
- add visualizerFile configuration to launch.json
- It would not work and: Error "There is an error in XML document message would appear on debug console
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${command:cmake.launchTargetPath}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
"visualizerFile": "/Users/sotoahs/Alto/qt5.natvis",
}
,
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${command:cmake.launchTargetPath}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"visualizerFile": "C:\\Users\\soto0\\Alto\\qt5.natvis",
}
]
}
Additional context
If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your launch.json
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (692) Send Event AD7LoadCompleteEvent\n"},"seq":91}
1: (692) Send Event AD7LoadCompleteEvent
--> R (configurationDone-4): {"type":"response","request_seq":4,"success":true,"command":"configurationDone","body":{},"seq":90}
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"Error "There is an error in XML document (447, 37)." while reading file: /Users/sotoahs/Alto/qt5.natvis\nWarning: Debuggee TargetArchitecture not detected, assuming x86_64.\n"},"seq":94}
Error "There is an error in XML document (447, 37)." while reading file: /Users/sotoahs/Alto/qt5.natvis
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Natvis-Ladefehler mit der referenzierten qt5.natvis-Datei und der visualizerFile-Einstellung in launch.json unter Darwin x64 zu reproduzieren. Untersuche den XML-Fehler in Zeile 447, Spalte 37; abgeschlossen ist die Aufgabe, wenn eine Natvis-Datei, die maskierte spitze Klammern verwendet, ohne den gemeldeten XML-Fehler unter macOS geladen wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, typescript, vscode
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100