microsoft / microsoft/vscode-cpptools
[vscode-arduino] Basic `wiring` identifiers are undefined?
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: Language Service
Describe the bug
- OS and Version:
OS: Linux x64 5.16.11-76051611-generic- C/C++ Extension Version: - VS Code Version:
Version: 1.65.2
Commit: c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1
Date: 2022-03-10T15:36:26.048Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0 - Other extensions you installed (and if the issue persists after disabling them):
- vscode-arduino

Steps to reproduce
As you can see in the screenshot, VSCode claims the most basic wiring APIs are not defined.
I have validated the paths in the c_cpp_preferences.json, and they are correct. I also noticed that the problem matcher claims it is checking against C/C++(20) in the PROBLEMS tab. However, the standard specified in c_cpp_preferences.json clearly states c++14.
For the record: The c_cpp_preferences.json file was generated by the extension. I did NOT modify the file; I only verified its contents.
The code compiles without warnings, and if I press F12, then it will find the definition of either of the API.
Expected behavior
For Intellisense to resolve wiring symbols.
Additional context
I created issue 1468 on vscode-arduino. They were able to reproduce the issue, and asked me to cross post it here. They said they would have done it, but did not have permission to transfer the issue.
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 con le versioni elencate di VS Code, dell’estensione C/C++, di Linux e di vscode-arduino, quindi esamina il c_cpp_preferences.json generato e la diagnosi C/C++(20) rispetto alla relativa impostazione c++14. Confronta gli identificatori wiring non risolti con la ricerca della definizione riuscita tramite F12. Il lavoro è completato quando IntelliSense risolve i simboli wiring senza falsi diagnostici «undefined» e la compilazione rimane priva di avvisi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- arduino, cpp, typescript, vscode
- Ambito
- devtools, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 32/100