opened 10:08AM - 03 Nov 22 UTC
closed 09:16AM - 05 Nov 22 UTC
bug
integration
Reported here on Github as per request from the forums
https://community.platfo…rmio.org/t/bug-with-intellisense-and-paths/30269
------------------------------------------------------------------
### Configuration
**Operating system**: Ubuntu 22.04.1 LTS x86_64, kernel 5.15.0-52-generic
**PlatformIO Version** (`platformio --version`):

### Description of problem
I have been getting red squiggly lines from IntelliSense in VS Code on my includes (even of Arduino.h) with PIO on Ubuntu 22, but I have also found the solution.
```cpp
cannot open source file "Arduino.h"C/C++(1696)
```
This is the exact error I am getting:
```json
Failed to parse
"/home/ ... /.vscode/c_cpp_properties.json": Unexpected token ( in JSON at position 85
```
When I go and have a look in c_cpp_properties.json it is very clear that the error is reported correctly.

By removing the backslashes, the error is resolved, and the red squiggly lines go away. However, c_cpp_properties.json is autogenerated, and the file explicitly advises against manual edits, so it is eventually just re-generated, and the error returns.
What can I do to fix this permanently?
Let me know if I need to supply more information.