We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What kind of issue is this?
Operating system: Ubuntu 17.10
PlatformIO Version (platformio --version): 3.5.2a5
platformio --version
pio init --ide qtcreator --board esp07
.pro file contains DEFINES lines like this:
DEFINES
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.
The content of platformio.ini:
platformio.ini
[env:esp07] platform = espressif8266 board = esp07 framework = arduino
Source file to reproduce issue:
Insert here...
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 (") and removed # from DEFINES, but unfortunately, it was rejected.
"
#
The text was updated successfully, but these errors were encountered:
53afdc5
Please re-test with pio upgrade --dev and pio init
pio upgrade --dev
pio init
Sorry, something went wrong.
In 53afdc5, I see that you are doing:
% tokens = define.split("##", 1) DEFINES += "{{tokens[0].strip()}}"
but what happen if some lines use single #?
The problem was caused by internal macros of GCC compiler. We've started to add them recently. There is no # in macro, see https://stackoverflow.com/questions/21891784/what-does-mean-in-c
Thank you.
Bump version to 3.5.2 (issue #1301 issue #1313 issue #1323 issue #1303 …
bc32325
…issue #1029 issue #1310 issue #1390 issue #1312 issue #1433)
valeros
No branches or pull requests
What kind of issue is this?
Configuration
Operating system: Ubuntu 17.10
PlatformIO Version (
platformio --version
): 3.5.2a5Description of problem
Steps to Reproduce
pio init --ide qtcreator --board esp07
Actual Results
.pro file contains
DEFINES
lines like this:and QtCreator shows some errors in .ino: "expected a declaration".
Expected Results
There should be no "expected a declaration" error.
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
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 (
"
) and removed#
fromDEFINES
, but unfortunately, it was rejected.The text was updated successfully, but these errors were encountered: