Documentation
walter-weinmann opened this issue · 12 comments
Is there any documentation available how to use this plug-in ?
I did the installation (IntelliJ IDEA 2017.2.2) and see with new project (except the empty project ?) the following:
I also see in the "Project Structure":
and
Finally in "Default Settings" I have:
But I have absolutely no idea how to compile with Thrift or how the formatting of the Thrift file works.
Thanks a lot for any help !!!
Best way to place your *.thrift files to a separate folder in module and mark the folder as 'Source root'
After that you could simply invoke 'rebuild' command (Ctrl+Shift+F9) on the folder.
Do not forget to specify target lang and folder in Facet configuration of the module - as I noted it is empty in your screenshots.
Also it is preferrable to mark output folder in module for generated files as 'Generated source root'
Please, create target folders manually
Also it is not good idea to plage result folders as source subfolders. In your case use:
erlang_and_thrift/gen_py
erlang_and_thrift/gen_erlang
and mark them as "Generated source root"- this will allow IDE to track changed files after they are regenerated.
could you attach logs from IDE to the task?
I found the following under C:\Users\walte\.PyCharmCE2017.2\system\log
:
threadDump-20170828-152523.txt
and
(I added the .txt
extension manually)
Do you have any logs in logs/build-log/ folder?
Sorry. By mistake Erlang compiler in not worked yet. I've made pull request with fix and it will be working next plugin version.
Thanks a lot - should I try to write a documentation page which describes the IntelliJ configuration (based on the current IntelliJ version) ?
U R welcome.
I've started the documentation - @xBlackCat and @fkorotkov you may contribute directly in my fork.