Skip to content
New issue

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

Build project error - utils.ino:23:5: error: expected unqualified-id before '||' token #1205

Closed
icevoodoo opened this issue Sep 17, 2018 · 3 comments

Comments

@icevoodoo
Copy link

Build project error see below:

Processing itead-sonoff-th (framework: arduino; platform: [email protected]; board: esp01_1m)

Verbose mode can be enabled via -v, --verbose option
PLATFORM: Espressif 8266 > Espressif Generic ESP8266 ESP-01 1M
SYSTEM: ESP8266 80MHz 80KB RAM (1MB Flash)
Converting espurna.ino
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 51 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 5.13.2
|-- 0.8.1 #ddbf4d1
| |-- 1.1.3 #55cd520
| | |-- 1.0
|-- 1.3.2
|-- 2.0.4 #4681547
|-- <EEPROM_Rotate> 0.9.1 #9c7d14f
| |-- 1.0
|-- 1.2.0
|--
|-- 3.4.1 #5378868
|-- 1.1.3 #55cd520
| |-- 1.0
|-- 1.1.0 #05306e4
| |-- 1.0
| |-- 1.1.3 #55cd520
| | |-- 1.0
| |-- 5.13.2
| |-- 1.0
|-- 3.0.1 #9a03a61
| |-- 1.0
| |-- 1.1.3 #55cd520
| | |-- 1.0
|-- 1.1.0 #cc3baec
|-- 2.2.0 #4d57a2b
|-- 2.0.2 #1367a8b
| |-- 1.0
|-- 0.1 #4cfcda1
| |-- 1.0
|-- 3.0.1 #cda124a
|-- 0.2.5 #1835206
| |-- 5.13.2
| |-- 1.1
| | |-- 1.0
| | |-- 1.1
| | | |-- 1.0
|-- 2.5.0 #0942ebc
| |-- 1.5 #ecb2bb1
| |-- <Ethernet(esp8266)> 1.0.4
| | |-- 1.0
| |-- 1.0
|-- 2.3.4
|-- 1.1.2
| |-- 3.4.1 #5378868
|-- 2.6
|-- 2.6.2
|-- #cb68f71
| |--
| | |-- 1.0
| |-- 1.0
|-- 1.5 #ecb2bb1
|-- 1.9.1
|-- 1.0
|--
| |-- 1.0
|-- 1.0
|-- 1.0
|-- 1.0
| |-- 1.0
| |--
| | |-- 1.0
|-- 1.0
|-- 1.0
|--
| |-- 1.0
|-- 1.1.0
| |-- 1.0
Compiling .pioenvs\itead-sonoff-th\src\espurna.ino.cpp.o
Compiling .pioenvs\itead-sonoff-th\src\fs_math.c.o
Compiling .pioenvs\itead-sonoff-th\src\pwm.c.o
Archiving .pioenvs\itead-sonoff-th\libb18\libArduinoJson_ID64.a
Compiling .pioenvs\itead-sonoff-th\lib537\ESP8266WiFi\ESP8266WiFi.cpp.o
Compiling .pioenvs\itead-sonoff-th\lib537\ESP8266WiFi\ESP8266WiFiAP.cpp.o
Compiling .pioenvs\itead-sonoff-th\lib537\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
Compiling .pioenvs\itead-sonoff-th\lib537\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
Compiling .pioenvs\itead-sonoff-th\lib537\ESP8266WiFi\ESP8266WiFiSTA.cpp.o
D:/GitHub/xoseperez/code/espurna/utils.ino:23:5: error: expected unqualified-id before '||' token
#else
^
Compiling .pioenvs\itead-sonoff-th\lib537\ESP8266WiFi\ESP8266WiFiScan.cpp.o
Compiling .pioenvs\itead-sonoff-th\lib537\ESP8266WiFi\WiFiClient.cpp.o
*** [.pioenvs\itead-sonoff-th\src\espurna.ino.cpp.o] Error 1
================================================= [ERROR] Took 22.15 seconds =================================================

@mcspr
Copy link
Collaborator

mcspr commented Sep 17, 2018

I can reproduce this when code/espurna/utils.ino has CRLF line terminators (thanks dos2unix/unix2dos), for some reason backslash at the end of the line triggers this 😕
Git on my windows machine does not autocrlf so it never happened when i tested that change

@mcspr
Copy link
Collaborator

mcspr commented Sep 17, 2018

@icevoodoo can you try with changes from #1208? .ino -> .h switch seems to help.

@icevoodoo
Copy link
Author

It's ok now, after today updates... 10x!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants