PlatformIO Community

PlatformIO Core 4.0.3

We’re happy to announce the next release of PlatformIO Core 4.0.3!

35

What is new

See PlatformIO 4.0.3 Release Notes for details.

Upgrade

  • PlatformIO IDE:
    - Atom: Menu: PlatformIO > Upgrade PlatformIO Core
    - VSCode: Left Sidebar > PlatformIO (icon) > Quick Access > Upgrade PlatformIO Core
  • Terminal: Please run pio upgrade command in terminal.

Regards,
The PlatformIO Team

1 Like

It would be great if you can enable the .ccls generation for emacs as an IDE too - Emacs has a very healthy ccls integration : https://github.com/MaskRay/emacs-ccls

Done!

You can re-test with

pio upgrade --dev
pio init --ide emacs
2 Likes

Seems to work nicely. Many thanks.

1 Like

Ivan. how do I make pio init put in custom ccls directives? eg

%h -x c++-header

(treat all .h headers as c++)

and/or alter the GnuC versions? eg

%c -std=c14
%cpp -std=c++14

?

Thanks

Richard.

Just use http://docs.platformio.org/en/latest/projectconf/section_env_build.html#id2

I had a look and its not immediately obvious to me how I have pio init write something like

%h -x c++-header

out to clang section of .ccls. I dont see some “passthru” option. I’m not a llvm/gcc/clang guru so am probably a tad confused.

FWIW I also couldnt figure out how to get a different CPP version written out to the .ccls file. I read through the docs and really couldnt figure out how to override the .ccls “%cpp -std=c++11” line. Could you give me a pointer please.

Could you try passing CPP flags directly using extra script http://docs.platformio.org/en/latest/projectconf/advanced_scripting.html#split-c-c-build-flags ?