CLion for OS X is flagging all my F() and ICACHE_FLASH_ATTR macro invocations as errors with the message: “Argument to ‘section’ attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma”
The platformio build process works great and I have no issues at all installing on my ESP8266 board. Based on the error message, it appears that CLion is incorrectly assuming that I’m building for a mach-o architecture and applying some platform specific code validation. I’ve looked all over the CLion preferences and I haven’t found any settings that affect it.
I’m starting a major refactor and I can’t see the real warnings between all the false alarms. Anyone have any ideas?
CLion 2024.3.5
Build #CL-243.26053.34, built on March 20, 2025
Runtime version: 21.0.6+8-b631.39 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.