fkorotkov / intellij-thrift

Apache License 2.0
89 stars 77 forks source link

How do I use plugin in CLion #73

Open maxknv opened 5 years ago

maxknv commented 5 years ago

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

fkorotkov commented 5 years ago

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

leyewen commented 4 years ago

@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.