MeGaPk
September 16, 2016, 9:03pm
#1
Using last version clion.
After pio init --ide clion i have error:
Error:Syntax error in cmake code at
C:/Users/Ivan/Documents/esp8266/CMakeListsPrivate.txt:4
when parsing string
C:\Users\Ivan.platformio\packages\toolchain-xtensa\bin\xtensa-lx106-elf-gcc.exe
Invalid character escape ‘\U’.
How i can resolve it?
Do you see here C:/Users/Ivan/Documents/esp8266/CMakeListsPrivate.txt
invalid characters?
MeGaPk
September 16, 2016, 9:10pm
#3
Invalid character…its my name, maybe
For temp solution, i just change slashes in Private.txt.
Example:
Before:
SET(CMAKE_C_COMPILER “C:\Users\Ivan.platformio\packages\toolchain-xtensa\bin\xtensa-lx106-elf-gcc.exe”)
SET(CMAKE_CXX_COMPILER “C:\Users\Ivan.platformio\packages\toolchain-xtensa\bin\xtensa-lx106-elf-g++.exe”)
After:
SET(CMAKE_C_COMPILER “C:/Users/Ivan/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-gcc.exe”)
SET(CMAKE_CXX_COMPILER “C:/Users/Ivan/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++.exe”)
Maybe we should automatically fix slashes on Windows for CMake? Did it help you?
MeGaPk
September 16, 2016, 9:43pm
#7
i don’t know… maybe because generated slash “”? Not \ ?
MeGaPk
September 16, 2016, 9:44pm
#8
You can contact with me by skype: ivan6335523, and debuging this bug together .
My OS Windows 10.
It is escaped. Could you share somewhere CMakeListsPrivate.txt
? I’ll take a look on it.
MeGaPk
September 16, 2016, 9:48pm
#10
My generated project: http://rgho.st/8hjtngsZX
Generated by command: pio init --ide clion -b nodemcuv2
Yes, this is a bug. Please open an issue here Issues · platformio/platformio-core · GitHub
Thanks! Will fix it tomorrow.
P.S: Good night!
1 Like