Closed gdanov closed 2 years ago
same project works perfectly fine it vscode + platformio. what's the lang server used there? can I steal it's config?
what seems to fix the problem is:
#include <bits/stdc++.h>
at the top of the include list, before Arduino.h
IncludeCategories:
- Regex: '^<bits.*>'
Priority: 1
SortPriority: 1
CaseSensitive: false
Configuration
OSX 12.1
PlatformIO Version (
platformio --version
):PlatformIO Core, version 5.2.5
Description of problem
My code compiles, but I get different errors reported by the language servers about missing traits (is_same, is_void, etc.) when I use collections. Few examples:
When I try to construct collections with structs it gets even worse. Provided I see in the xtensa source fair deal of std:: collections, I suspect the language server is missing some headers. But I'm C++ newb so...
I use
.ccls
file generated withpio init --ide emacs --board lolin_d32_pro
both
ccls
andclangd
complain in similar manner, but clangd (just tested for change) spits out many more problems. I'm interested only in ccls or whatever you officially support.Steps to Reproduce
Actual Results
missing traits
Expected Results
no errors
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info