Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
pio init makes QtCreator not understand Arduino C++ properly #1323
What kind of issue is this?
Operating system: Ubuntu 17.10
PlatformIO Version (
Description of problem
Steps to Reproduce
.pro file contains
DEFINES += ARDUINO=10600 DEFINES += LWIP_OPEN_SRC
and QtCreator shows some errors in .ino: "expected a declaration".
There should be no "expected a declaration" error.
If problems with PlatformIO Build System:
The content of
[env:esp07] platform = espressif8266 board = esp07 framework = arduino
Source file to reproduce issue:
This is the result of attempt to fix #1299.
Before the fix (with the trailing "#" being stripped):
After the fix:
I used to proposed a fix (#1290), in which I keep the quote (
The problem was caused by internal macros of GCC compiler. We've started to add them recently. There is no