fkorotkov/intellij-thrift

How do I use plugin in CLion

maxknv opened this issue · 2 comments

Is it possible to generate cpp files from thrift spec in CLion?

You should be able to configure Thrift facet with cpp target.

@mkaynov
It doesn't work well in Clion, special in Clion >= 2020.1.
I make it in "External Tools" for temporary use.
"File" - "Settings" - "Tools" - "External Tools" - “Add”:

Add a thrift tools,

Name: thrift gen
Description: thrift gen support
Program: thrift-0.13.0.exe (set your path)
Arguments: -v -r --gen cpp $FilePath$

And then, right click your thrift file, "External Tools" - "thrift gen".

@fkorotkov Please upgrade thrift plugin support Clion >= 2020.1.