I’ve recently started using platformio and Im trying to integrate it with clion by following the clion integration guide here Redirecting.... I encountered an issue when I am trying to import the created project after executing pio init.
Clion complains this:
Load error: undefined path variables
FILE_PATH is undefined. Fix it
I realised the source of error should be from one of the files from the .idea dir
Looking through them I spotted this at line 18 watcherTasks.xml
Sorry for the bump, but does anyone have a solution to this? I’ve tried this on both Windows and macOS (both on the latest dev version 4.1.0b5 PlatformIO and latest CLion 2019.2.4) and they have the same error.
edit: maybe this error has to do with CLion file watchers?
Yes, I installed both of them. However, if you’re trying to reproduce it on my GitHub project, you may want to checkout commit 702c833; in a more recent commit, I manually set FILE_PATH to the project directory to temporarily suppress the error.
I had the same strange issue. I’ve gone to Settings --> Path Variables and then in the bottom I added the FILE_PATH again as ignored variable, basically duplicating it:
MESSAGE;FILE_PATH;LINE;COLUMN;FILE_PATH
After restart of the IDE the error went away for me