microsoft / microsoft/vscode-cpptools
Natvis error loading xml on Mac Darwin x64 20.1.0
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Natvis loading failure with the referenced qt5.natvis file and the visualizerFile setting in launch.json on Darwin x64. Inspect the XML error at line 447, column 37; done means a Natvis file using escaped angle brackets loads without the reported XML error on macOS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100