microsoft / microsoft/vscode-cpptools
"Error" in provided XML document STL.natvis
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Bug type: Debugger
Describe the bug
- OS and Version: Windows 10
- VS Code Version: 1.61.0
- C/C++ Extension Version: 1.7.0
- Other extensions you installed (and if the issue persists after disabling them): N/A
Error "There is an error in the XML document (281, 41)." while reading file: C:\Users\{user}\.vscode\extensions\ms-vscode.cpptools-1.7.0\debugAdapters\vsdbg\bin\Visualizers\STL.natvis"
To Reproduce
Please include a code sample and launch.json configuration.
Steps to reproduce the behavior:
- Build LLVM, clang and lldb with libxml2 for Windows *huge pain (llvm-projects fault here really. Necessary for both lldb-mi and for an appropriate version of python).
- Build the
lldb-miwith the toolchain just built. - Compile c++ program via
clang -glldb main.cpp -o main.exe - launch the program with the launch.json configuration provided below
- Change tabs to the debug console and see the error at the top. It appears that the
Priorityattribute forTypeisn't being handled.
{
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/main.exe",
"targetArchitecture": "x64",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"MIMode": "lldb",
"miDebuggerPath": "lldb-mi.exe",
"externalConsole": false,
"showDisplayString": true,
"visualizerFile": "C:\\Users\\{user}\\.vscode\\extensions\\ms-vscode.cpptools-1.7.0\\debugAdapters\\vsdbg\\bin\\Visualizers\\STL.natvis",
}
Additional context
This is on a system without internet. As such I am unable to provide any log files. Please also disregard any typos in the provided launch config as it was typed by hand.
I can't seem to find where the visualizer files are being handled in the repo. I would like to be able to patch fix it into the extension on my local machine if at all possible but if I need to wait for another release it is understandable.
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 ispezionando il file STL.natvis alla riga 281 e la gestione del visualizzatore del debugger utilizzata con lldb-mi. Riproduci il problema con la configurazione launch.json fornita e conferma come viene analizzato l’attributo Priority. L’attività è completata quando il visualizzatore viene caricato senza l’errore XML nella console di debug.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, vscode
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100