How do I use plugin in CLion
maxknv opened this issue · 2 comments
maxknv commented
Is it possible to generate cpp files from thrift spec in CLion?
fkorotkov commented
You should be able to configure Thrift facet with cpp target.
leyewen commented
@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.