microsoft / microsoft/vscode-cpptools
Natvis error loading xml on Mac Darwin x64 20.1.0
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il problema di caricamento di Natvis con il file qt5.natvis indicato e l’impostazione visualizerFile in launch.json su Darwin x64. Esamina l’errore XML alla riga 447, colonna 37; il lavoro è terminato quando un file Natvis che usa parentesi angolari con escape viene caricato senza l’errore XML segnalato su macOS.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, typescript, vscode
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100